]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Treat IPv6 link-local SIP as an exception
authorIdo Schimmel <idosch@mellanox.com>
Mon, 25 May 2020 23:05:54 +0000 (02:05 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2020 03:33:58 +0000 (20:33 -0700)
commit3aa9efd8710c8b83e3e8509d8b6822ce4f94efe7
tree5a3b6fcb90ad122431df8269e2dac03d342a2fc6
parentac9f74f6f2c88f6a9579c0aadbebc16e9291eed5
mlxsw: spectrum: Treat IPv6 link-local SIP as an exception

IPv6 packets that need to be forwarded and have a link-local source IP are
dropped by the kernel and an ICMPv6 "Destination unreachable" is sent to
the sending host.

As such, change the trap group of such packets so that they do not
interfere with IPv6 management packets. In the future this trap will be
exposed as an exception via devlink-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