]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
af-packet: increase default block size
authorJason Ish <jason.ish@oisf.net>
Wed, 12 Mar 2025 21:56:40 +0000 (15:56 -0600)
committerVictor Julien <vjulien@oisf.net>
Tue, 18 Mar 2025 10:02:32 +0000 (11:02 +0100)
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

index 6785f2fb52d7ecdf1331bd2a46f661647d62bc9d..eb0fa5380e75a8172515fbd6f135075c6846a7e9 100644 (file)
@@ -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_
 {