linux/drivers/net/ethernet
Furong Xu b514c47ebf net: stmmac: set PP_FLAG_DMA_SYNC_DEV only if XDP is enabled
Commit 5fabb01207 ("net: stmmac: Add initial XDP support") sets
PP_FLAG_DMA_SYNC_DEV flag for page_pool unconditionally,
page_pool_recycle_direct() will call page_pool_dma_sync_for_device()
on every page even the page is not going to be reused by XDP program.

When XDP is not enabled, the page which holds the received buffer
will be recycled once the buffer is copied into new SKB by
skb_copy_to_linear_data(), then the MAC core will never reuse this
page any longer. Always setting PP_FLAG_DMA_SYNC_DEV wastes CPU cycles
on unnecessary calling of page_pool_dma_sync_for_device().

After this patch, up to 9% noticeable performance improvement was observed
on certain platforms.

Fixes: 5fabb01207 ("net: stmmac: Add initial XDP support")
Signed-off-by: Furong Xu <0x1207@gmail.com>
Link: https://patch.msgid.link/20240919121028.1348023-1-0x1207@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2024-09-26 10:45:19 +02:00
..
3com
8390
actions
adaptec
adi
aeroflex
agere
alacritech
allwinner
alteon
altera
amazon net: ena: Extend customer metrics reporting support 2024-09-12 18:01:17 -07:00
amd amd-xgbe: Remove setting of RX software timestamp 2024-09-09 17:44:40 -07:00
apm
apple net: apple: bmac: Use IRQF_NO_AUTOEN flag in request_irq() 2024-09-12 20:35:04 -07:00
aquantia net: atlantic: convert comma to semicolon 2024-09-06 18:05:53 -07:00
arc
asix
atheros net: ag71xx: remove dead code path 2024-09-13 19:53:47 -07:00
broadcom bnxt_en: resize bnxt_irq name field to fit format string 2024-09-10 18:42:45 -07:00
brocade
cadence net: macb: Use predefined PCI vendor ID constant 2024-09-13 20:08:53 -07:00
calxeda
cavium net: thunderx: Remove setting of RX software timestamp 2024-09-09 17:44:41 -07:00
chelsio cxgb4: Remove setting of RX software timestamp 2024-09-06 09:34:18 +01:00
cirrus
cisco enic: Report some per queue statistics in ethtool 2024-09-13 21:17:12 -07:00
cortina
davicom
dec
dlink
emulex
engleder
ezchip
faraday Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-09-12 17:11:24 -07:00
freescale net: ethernet: fs_enet: Make the per clock optional 2024-09-15 08:29:30 -07:00
fujitsu
fungible net/funeth: Remove setting of RX software timestamp 2024-09-09 17:44:41 -07:00
google
hisilicon
huawei
i825xx
ibm net: ibm: emac: get rid of wol_irq 2024-09-13 21:48:58 -07:00
intel ice: Fix a NULL vs IS_ERR() check in probe() 2024-09-15 08:32:16 -07:00
litex
marvell octeontx2-af: debugfs: Add Channel info to RPM map 2024-09-13 21:42:21 -07:00
mediatek
mellanox net/mlx5: HWS, check the correct variable in hws_send_ring_alloc_sq() 2024-09-15 08:38:56 -07:00
meta Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-09-15 09:13:19 -07:00
micrel
microchip microchip: lan865x: add driver support for Microchip's LAN865X MAC-PHY 2024-09-11 20:53:46 -07:00
microsoft Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-09-05 20:37:20 -07:00
moxa
mscc net: mscc: ocelot: Remove setting of RX software timestamp 2024-09-09 17:44:41 -07:00
myricom
natsemi
neterion
netronome nfp: Use IRQF_NO_AUTOEN flag in request_irq() 2024-09-12 20:35:04 -07:00
ni
nvidia
nxp
oki-semi
packetengines
pasemi
pensando ionic: Allow XDP program to be hot swapped 2024-09-09 19:18:15 -07:00
qlogic qlcnic: make read-only const array key static 2024-09-11 16:00:54 -07:00
qualcomm
rdc
realtek r8169: add missing MODULE_FIRMWARE entry for RTL8126A rev.b 2024-09-24 12:48:29 +02:00
renesas net: ravb: Fix R-Car RX frame size limit 2024-09-24 11:55:13 +02:00
rocker
samsung
seeq net: seeq: Fix use after free vulnerability in ether3 Driver Due to Race Condition 2024-09-19 15:17:30 +02:00
sfc sfc: Add X4 PF support 2024-09-11 16:02:21 -07:00
sgi
silan
sis
smsc net: smc91x: Make use of irq_get_trigger_type() 2024-09-06 18:21:43 -07:00
socionext
stmicro net: stmmac: set PP_FLAG_DMA_SYNC_DEV only if XDP is enabled 2024-09-26 10:45:19 +02:00
sun
sunplus
synopsys
tehuti
ti net: ti: icssg-prueth: Add multicast filtering support in HSR mode 2024-09-14 15:14:07 -07:00
toshiba
tundra
vertexcom
via
wangxun Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-09-12 17:11:24 -07:00
wiznet
xilinx net: xilinx: axienet: Fix packet counting 2024-09-19 13:00:46 +02:00
xircom
xscale ixp4xx_eth: Remove setting of RX software timestamp 2024-09-09 17:44:42 -07:00
Kconfig net: ethernet: oa_tc6: implement register write operation 2024-09-11 20:53:42 -07:00
Makefile net: ethernet: oa_tc6: implement register write operation 2024-09-11 20:53:42 -07:00
dnet.c
dnet.h
ec_bhf.c
ethoc.c
fealnx.c
jme.c
jme.h
korina.c
lantiq_etop.c
lantiq_xrx200.c
oa_tc6.c net: ethernet: oa_tc6: add helper function to enable zero align rx frame 2024-09-11 20:53:45 -07:00