xsk: Add option to calculate TX checksum in SW
authorStanislav Fomichev <sdf@google.com>
Mon, 27 Nov 2023 19:03:14 +0000 (11:03 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 29 Nov 2023 22:59:40 +0000 (14:59 -0800)
commit11614723af26e7c32fcb704d8f30fdf60c1122dc
treee1040027e771206bc1b17ebc626bf8d5e1a58574
parentce59f9686e0eca19431571c7403394a6c36371e2
xsk: Add option to calculate TX checksum in SW

For XDP_COPY mode, add a UMEM option XDP_UMEM_TX_SW_CSUM
to call skb_checksum_help in transmit path. Might be useful
to debugging issues with real hardware. I also use this mode
in the selftests.

Signed-off-by: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/r/20231127190319.1190813-9-sdf@google.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Documentation/networking/xsk-tx-metadata.rst
include/net/xsk_buff_pool.h
include/uapi/linux/if_xdp.h
net/xdp/xdp_umem.c
net/xdp/xsk.c
net/xdp/xsk_buff_pool.c
tools/include/uapi/linux/if_xdp.h