]> 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>
Thu, 13 Mar 2025 11:50:59 +0000 (12:50 +0100)
commitd20b23a5412c08891c1aa94c17edde50520e172c
tree7a6108818ba37d4d157234001e4306f25b38cda7
parentccce797d9052710fa8646664d26a2c9f6814687c
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