summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ring.c2
-rw-r--r--ring.h2
-rw-r--r--ring_rx.c2
-rw-r--r--ring_tx.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/ring.c b/ring.c
index 4ef0f78..b0feea0 100644
--- a/ring.c
+++ b/ring.c
@@ -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));
diff --git a/ring.h b/ring.h
index 4153b9c..971e8de 100644
--- a/ring.h
+++ b/ring.h
@@ -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);
diff --git a/ring_rx.c b/ring_rx.c
index f40ad2f..8bfb658 100644
--- a/ring_rx.c
+++ b/ring_rx.c
@@ -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);
diff --git a/ring_tx.c b/ring_tx.c
index b8ce446..4041bc4 100644
--- a/ring_tx.c
+++ b/ring_tx.c
@@ -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);