]> 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)
commit7d43b0008e2bc903b07ed38e2cba2e4fe554ec15
tree9fbddc48bb82169f70cd0f60f9f8c9fb7c18c95a
parent362124eff0fd9b91c21075364c0b95fa98f545fb
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