summaryrefslogtreecommitdiff
path: root/ring_rx.h
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-05-30 18:11:08 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-05-30 18:11:08 +0200
commit9be74e71213ab2a8d449d1cc6cfa4d533fce0d0f (patch)
treeff2981355231f8f59917d1d5bab55a6f1e1ba5d1 /ring_rx.h
parentc3fec06db030445563d3945eec6320afa9a3db62 (diff)
ring: prepare setup_rx_ring_layout for support in v2/v3
Prepare setup_rx_ring_layout for both, v2 and v3. Also do some checks during compile time if offsets stay the same as we operate on different union mappings. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'ring_rx.h')
-rw-r--r--ring_rx.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ring_rx.h b/ring_rx.h
index 0e0478c..8556e3a 100644
--- a/ring_rx.h
+++ b/ring_rx.h
@@ -16,7 +16,7 @@ extern void mmap_rx_ring(int sock, struct ring *ring);
extern void alloc_rx_ring_frames(struct ring *ring);
extern void bind_rx_ring(int sock, struct ring *ring, int ifindex);
extern void setup_rx_ring_layout(int sock, struct ring *ring,
- unsigned int size, int jumbo_support);
+ unsigned int size, int jumbo_support, bool v3);
static inline int user_may_pull_from_rx(struct tpacket2_hdr *hdr)
{