OSDN Git Service

net/mlx5e: Always query offloaded tc peer rule counter
authorRoi Dayan <roid@mellanox.com>
Mon, 2 Jul 2018 11:06:02 +0000 (14:06 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 1 Mar 2019 20:04:17 +0000 (12:04 -0800)
commit316d5f72b4c1d4122f83cccbc9002e7b13660077
tree3708d599211c9c7a30e12d7d92a9cf7e4459f9aa
parentb4a23329e2e940cdec3b5eae781c1f7d4c669533
net/mlx5e: Always query offloaded tc peer rule counter

Under multipath when encap rules are duplicated to HW in the driver,
it's possible for one flow to be currently un-offloaded (e.g. lack of
next-hop route or neigh entry) while the other flow is offloaded. As
such, we move to query the counters of both flows at all times.

Signed-off-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c