aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2020-03-27 21:55:45 +0200
committerDavid S. Miller <davem@davemloft.net>2020-03-27 16:07:25 -0700
commitc279c7261a834470a7b9f005993bf149ee594d85 (patch)
tree2cd0902f190d3bb5280b7f1a29012b665bb411dc /tools/perf/scripts/python
parentnet: dsa: b53: add MTU configuration support (diff)
downloadwireguard-linux-c279c7261a834470a7b9f005993bf149ee594d85.tar.xz
wireguard-linux-c279c7261a834470a7b9f005993bf149ee594d85.zip
net: dsa: sja1105: implement the port MTU callbacks
On this switch, the frame length enforcements are performed by the ingress policers. There are 2 types of those: regular L2 (also called best-effort) and Virtual Link policers (an ARINC664/AFDX concept for defining L2 streams with certain QoS abilities). To avoid future confusion, I prefer to call the reset reason "Best-effort policers", even though the VL policers are not yet supported. We also need to change the setup of the initial static config, such that DSA calls to .change_mtu (which are expensive) become no-ops and don't reset the switch 5 times. A driver-level decision is to unconditionally allow single VLAN-tagged traffic on all ports. The CPU port must accept an additional VLAN header for the DSA tag, which is again a driver-level decision. The policers actually count bytes not only from the SDU, but also from the Ethernet header and FCS, so those need to be accounted for as well. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions