ring: netsniff-ng: migrate capture only to TPACKET_V3
commitd8cdc6ab87550de9c93b1f6763ea6015f292d7fb
authorDaniel Borkmann <dborkman@redhat.com>
Fri, 31 May 2013 13:07:15 +0000 (31 15:07 +0200)
committerDaniel Borkmann <dborkman@redhat.com>
Fri, 31 May 2013 13:07:15 +0000 (31 15:07 +0200)
treee45481799a4436a4c5cb091151e2475e4da7df5c
parentcacb34f95fb7937e81b1fe8add7b5dca91e3a4c5
ring: netsniff-ng: migrate capture only to TPACKET_V3

Lets migrate capturing to TPACKET_V3, since it will bring a better
performance due to fewer page cache misses caused by a higher density
of packets, since now they are contigous placed in the ring buffer.

It is said that TPACKET_V3 brings the following benefits:

 *) ~15 - 20% reduction in CPU-usage
 *) ~20% increase in packet capture rate
 *) ~2x increase in packet density
 *) Port aggregation analysis
 *) Non static frame size to capture entire packet payload

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
dissector.h
netsniff-ng.c
pcap_io.h
ring.h
ring_rx.c
xutils.c
xutils.h