]> 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)
commitbb84ccd0920d56a5f3b22f3feceae69f8e890d76
tree14ba70e7aa706221a721d5d69e600866286a2931
parentc5634341036e4f2169050b071c0ecc90020ace87
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