mlxsw: spectrum: Add FID miss trap
authorJiri Pirko <jiri@mellanox.com>
Tue, 18 Apr 2017 14:55:38 +0000 (16:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Apr 2017 19:32:31 +0000 (15:32 -0400)
commit9d41accc1e917d071497d749e9686ba6db91517e
treea90ad882fecf7f6ee9f092dda4d6b235852ee021
parent2b94e58df58c93e5d74714d7cb5ac924e2089118
mlxsw: spectrum: Add FID miss trap

When there is no FID set for a specific packet, the HW will drop it.
However, by default these packets are useful to be delivered to CPU as
it can inspect them and program HW accordingly. So add this trap.

This would only ever happen when port is enslaved to an OVS master.
Otherwise, packets would be dropped during VLAN / STP filtering,
before FID classification.

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