summaryrefslogtreecommitdiff
path: root/ring.h
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2015-10-29 18:56:11 +0100
committerDaniel Borkmann <daniel@iogearbox.net>2015-10-29 18:56:11 +0100
commitb1a4a6fa7b233abbca763178095b076d409cce80 (patch)
tree756254987b4e78c5fe4713dc598de1f420df3070 /ring.h
parent55274adedcabdc3f1e4d66b2c3b77b1612acf20d (diff)
ring: alloc_ring_frames_generic make types size_t
Lets make i and num as size_t, there's no particular reason for them to be int. At least i is used to setup iov_base offsets. Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'ring.h')
-rw-r--r--ring.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ring.h b/ring.h
index 0ac72bb..6517a80 100644
--- a/ring.h
+++ b/ring.h
@@ -200,7 +200,7 @@ static inline int get_sockopt_tpacket(int sock)
extern void setup_ring_layout_generic(int sock, 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, int num, size_t size);
+extern void alloc_ring_frames_generic(struct ring *ring, size_t num, size_t size);
extern void bind_ring_generic(int sock, struct ring *ring, int ifindex, bool tx_only);
#endif /* RING_H */