mirror of https://github.com/OISF/suricata
pfring: call enable_ring after set_cluster
Move pfring_enable_ring to the start of ReceivePfringLoop() so that it's guaranteed to be called after all threads have called pfring_set_cluster first. This is necessary because pfring will already make packets available to thread N, while thread N+1 is still registering itself. This leads to cases where the first packet(s) of a flow are processed by a different thread in Suricata than the later ones. This is a race condition only at start up. New flows after the pfring initialization is complete will not be influenced by this. Bug #1129.pull/881/head
parent
845cbcce90
commit
fdb1bd9668
Loading…
Reference in New Issue