diff options
author | Stanislav Fomichev <sdf@google.com> | 2023-11-27 22:03:14 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2023-11-30 01:59:40 +0300 |
commit | 11614723af26e7c32fcb704d8f30fdf60c1122dc (patch) | |
tree | e1040027e771206bc1b17ebc626bf8d5e1a58574 /include/net/xsk_buff_pool.h | |
parent | ce59f9686e0eca19431571c7403394a6c36371e2 (diff) | |
download | linux-11614723af26e7c32fcb704d8f30fdf60c1122dc.tar.xz |
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>
Diffstat (limited to 'include/net/xsk_buff_pool.h')
-rw-r--r-- | include/net/xsk_buff_pool.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/xsk_buff_pool.h b/include/net/xsk_buff_pool.h index 97f5cc10d79e..8d48d37ab7c0 100644 --- a/include/net/xsk_buff_pool.h +++ b/include/net/xsk_buff_pool.h @@ -83,6 +83,7 @@ struct xsk_buff_pool { bool uses_need_wakeup; bool dma_need_sync; bool unaligned; + bool tx_sw_csum; void *addrs; /* Mutual exclusion of the completion ring in the SKB mode. Two cases to protect: * NAPI TX thread and sendmsg error paths in the SKB destructor callback and when |