]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: E-Switch, Add peer miss rules
authorRoi Dayan <roid@mellanox.com>
Sun, 11 Nov 2018 15:50:16 +0000 (17:50 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 14 Dec 2018 21:28:51 +0000 (13:28 -0800)
commit2bc74603d3715a3a106c3bfd4e70e0852e7220c3
tree694147318fb17bf9ff141550a57929ba7fce7d35
parent31176e4217f53946ec609c216cefab5fba7d61cb
net/mlx5e: E-Switch, Add peer miss rules

In the sriov offloads mode, packets that are not matched by any
other rule are sent towards the e-switch vport manager for further
processing.

Under upcoming patches (e.g for uplink LAG), packets sent from VF
vports belonging to esw0 (e-switch related to PF0) might end up in
esw1 (e-switch related to PF1) due to muxing logic applied by the
FW.

In such a case we still want the missed packet to be sent to the
"base" esw manager vport in order to present the control plane a
consistent view of the source (VF reresentor) port.

Signed-off-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Aviv Heller <avivh@mellanox.com>
Signed-off-by: Shahar Klein <shahark@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
drivers/net/ethernet/mellanox/mlx5/core/lib/devcom.h