OSDN Git Service

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)
commit1e3cd589421af8fed677c017f12a5f78f59aa427
tree9fbddc48bb82169f70cd0f60f9f8c9fb7c18c95a
parentd322309d726b77226cc4880ee6c38c26c1dac999
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