]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mlxsw: Add trap group for control packets
authorIdo Schimmel <idosch@mellanox.com>
Thu, 15 Oct 2015 15:43:28 +0000 (17:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Oct 2015 06:27:56 +0000 (23:27 -0700)
commit801bd3defb2eac756e6570168d0f8187781ad8ad
tree14ba70e7aa706221a721d5d69e600866286a2931
parentf24af330159aa1afbc6670e5786856a2a99d112c
mlxsw: Add trap group for control packets

Previously, we trapped flooded and control packets using the same trap
group. This can cause flooded packets to overflow the PCI bus and
prevent control packets (e.g. STP, LACP) from getting to the CPU.

Solve this by splitting the RX trap group to RX and control, which allows
us to configure a policer on the first, thereby preventing it from
overflowing the PCI bus.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/reg.h
drivers/net/ethernet/mellanox/mlxsw/switchx2.c