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)
commit196442ec5f13751ed0c66d5c4bc9b58288dea430
treec203140973a2ae98c71ba27c8f93416d7059ffe5
parent95f0ead8f04bec18e474594ef585f3734bd85b4c
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