From 2ac7ea413beb6324a1b00e0b5081688ded32a61b Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Thu, 30 May 2013 18:17:40 +0200 Subject: 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 --- ring_tx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ring_tx.h') 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) -- cgit v1.2.3-54-g00ecf