]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Get the number of offloaded TC rules from the correct table
authorOr Gerlitz <ogerlitz@mellanox.com>
Tue, 22 May 2018 17:18:36 +0000 (20:18 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 30 May 2018 00:27:50 +0000 (17:27 -0700)
commitbd405864fcbd650063cb92aaba0b6a585b909eb3
tree5bb317344d61ad014f61dd037a1a629ea8955941
parent2225e58a03ff1ddcc2359bc1cb816645ce103914
net/mlx5e: Get the number of offloaded TC rules from the correct table

As we keep the offloaded TC rules for NIC and e-switch in two different
places, make sure to return the number of offloaded flows according
to the use-case and not blindly from the priv.

Fixes: a8d32fc7db16 ('net/mlx5e: Use shared table for offloaded TC eswitch flows')
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reported-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Paul Blakey <paulb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.h