OSDN Git Service

mlxsw: spectrum: Add trap for decapsulated ARP packets
authorIdo Schimmel <idosch@mellanox.com>
Tue, 18 Dec 2018 15:59:22 +0000 (15:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Dec 2018 17:17:38 +0000 (09:17 -0800)
commit5d5043917a28438df163c4e6e56e77ef6d981089
tree88cf69a7a87330ba463aa6d97ca32a1b9b7298e0
parentcf0b70e71b32137ccf9c1f3dd9fb30cbf89b4322
mlxsw: spectrum: Add trap for decapsulated ARP packets

After a packet was decapsulated it is classified to the relevant FID
based on its VNI and undergoes L2 forwarding.

Unlike regular (non-encapsulated) ARP packets, Spectrum does not trap
decapsulated ARP packets during L2 forwarding and instead can only trap
such packets in the underlay router during decapsulation.

Add this missing packet trap, which is required for VXLAN routing when
the MAC of the target host is not known.

Fixes: b02597d513a9 ("mlxsw: spectrum: Add NVE packet traps")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Petr Machata <petrm@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