]> 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)
commit5f665ee4e0e5852a7a2dd1c7788af5880484f7d8
treea90ad882fecf7f6ee9f092dda4d6b235852ee021
parent3be28a8a6606cf98550c4a7a8a77c5da980b0564
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