summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ring_rx.c2
-rw-r--r--ring_rx.h2
-rw-r--r--ring_tx.c2
-rw-r--r--ring_tx.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/ring_rx.c b/ring_rx.c
index 12ce086..fc735cc 100644
--- a/ring_rx.c
+++ b/ring_rx.c
@@ -36,7 +36,7 @@ void destroy_rx_ring(int sock, struct ring *ring)
}
void setup_rx_ring_layout(int sock, struct ring *ring, unsigned int size,
- int jumbo_support, bool v3)
+ bool jumbo_support, bool v3)
{
fmemset(&ring->layout, 0, sizeof(ring->layout));
diff --git a/ring_rx.h b/ring_rx.h
index 8556e3a..b1114a6 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, bool v3);
+ unsigned int size, bool jumbo_support, bool v3);
static inline int user_may_pull_from_rx(struct tpacket2_hdr *hdr)
{
diff --git a/ring_tx.c b/ring_tx.c
index b7cde7e..f4f06a1 100644
--- a/ring_tx.c
+++ b/ring_tx.c
@@ -46,7 +46,7 @@ void destroy_tx_ring(int sock, struct ring *ring)
}
void setup_tx_ring_layout(int sock, struct ring *ring, unsigned int size,
- int jumbo_support)
+ bool jumbo_support)
{
fmemset(&ring->layout, 0, sizeof(ring->layout));
diff --git a/ring_tx.h b/ring_tx.h
index eff7235..6f626d1 100644
--- a/ring_tx.h
+++ b/ring_tx.h
@@ -19,7 +19,7 @@ extern void mmap_tx_ring(int sock, struct ring *ring);
extern void alloc_tx_ring_frames(struct ring *ring);
extern void bind_tx_ring(int sock, struct ring *ring, int ifindex);
extern void setup_tx_ring_layout(int sock, struct ring *ring,
- unsigned int size, int jumbo_support);
+ unsigned int size, bool jumbo_support);
extern void set_packet_loss_discard(int sock);
static inline int user_may_pull_from_tx(struct tpacket2_hdr *hdr)
13c3aaa756c69b343d6ab6f3357009b'>ib_umem.h3577logplain -rw-r--r--ib_umem_odp.h5300logplain -rw-r--r--ib_verbs.h100225logplain -rw-r--r--iw_cm.h8793logplain -rw-r--r--iw_portmap.h7688logplain -rw-r--r--mr_pool.h954logplain -rw-r--r--opa_port_info.h15063logplain -rw-r--r--opa_smi.h4417logplain