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.

selftests/bpf: Fix test_xdp_adjust_tail_grow2 selftest on powerpc

On powerpc cache line size is 128 bytes, so skb_shared_info must be
aligned accordingly.

Signed-off-by: Saket Kumar Bhaskar <skb99@linux.ibm.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20250110103109.3670793-1-skb99@linux.ibm.com

authored by

Saket Kumar Bhaskar and committed by
Daniel Borkmann
9fe17b74 be339ddf

+4
+2
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
··· 82 82 /* SKB_DATA_ALIGN(sizeof(struct skb_shared_info)) */ 83 83 #if defined(__s390x__) 84 84 int tailroom = 512; 85 + #elif defined(__powerpc__) 86 + int tailroom = 384; 85 87 #else 86 88 int tailroom = 320; 87 89 #endif
+2
tools/testing/selftests/bpf/progs/test_xdp_adjust_tail_grow.c
··· 10 10 /* SKB_DATA_ALIGN(sizeof(struct skb_shared_info)) */ 11 11 #if defined(__TARGET_ARCH_s390) 12 12 int tailroom = 512; 13 + #elif defined(__TARGET_ARCH_powerpc) 14 + int tailroom = 384; 13 15 #else 14 16 int tailroom = 320; 15 17 #endif