Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
[linux-block.git] / tools / testing / selftests / bpf / prog_tests / xdp_do_redirect.c
index 856cbc29e6a1d2b82dc6ca9f07312c4cfa1f6a9f..662b6c6c5ed7864a754f31fab1efeb8269c79734 100644 (file)
@@ -57,12 +57,13 @@ static int attach_tc_prog(struct bpf_tc_hook *hook, int fd)
 }
 
 /* The maximum permissible size is: PAGE_SIZE - sizeof(struct xdp_page_head) -
- * sizeof(struct skb_shared_info) - XDP_PACKET_HEADROOM = 3368 bytes
+ * SKB_DATA_ALIGN(sizeof(struct skb_shared_info)) - XDP_PACKET_HEADROOM =
+ * 3408 bytes for 64-byte cacheline and 3216 for 256-byte one.
  */
 #if defined(__s390x__)
-#define MAX_PKT_SIZE 3176
+#define MAX_PKT_SIZE 3216
 #else
-#define MAX_PKT_SIZE 3368
+#define MAX_PKT_SIZE 3408
 #endif
 static void test_max_pkt_size(int fd)
 {