]> 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)
commitaa9033c9369b27e7eb253eb8a0e5cd00b1a48e71
tree8bb83b47e3a36a1f76c54d2c1a2db01da92cf031
parentaf8458f034288ff0c2042e3d3c495233ffc4394c
mlxsw: spectrum: Mark packets trapped in router

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