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)
commit0ecb947412d7e95128a007f791b020a37ce5e9be
tree9f4ff51bff0d562f80a15f3e58a27d5a38aee56f
parent99129069b7123c22ca14529972946216757077ee
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