mlxsw: spectrum: Register for IPIP_DECAP_ERROR trap
authorPetr Machata <petrm@mellanox.com>
Sat, 2 Sep 2017 21:49:27 +0000 (23:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Sep 2017 03:23:26 +0000 (20:23 -0700)
commit86484de2c917b6ba5965ef2248d9966424932af4
tree3bc0d594dc5bc8cb1fea5f5f306440c36a8be6c2
parent1cc38fb144ded22b81ef7b53b77d52885f25ecea
mlxsw: spectrum: Register for IPIP_DECAP_ERROR trap

These traps are generated for packets that fail checks for source IP,
encapsulation type, or GRE key. Trap these packets to CPU for follow-up
handling by the kernel, which will send ICMP destination unreachable
responses.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-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