diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-05-31 11:46:02 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-05-31 11:46:02 +0200 |
commit | 0f765f49ac231d99f493f00c0f0986fbeff2615d (patch) | |
tree | 2e95098e81134cccd69a306fff3408309fdf9060 /ring.h | |
parent | a75bad23ef43e05715e0bbf57bb24f682c1bdd13 (diff) |
ring: move duplicate/generic code parts from rx/tx into ring.c
We do not want to maintain duplicate code, so move this into a separate
file and name those *_generic() helpers.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'ring.h')
-rw-r--r-- | ring.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -141,4 +141,8 @@ static inline int get_sockopt_tpacket(int sock) return __get_sockopt_tpacket(sock); } +extern void mmap_ring_generic(int sock, struct ring *ring); +extern void alloc_ring_frames_generic(struct ring *ring); +extern void bind_ring_generic(int sock, struct ring *ring, int ifindex); + #endif /* RING_H */ |