diff options
| author | Rongzheng Wang <testwrzwrz@gmail.com> | 2026-11-04 11:48:09 +0800 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2026-11-10 12:07:00 +0100 |
| commit | c112921763e7ab3498f9a92df1d1baf94de753b2 (patch) | |
| tree | cc59f51adeca7a4361a2f7fba4870f6e15a8fc2f /include/linux/mailbox | |
| parent | f2eddafbfcc004098425fee7c5664adbe29152d7 (diff) | |
selftests/bpf: cover AF_XDP multi-buffer TX software checksum
Extend test_xdp_metadata to send the same UDP packet using every descriptor
count from 1 through MAX_TX_DESCS (MAX_SKB_FRAGS + 1), and to run the
existing metadata and checksum verification for each case.
Build the packet once and write it into the TX descriptors in a loop
instead of using a flat two-descriptor layout. Keep the first descriptor
large enough to cover the checksum offset; the remaining payload is split
across the continuation descriptors, with the last descriptor taking the
remaining length.
Reuse the existing AF_XDP setup, packet generation, completion, and receive
helpers in xdp_metadata.c instead of adding a separate test harness.
Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Signed-off-by: Rongzheng Wang <testwrzwrz@gmail.com>
Link: https://patch.msgid.link/20261104034809.24545-3-testwrzwrz@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/linux/mailbox')
0 files changed, 0 insertions, 0 deletions
