Thread (5 messages) 5 messages, 3 authors, 2022-11-30

Re: [PATCH net-next] selftests/net: add csum offload test

From: Paolo Abeni <pabeni@redhat.com>
Date: 2022-11-28 16:09:56

Hi,

On Mon, 2022-11-28 at 09:02 -0500, Willem de Bruijn wrote:
From: Willem de Bruijn <willemb@google.com>

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>
I'm wondering if we could hook this into the self-tests list with a
suitable wrapper script, e.g. searching for a NIC exposing the loopback
feature, quering the NETIF_F_HW_CSUM/NETIF_F_IP(V6)_CSUM bit via
ethtool and guessing CHECKSUM_UNNECESSARY vs CHECKSUM_COMPLETE via the
received packet.

If the host lacks a suitable device, the test is skipped. WDYT?

Thanks!

Paolo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help