]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: enetc: correct the xdp_tx statistics
authorWei Fang <wei.fang@nxp.com>
Mon, 24 Feb 2025 11:12:46 +0000 (19:12 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2025 17:25:41 +0000 (18:25 +0100)
commit56e26b5b3d14880f1ae80f7f228fe85fc4477597
tree291e9d84c0ea58f4965e5c2db11517d43a979bcc
parent2d86bd25f0664db88fa2e6c833370da15e1cd5e3
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: 7ed2bc80074e ("net: enetc: add support for XDP_TX")
Cc: stable@vger.kernel.org
Signed-off-by: Wei Fang <wei.fang@nxp.com>
Reviewed-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://patch.msgid.link/20250224111251.1061098-4-wei.fang@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/freescale/enetc/enetc.c