]> git.ipfire.org Git - people/ms/suricata.git/commit
pfring pkt acq: capture loop optimisation
authorcardigliano <cardigliano@ntop.org>
Wed, 21 Oct 2015 23:43:41 +0000 (01:43 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 22 Oct 2015 08:16:54 +0000 (10:16 +0200)
commit86711a1332f7082a688ff68ad38f2641bd20ee26
tree629955dde054d4d68bdff72dd97bc31d0d9e8ca6
parent70c98c1ff25a143eb156144d3e517d6d5251c7b1
pfring pkt acq: capture loop optimisation

For each packet the capture module checks whether it is time to dump stats calling
TimeGet(). TimeGet() is an expensive function using gettimeofday() or SCSpinLock()
which affect performance. Since gettimeofday() is already called for setting packet
timestamp, it is more efficient to use the packet timestamp directly.
src/source-pfring.c