diff options
author | Willem de Bruijn <willemb@google.com> | 2022-11-28 09:02:10 -0500 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-11-29 21:24:32 -0800 |
commit | 91a7de85600d5dfa272cea3cef83052e067dc0ab (patch) | |
tree | 525f9b845140b092fc25e44130484e6fed095775 /net/rxrpc/key.c | |
parent | 5cb0c51fe366cf96b7911d25db3e678401732246 (diff) | |
download | lwn-91a7de85600d5dfa272cea3cef83052e067dc0ab.tar.gz lwn-91a7de85600d5dfa272cea3cef83052e067dc0ab.zip |
selftests/net: add csum offload test
Test NIC hardware checksum offload:
- Rx + Tx
- IPv4 + IPv6
- TCP + UDP
Optional features:
- zero checksum 0xFFFF
- checksum disable 0x0000
- transport encap headers
- randomization
See file header for detailed comments.
Expected results differ depending on NIC features:
- CHECKSUM_UNNECESSARY vs CHECKSUM_COMPLETE
- NETIF_F_HW_CSUM (csum_start/csum_off) vs NETIF_F_IP(V6)_CSUM
Signed-off-by: Willem de Bruijn <willemb@google.com>
Link: https://lore.kernel.org/r/20221128140210.553391-1-willemdebruijn.kernel@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/rxrpc/key.c')
0 files changed, 0 insertions, 0 deletions