summaryrefslogtreecommitdiff
path: root/ring.h
diff options
context:
space:
mode:
Diffstat (limited to 'ring.h')
-rw-r--r--ring.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/ring.h b/ring.h
index 0ef42d1..9737862 100644
--- a/ring.h
+++ b/ring.h
@@ -44,8 +44,6 @@ static inline void next_rnd_slot(unsigned int *it, struct ring *ring)
*it = rand() % ring->layout.tp_frame_nr;
}
-#define RING_SIZE_FALLBACK (1 << 26)
-
static inline unsigned int ring_size(char *ifname, unsigned int size)
{
if (size > 0)
@@ -65,7 +63,7 @@ static inline unsigned int ring_size(char *ifname, unsigned int size)
size = (size * 1000000) / 8;
size = size * 2;
if (size == 0)
- size = RING_SIZE_FALLBACK;
+ size = 1 << 26;
return round_up_cacheline(size);
}