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

Configure Feed

Select the types of activity you want to include in your feed.

xsk: remove repeated defines

Seems we have been carrying around repeated defines for unaligned mode
logic. Remove redundant ones.

Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Link: https://patch.msgid.link/20260313111931.438911-1-maciej.fijalkowski@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Maciej Fijalkowski and committed by
Jakub Kicinski
cc6421ac 854587e6

-14
-7
include/net/xsk_buff_pool.h
··· 174 174 dma_sync_single_for_device(pool->dev, dma, size, DMA_BIDIRECTIONAL); 175 175 } 176 176 177 - /* Masks for xdp_umem_page flags. 178 - * The low 12-bits of the addr will be 0 since this is the page address, so we 179 - * can use them for flags. 180 - */ 181 - #define XSK_NEXT_PG_CONTIG_SHIFT 0 182 - #define XSK_NEXT_PG_CONTIG_MASK BIT_ULL(XSK_NEXT_PG_CONTIG_SHIFT) 183 - 184 177 static inline bool xp_desc_crosses_non_contig_pg(struct xsk_buff_pool *pool, 185 178 u64 addr, u32 len) 186 179 {
-7
net/xdp/xsk.h
··· 4 4 #ifndef XSK_H_ 5 5 #define XSK_H_ 6 6 7 - /* Masks for xdp_umem_page flags. 8 - * The low 12-bits of the addr will be 0 since this is the page address, so we 9 - * can use them for flags. 10 - */ 11 - #define XSK_NEXT_PG_CONTIG_SHIFT 0 12 - #define XSK_NEXT_PG_CONTIG_MASK BIT_ULL(XSK_NEXT_PG_CONTIG_SHIFT) 13 - 14 7 struct xdp_ring_offset_v1 { 15 8 __u64 producer; 16 9 __u64 consumer;