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)
commit01252a27837a9dd099a6e8cfa3adc4772033a5bf
tree5bb317344d61ad014f61dd037a1a629ea8955941
parent36dd4902004c39b7e8a16a7cf1535faa7ecfa921
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: 655dc3d2b91b ('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