linux-stable/drivers/net/ethernet/engleder
Gerhard Engleder cd275c236b tsnep: Add XDP socket zero-copy TX support
Send and complete XSK pool frames within TX NAPI context. NAPI context
is triggered by ndo_xsk_wakeup.

Test results with A53 1.2GHz:

xdpsock txonly copy mode, 64 byte frames:
                   pps            pkts           1.00
tx                 284,409        11,398,144
Two CPUs with 100% and 10% utilization.

xdpsock txonly zero-copy mode, 64 byte frames:
                   pps            pkts           1.00
tx                 511,929        5,890,368
Two CPUs with 100% and 1% utilization.

xdpsock l2fwd copy mode, 64 byte frames:
                   pps            pkts           1.00
rx                 248,985        7,315,885
tx                 248,921        7,315,885
Two CPUs with 100% and 10% utilization.

xdpsock l2fwd zero-copy mode, 64 byte frames:
                   pps            pkts           1.00
rx                 254,735        3,039,456
tx                 254,735        3,039,456
Two CPUs with 100% and 4% utilization.

Packet rate increases and CPU utilization is reduced in both cases.

Signed-off-by: Gerhard Engleder <gerhard@engleder-embedded.com>
Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-04-24 18:22:38 -07:00
..
Kconfig tsnep: Use page pool for RX 2022-09-30 11:32:27 +01:00
Makefile tsnep: Support XDP BPF program setup 2023-01-18 13:17:06 +00:00
tsnep.h tsnep: Add XDP socket zero-copy TX support 2023-04-24 18:22:38 -07:00
tsnep_ethtool.c tsnep: Rework RX buffer allocation 2022-12-02 10:47:49 +00:00
tsnep_hw.h tsnep: Throttle interrupts 2022-12-02 10:47:49 +00:00
tsnep_main.c tsnep: Add XDP socket zero-copy TX support 2023-04-24 18:22:38 -07:00
tsnep_ptp.c tsnep: Add free running cycle counter support 2022-05-10 09:48:09 +02:00
tsnep_rxnfc.c tsnep: Add EtherType RX flow classification support 2022-09-30 11:32:27 +01:00
tsnep_selftests.c
tsnep_tc.c net/sched: taprio: only pass gate mask per TXQ for igc, stmmac, tsnep, am65_cpsw 2023-02-06 10:06:44 +00:00
tsnep_xdp.c tsnep: Add XDP socket zero-copy RX support 2023-04-24 18:22:38 -07:00