mlxsw: spectrum: Mark packets trapped in router
commit0fcc484748c9dcad5238373a4b2e1b2f309392eb
authorIdo Schimmel <idosch@mellanox.com>
Mon, 17 Jul 2017 12:15:29 +0000 (17 14:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Jul 2017 16:19:39 +0000 (17 09:19 -0700)
tree8bb83b47e3a36a1f76c54d2c1a2db01da92cf031
parentef210ec07579425d3d724dc35927f421255417f0
mlxsw: spectrum: Mark packets trapped in router

In commit 1c6c6d221e2b ("mlxsw: spectrum: Mirror certain packets to
CPU") we marked packets that were mirrored to the CPU, so that they
won't be flooded again by the bridge driver.

However, certain packets are trapped in the device's router block, after
passing through the bridge block where they were potentially flooded.

Mark all packets coming from L3 traps, so that they won't be potentially
flooded again by the bridge driver.

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/spectrum.c