]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-Switch, Introduce flow counter affinity
authorShahar Klein <shahark@mellanox.com>
Thu, 13 Dec 2018 03:11:38 +0000 (19:11 -0800)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 14 Dec 2018 17:58:57 +0000 (09:58 -0800)
commit5009fc066ee2efaf0c778649a5291e187c6d6ca8
treeb768ab6c170d918b8c294d5e69cfbbefd80fef8f
parentf0594ce607fa74c4ea5d75779ed86cfffb3724c0
net/mlx5: E-Switch, Introduce flow counter affinity

This dictates the device affinity for eswitch flow counters, set by the FW
according to the HW device capabilities.

Under "source eswitch" affinity, the counter should be allocated on the
device related to the source vport in the match. This covers both non
merged e-switch mode as well as old FW that does not advertise this cap.

Under "flow eswitch" affinity, the counter should be allocated on the
device where the eswitch rule is set.

Signed-off-by: Shahar Klein <shahark@mellanox.com>
Signed-off-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
include/linux/mlx5/mlx5_ifc.h