]> git.ipfire.org Git - people/ms/suricata.git/commit - src/source-af-packet.c
af-packet: Implement zero copy
authorEric Leblond <eric@regit.org>
Thu, 16 Feb 2012 16:08:54 +0000 (17:08 +0100)
committerVictor Julien <victor@inliniac.net>
Thu, 23 Feb 2012 15:29:45 +0000 (16:29 +0100)
commit34b3f1946563dbdef84bc004e56ccaf3dc031419
tree6dbe770750f87343e1461beb18eac71923537f42
parent3593cb051e2d5cdf5addbd84d170a952161f4786
af-packet: Implement zero copy

This patch adds support for zero copy to AF_PACKET running mode.
This requires to use the 'worker' mode which is the only one where
the threading architecture is simple enough to permit this without
heavy modification.
src/decode.h
src/source-af-packet.c
src/source-af-packet.h
src/tmqh-packetpool.c