diff options
author | Gerhard Engleder <[email protected]> | 2023-04-21 21:46:56 +0200 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-04-24 18:22:38 -0700 |
commit | cd275c236b3f342cb7d9437ef5adcdeaf42fdd2c (patch) | |
tree | 45647a7684f9fe1261d21e036b478020ae178309 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 3fc2333933fdf1148b694d15db824e10449ecbc1 (diff) |
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 <[email protected]>
Reviewed-by: Maciej Fijalkowski <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions