]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: Add NON_ROUTABLE trap
authorAmit Cohen <amitc@mellanox.com>
Sun, 19 Jan 2020 13:00:49 +0000 (15:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 Jan 2020 15:23:52 +0000 (16:23 +0100)
commita0b48ffef9c14dd840f9bc91f353d7b7818aaaaa
treec203140973a2ae98c71ba27c8f93416d7059ffe5
parentf6233e343e64b93009aa6caa203d769cc6d37d5a
mlxsw: Add NON_ROUTABLE trap

Add a trap for packets that the device decided to drop because they are
not supposed to be routed. For example, IGMP queries can be flooded by
the device in layer 2 and reach the router. Such packets should not be
routed and instead dropped.

Signed-off-by: Amit Cohen <amitc@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_trap.c
drivers/net/ethernet/mellanox/mlxsw/trap.h