Patchset increased xdp_buff with a pointer 8 bytes, and the bpf/test_run struct xdp_page_head have two xdp_buff's. Thus adjust test with 16 bytes. Signed-off-by: Jesper Dangaard Brouer --- .../selftests/bpf/prog_tests/xdp_do_redirect.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/bpf/prog_tests/xdp_do_redirect.c b/tools/testing/selftests/bpf/prog_tests/xdp_do_redirect.c index dd34b0cc4b4e..35c65518f55a 100644 --- a/tools/testing/selftests/bpf/prog_tests/xdp_do_redirect.c +++ b/tools/testing/selftests/bpf/prog_tests/xdp_do_redirect.c @@ -59,12 +59,12 @@ static int attach_tc_prog(struct bpf_tc_hook *hook, int fd) /* The maximum permissible size is: PAGE_SIZE - sizeof(struct xdp_page_head) - * SKB_DATA_ALIGN(sizeof(struct skb_shared_info)) - XDP_PACKET_HEADROOM = - * 3408 bytes for 64-byte cacheline and 3216 for 256-byte one. + * 3392 bytes for 64-byte cacheline and 3200 for 256-byte one. */ #if defined(__s390x__) -#define MAX_PKT_SIZE 3216 +#define MAX_PKT_SIZE 3200 #else -#define MAX_PKT_SIZE 3408 +#define MAX_PKT_SIZE 3392 #endif #define PAGE_SIZE_4K 4096