Since the RQs are shared between all pkey interfaces, the stats
should be taken from where the per-ring stats are stored instead
of the parent RQ.
Fixes: 4c6c615e3f30 ("net/mlx5e: IPoIB, Add PKEY child interface nic profile")
Signed-off-by: Feras Daoud <ferasda@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
                                         u32 cqe_bcnt,
                                         struct sk_buff *skb)
 {
-       struct mlx5e_rq_stats *stats = rq->stats;
        struct hwtstamp_config *tstamp;
+       struct mlx5e_rq_stats *stats;
        struct net_device *netdev;
        struct mlx5e_priv *priv;
        char *pseudo_header;
 
        priv = mlx5i_epriv(netdev);
        tstamp = &priv->tstamp;
+       stats = &priv->channel_stats[rq->ix].rq;
 
        g = (be32_to_cpu(cqe->flags_rqpn) >> 28) & 3;
        dgid = skb->data + MLX5_IB_GRH_DGID_OFFSET;