]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Use same trap group for local routes and link-local destination
authorIdo Schimmel <idosch@mellanox.com>
Mon, 25 May 2020 23:05:48 +0000 (02:05 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2020 03:33:57 +0000 (20:33 -0700)
commite5de9ab573141deb72f7476f44247ec47f212f98
tree9fbddc48bb82169f70cd0f60f9f8c9fb7c18c95a
parenteed60652a64c9a18d6705237a40193340c35d322
mlxsw: spectrum: Use same trap group for local routes and link-local destination

Packets with an IPv6 link-local destination (i.e., fe80::/10) should not
be forwarded and are therefore trapped to the CPU for local delivery.
Since these packets are trapped for the same logical reason as packets
hitting local routes, associate both traps with the same group.

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