netlink: specs: netdev: update doc for xsk tx-checksum and zc-max-segs
Subsystems (4)
Jakub Kicinski
maintainerPATCH 1/1 netlink: specs: netdev: update doc for xsk tx-checksum and zc-max-segs
Minor touch ups to the XSK-related doc strings in the netdev spec.
Tx checksum is (obviously?) Layer 4 (TCP/UDP), not Layer 3 (IP).
The xdp_zc_max_segs change is more subtle, I guess, but to kernel devs saying "frags" may sound like the number of skb frags. The value includes the head in this case. The default of 1 means single buffer, XDP_USE_SG sockets are refused when it is 1. Let's use the word "buffer" instead of "frag".
---
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
--- Documentation/netlink/specs/netdev.yaml | 5 +++-- include/uapi/linux/netdev.h | 2 +- tools/include/uapi/linux/netdev.h | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-)
Documentation/netlink/specs/netdev.yaml +3 -2
@@ -80,7 +80,7 @@ doc: >- - name: tx-checksum doc: >- - L3 checksum HW offload is supported by the driver. + L4 checksum HW offload is supported by the driver. - name: tx-launch-time-fifo doc: >-
@@ -118,7 +118,8 @@ doc: >- enum: xdp-act - name: xdp-zc-max-segs - doc: max fragment count supported by ZC driver + doc: max buffer count per packet supported by ZC driver, + including the head buffer type: u32 checks: min: 1
include/uapi/linux/netdev.h +1 -1
@@ -58,7 +58,7 @@ enum netdev_xdp_rx_metadata {* enum netdev_xsk_flags * @NETDEV_XSK_FLAGS_TX_TIMESTAMP: HW timestamping egress packets is supported * by the driver. -* @NETDEV_XSK_FLAGS_TX_CHECKSUM: L3 checksum HW offload is supported by the +* @NETDEV_XSK_FLAGS_TX_CHECKSUM: L4 checksum HW offload is supported by the * driver. * @NETDEV_XSK_FLAGS_TX_LAUNCH_TIME_FIFO: Launch time HW offload is supported * by the driver.
tools/include/uapi/linux/netdev.h +1 -1
@@ -58,7 +58,7 @@ enum netdev_xdp_rx_metadata {* enum netdev_xsk_flags * @NETDEV_XSK_FLAGS_TX_TIMESTAMP: HW timestamping egress packets is supported * by the driver. -* @NETDEV_XSK_FLAGS_TX_CHECKSUM: L3 checksum HW offload is supported by the +* @NETDEV_XSK_FLAGS_TX_CHECKSUM: L4 checksum HW offload is supported by the * driver. * @NETDEV_XSK_FLAGS_TX_LAUNCH_TIME_FIFO: Launch time HW offload is supported * by the driver.
Signature · 1 line
2.55.0
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 11 lines · On Tue, 15 Sep 2026 19:16:08 -0700 you wrote:
Minor touch ups to the XSK-related doc strings in the netdev spec.
Tx checksum is (obviously?) Layer 4 (TCP/UDP), not Layer 3 (IP).
The
xdp_zc_max_segschange is more subtle, I guess, but to kernel devs saying "frags" may sound like the number of skb frags. The value includes the head in this case. The default of 1 means single buffer,XDP_USE_SGsockets are refused when it is 1. Let's use the word "buffer" instead of "frag".[...]
Here is the summary with links:
- [net-next] netlink: specs: netdev: update doc for xsk tx-checksum and zc-max-segs
https://git.kernel.org/netdev/net-next/c/8050e0efd4cf
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html