diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-05-30 18:17:40 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-05-30 18:17:40 +0200 |
commit | 2ac7ea413beb6324a1b00e0b5081688ded32a61b (patch) | |
tree | 7d6396bc01821baaa5b0cc64c2b1b14a234521ea | |
parent | 9be74e71213ab2a8d449d1cc6cfa4d533fce0d0f (diff) |
ring: setup_{rx,tx}_ring_layout: use bool for jumbo_support
There's no good reason why we currently waste an 'int' for
jumbo_support while this must better be done as 'bool'.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
-rw-r--r-- | ring_rx.c | 2 | ||||
-rw-r--r-- | ring_rx.h | 2 | ||||
-rw-r--r-- | ring_tx.c | 2 | ||||
-rw-r--r-- | ring_tx.h | 2 |
4 files changed, 4 insertions, 4 deletions
@@ -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)); @@ -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) { @@ -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)); @@ -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) |