]> git.baikalelectronics.ru Git - kernel.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)
commit15acc99ddb7608a252c0ee397be939951b63c117
tree14ba70e7aa706221a721d5d69e600866286a2931
parent6712f2beaef600b39713638fca988e964d69ca96
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