]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Mark packets trapped in router
authorIdo Schimmel <idosch@mellanox.com>
Mon, 17 Jul 2017 12:15:29 +0000 (14:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Jul 2017 16:19:39 +0000 (09:19 -0700)
commit4b3d711d863b8c1c552624017bd629903595e781
tree8bb83b47e3a36a1f76c54d2c1a2db01da92cf031
parentc8c5f864f986fd82841a1d0f9e02b5f986105b2e
mlxsw: spectrum: Mark packets trapped in router

In commit fd33e22ad6a3 ("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