OpenCloudOS-Kernel/drivers/net/ethernet/freescale
Shenwei Wang 26312c685a net: fec: correct the counting of XDP sent frames
In the current xdp_xmit implementation, if any single frame fails to
transmit due to insufficient buffer descriptors, the function nevertheless
reports success in sending all frames. This results in erroneously
indicating that frames were transmitted when in fact they were dropped.

This patch fixes the issue by ensureing the return value properly
indicates the actual number of frames successfully transmitted, rather than
potentially reporting success for all frames when some could not transmit.

Fixes: 6d6b39f180 ("net: fec: add initial XDP support")
Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
Signed-off-by: Shenwei Wang <shenwei.wang@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-05-05 09:58:06 +01:00
..
dpaa Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-04-26 10:17:46 +02:00
dpaa2 net: dpaa2-mac: use Autoneg bit rather than an_enabled 2023-03-22 22:43:05 -07:00
enetc net: enetc: check the index of the SFI rather than the handle 2023-05-05 09:32:36 +01:00
fman phy-for-6.3 2023-02-24 17:22:11 -08:00
fs_enet net: ethernet: remove fs_mii_disconnect and fs_mii_connect declarations 2022-09-19 14:08:14 -07:00
Kconfig net: ethernet: Add missing depends on MDIO_DEVRES 2023-04-12 20:38:48 -07:00
Makefile net: enetc: fix link error again 2021-04-22 13:23:07 -07:00
fec.h net: fec: make use of MDIO C45 quirk 2023-04-05 18:58:30 -07:00
fec_main.c net: fec: correct the counting of XDP sent frames 2023-05-05 09:58:06 +01:00
fec_mpc52xx.c net: Use of_property_read_bool() for boolean properties 2023-03-16 17:41:28 +00:00
fec_mpc52xx.h
fec_mpc52xx_phy.c powerpc/mpc5xxx: Switch mpc5xxx_get_bus_frequency() to use fwnode 2022-06-22 12:51:49 +10:00
fec_ptp.c ptp: convert remaining drivers to adjfine interface 2022-11-11 10:58:39 +00:00
fsl_pq_mdio.c net: freescale: convert comma to semicolon 2020-12-09 16:23:08 -08:00
gianfar.c net: Use of_property_read_bool() for boolean properties 2023-03-16 17:41:28 +00:00
gianfar.h eth: gfar: remove a copy of the NAPI_POLL_WEIGHT define 2022-04-29 11:56:42 +01:00
gianfar_ethtool.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
ucc_geth.c net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
ucc_geth.h ethernet: ucc_geth: simplify rx/tx allocations 2021-01-21 12:19:56 -08:00
ucc_geth_ethtool.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
xgmac_mdio.c net: phy: Remove probe_capabilities 2023-01-19 16:23:19 +01:00