Skip to content

Commit b5e2393

Browse files
dtatuleaSaeed Mahameed
authored andcommitted
net/mlx5e: IPoIB, Fix child PKEY interface stats on rx path
The current code always does the accounting using the stats from the parent interface (linked in the rq). This doesn't work when there are child interfaces configured. Fix this behavior by always using the stats from the child interface priv. This will also work for parent only interfaces: the child (netdev) and parent netdev (rq->netdev) will point to the same thing. Fixes: be98737 ("net/mlx5e: Use dynamic per-channel allocations in stats") Signed-off-by: Dragos Tatulea <[email protected]> Reviewed-by: Tariq Toukan <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 31c70bf commit b5e2393

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en_rx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2419,7 +2419,7 @@ static inline void mlx5i_complete_rx_cqe(struct mlx5e_rq *rq,
24192419

24202420
priv = mlx5i_epriv(netdev);
24212421
tstamp = &priv->tstamp;
2422-
stats = rq->stats;
2422+
stats = &priv->channel_stats[rq->ix]->rq;
24232423

24242424
flags_rqpn = be32_to_cpu(cqe->flags_rqpn);
24252425
g = (flags_rqpn >> 28) & 3;

0 commit comments

Comments
 (0)