|
|
@@ -992,13 +992,13 @@ void mlx5e_tc_encap_flows_del(struct mlx5e_priv *priv,
|
|
|
void mlx5e_tc_update_neigh_used_value(struct mlx5e_neigh_hash_entry *nhe)
|
|
|
{
|
|
|
struct mlx5e_neigh *m_neigh = &nhe->m_neigh;
|
|
|
- u64 bytes, packets, lastuse = 0;
|
|
|
struct mlx5e_tc_flow *flow;
|
|
|
struct mlx5e_encap_entry *e;
|
|
|
struct mlx5_fc *counter;
|
|
|
struct neigh_table *tbl;
|
|
|
bool neigh_used = false;
|
|
|
struct neighbour *n;
|
|
|
+ u64 lastuse;
|
|
|
|
|
|
if (m_neigh->family == AF_INET)
|
|
|
tbl = &arp_tbl;
|
|
|
@@ -1015,7 +1015,7 @@ void mlx5e_tc_update_neigh_used_value(struct mlx5e_neigh_hash_entry *nhe)
|
|
|
list_for_each_entry(flow, &e->flows, encap) {
|
|
|
if (flow->flags & MLX5E_TC_FLOW_OFFLOADED) {
|
|
|
counter = mlx5_flow_rule_counter(flow->rule[0]);
|
|
|
- mlx5_fc_query_cached(counter, &bytes, &packets, &lastuse);
|
|
|
+ lastuse = mlx5_fc_query_lastuse(counter);
|
|
|
if (time_after((unsigned long)lastuse, nhe->reported_lastuse)) {
|
|
|
neigh_used = true;
|
|
|
break;
|