From 0f765f49ac231d99f493f00c0f0986fbeff2615d Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Fri, 31 May 2013 11:46:02 +0200 Subject: 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 --- ring.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ring.h') 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 */ -- cgit v1.2.3-54-g00ecf