net/mlx5e: Add counter for XDP redirect in RX
[sfrench/cifs-2.6.git] / drivers / net / ethernet / mellanox / mlx5 / core / en / xdp.c
index 649675c1af61e848cdad0cb9c0549feef42566d1..34accf3f4cee9c099f213739320a5092e6ab1040 100644 (file)
@@ -69,6 +69,7 @@ bool mlx5e_xdp_handle(struct mlx5e_rq *rq, struct mlx5e_dma_info *di,
                        rq->xdpsq.db.redirect_flush = true;
                        mlx5e_page_dma_unmap(rq, di);
                }
                        rq->xdpsq.db.redirect_flush = true;
                        mlx5e_page_dma_unmap(rq, di);
                }
+               rq->stats->xdp_redirect++;
                return true;
        default:
                bpf_warn_invalid_xdp_action(act);
                return true;
        default:
                bpf_warn_invalid_xdp_action(act);