From c342b054f40630521253666d3ca0192250a59ad2 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Wed, 12 Mar 2025 15:56:40 -0600 Subject: [PATCH] af-packet: increase default block size Increase the default block size from 32k to 128k. This allows for a fully defragmented packet to fit in the buffer. Ticket: #7458 --- src/source-af-packet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/source-af-packet.h b/src/source-af-packet.h index 6785f2fb52..eb0fa5380e 100644 --- a/src/source-af-packet.h +++ b/src/source-af-packet.h @@ -75,7 +75,7 @@ struct ebpf_timeout_config { * page_size << order. So default value is using the same formula with * an order of 3 which guarantee we have some room in the block compared * to standard frame size */ -#define AFP_BLOCK_SIZE_DEFAULT_ORDER 3 +#define AFP_BLOCK_SIZE_DEFAULT_ORDER 5 typedef struct AFPIfaceConfig_ {