]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Trap IPv4 DHCP packets in router
authorIdo Schimmel <idosch@mellanox.com>
Sun, 24 May 2020 21:50:59 +0000 (00:50 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 May 2020 02:32:23 +0000 (19:32 -0700)
commitc7a7e059dece6919d53384e468bf27fd520922d4
tree9f4ff51bff0d562f80a15f3e58a27d5a38aee56f
parentcd5a47aad25166ac14b3ff2b3982fac73d760f90
mlxsw: spectrum: Trap IPv4 DHCP packets in router

Currently, IPv4 DHCP packets are trapped during L2 forwarding, which
means that packets might be trapped unnecessarily. Instead, only trap
the DHCP packets that reach the router. Either because they were flooded
to the router port or forwarded to it by the FDB. This is consistent
with the corresponding IPv6 trap.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/trap.h