]> 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)
commit3f6b8290b6fe36bb68c27c3c30b9aa8e30c6156d
tree9f4ff51bff0d562f80a15f3e58a27d5a38aee56f
parent9aeeb3cadd1633ad2f580153616fde4899b9d411
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