From b2d2b70745566a8accf7bb33c3d5970b9999c9d1 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 (cherry picked from commit c342b054f40630521253666d3ca0192250a59ad2) --- 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 d91d0cb252..7d04704a9d 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_ { -- 2.47.2