Skip to content

Commit 45b8d6c

Browse files
Wei Fanggregkh
authored andcommitted
net: enetc: correct the xdp_tx statistics
commit 432a2cb3ee97a7c6ea578888fe81baad035b9307 upstream. The 'xdp_tx' is used to count the number of XDP_TX frames sent, not the number of Tx BDs. Fixes: 7ed2bc8 ("net: enetc: add support for XDP_TX") Cc: [email protected] Signed-off-by: Wei Fang <[email protected]> Reviewed-by: Ioana Ciornei <[email protected]> Reviewed-by: Vladimir Oltean <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 88304bb commit 45b8d6c

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/freescale/enetc

1 file changed

+1
-1
lines changed

drivers/net/ethernet/freescale/enetc/enetc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1624,7 +1624,7 @@ static int enetc_clean_rx_ring_xdp(struct enetc_bdr *rx_ring,
16241624
enetc_xdp_drop(rx_ring, orig_i, i);
16251625
tx_ring->stats.xdp_tx_drops++;
16261626
} else {
1627-
tx_ring->stats.xdp_tx += xdp_tx_bd_cnt;
1627+
tx_ring->stats.xdp_tx++;
16281628
rx_ring->xdp.xdp_tx_in_flight += xdp_tx_bd_cnt;
16291629
xdp_tx_frm_cnt++;
16301630
/* The XDP_TX enqueue was successful, so we

0 commit comments

Comments
 (0)