summaryrefslogtreecommitdiff
path: root/ring.h
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-05-31 11:46:02 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-05-31 11:46:02 +0200
commit0f765f49ac231d99f493f00c0f0986fbeff2615d (patch)
tree2e95098e81134cccd69a306fff3408309fdf9060 /ring.h
parenta75bad23ef43e05715e0bbf57bb24f682c1bdd13 (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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ring.h b/ring.h
index 1074e8d..93edb01 100644
--- a/ring.h
+++ b/ring.h
@@ -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 */