]> 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:32:55 +0000 (11:32 +0100)
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

index d91d0cb25232c54870c27d67787d855d39629711..7d04704a9d00234561bbe57e28d972d1070a0287 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_
 {