diff options
-rw-r--r-- | ring.c | 2 | ||||
-rw-r--r-- | ring.h | 2 | ||||
-rw-r--r-- | ring_rx.c | 2 | ||||
-rw-r--r-- | ring_tx.c | 2 |
4 files changed, 4 insertions, 4 deletions
@@ -20,7 +20,7 @@ #include "ring.h" #include "built_in.h" -void setup_ring_layout_generic(int sock, struct ring *ring, size_t size, +void setup_ring_layout_generic(struct ring *ring, size_t size, bool jumbo_support) { fmemset(&ring->layout, 0, sizeof(ring->layout)); @@ -205,7 +205,7 @@ static inline int get_sockopt_tpacket(int sock) return val; } -extern void setup_ring_layout_generic(int sock, struct ring *ring, size_t size, +extern void setup_ring_layout_generic(struct ring *ring, size_t size, bool jumbo_support); extern void mmap_ring_generic(int sock, struct ring *ring); extern void alloc_ring_frames_generic(struct ring *ring, size_t num, size_t size); @@ -142,7 +142,7 @@ void destroy_rx_ring(int sock, struct ring *ring) static void setup_rx_ring_layout(int sock, struct ring *ring, size_t size, bool jumbo_support, bool v3) { - setup_ring_layout_generic(sock, ring, size, jumbo_support); + setup_ring_layout_generic(ring, size, jumbo_support); if (v3) { setup_rx_ring_layout_v3(ring); @@ -49,7 +49,7 @@ void destroy_tx_ring(int sock, struct ring *ring) static void setup_tx_ring_layout(int sock, struct ring *ring, size_t size, bool jumbo_support) { - setup_ring_layout_generic(sock, ring, size, jumbo_support); + setup_ring_layout_generic(ring, size, jumbo_support); set_sockopt_tpacket_v2(sock); |