]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2e39a38695b4d71428e3b57de9963e1c4fb34dc5
treea90ad882fecf7f6ee9f092dda4d6b235852ee021
parent6de5aae357538bda00de4267d52b58078bee001a
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