mlxsw: spectrum: Trap IPv4 packets with Router Alert option
authorIdo Schimmel <idosch@mellanox.com>
Mon, 17 Jul 2017 12:15:30 +0000 (14:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Jul 2017 16:19:39 +0000 (09:19 -0700)
commit7607dd35fc34893214284cca740d015154d20452
tree476438ff20cf05698250f544c4fdc5fa3365793b
parent0fcc484748c9dcad5238373a4b2e1b2f309392eb
mlxsw: spectrum: Trap IPv4 packets with Router Alert option

In case local sockets have the IP_ROUTER_ALERT socket option set, then
they expect to get packets with the Router Alert option.

Trap such packets, so that the kernel could inspect them and potentially
send them to interested sockets.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-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