mirror of https://github.com/OISF/suricata
dpdk: adjust burst size to mempool size
When mempool size was configured really low (<32), Suricata exhausted
the mempool with the rx_burst call, which led to undefined behavior.
The current fix ensures the burst size is at most the size of the mempool,
if the mempool is smaller than BURST_SIZE macro.
(cherry picked from commit 1d06103e08)
pull/14993/head
parent
014049625e
commit
7c24721f72
Loading…
Reference in New Issue