]> git.ipfire.org Git - thirdparty/suricata.git/commit
af-packet: improve mmaped running mode.
authorEric Leblond <eric@regit.org>
Thu, 5 Jul 2012 05:41:16 +0000 (07:41 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 3 Sep 2012 13:27:38 +0000 (15:27 +0200)
commit8879df80049a1db693e1f196f50928cf2472f12f
tree88598e7941da037c81bcffe24ff856c2896bac44
parent9622704c8c948ab3f23165e060a4027532e395c7
af-packet: improve mmaped running mode.

The mmaped mode was using a too small ring buffer size which was
not able to handle burst of packets coming from the network. This
may explain the important packet loss rate observed by Edward
Fjellskål.
This patch increases the default value and adds a ring-size
variable which can be used to manually tune the value.
src/runmode-af-packet.c
src/source-af-packet.c
src/source-af-packet.h
suricata.yaml.in