Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools: Sync if_xdp.h uapi tooling header

Sync if_xdp.h uapi header to remove following warning:

Warning: Kernel ABI header at 'tools/include/uapi/linux/if_xdp.h'
differs from latest version at 'include/uapi/linux/if_xdp.h'

Fixes: 48eb03dd2630 ("xsk: Add TX timestamp and TX checksum offload support")
Signed-off-by: Vishal Chourasia <vishalc@linux.ibm.com>
Signed-off-by: Song Yoong Siang <yoong.siang.song@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20250115032248.125742-1-yoong.siang.song@intel.com

authored by

Vishal Chourasia and committed by
Daniel Borkmann
01f3ce53 f8a05692

+2 -2
+2 -2
tools/include/uapi/linux/if_xdp.h
··· 117 117 ((1ULL << XSK_UNALIGNED_BUF_OFFSET_SHIFT) - 1) 118 118 119 119 /* Request transmit timestamp. Upon completion, put it into tx_timestamp 120 - * field of union xsk_tx_metadata. 120 + * field of struct xsk_tx_metadata. 121 121 */ 122 122 #define XDP_TXMD_FLAGS_TIMESTAMP (1 << 0) 123 123 124 124 /* Request transmit checksum offload. Checksum start position and offset 125 - * are communicated via csum_start and csum_offset fields of union 125 + * are communicated via csum_start and csum_offset fields of struct 126 126 * xsk_tx_metadata. 127 127 */ 128 128 #define XDP_TXMD_FLAGS_CHECKSUM (1 << 1)