summaryrefslogtreecommitdiff
path: root/ring_tx.c
diff options
context:
space:
mode:
Diffstat (limited to 'ring_tx.c')
-rw-r--r--ring_tx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ring_tx.c b/ring_tx.c
index 17d5f26..ee47f3f 100644
--- a/ring_tx.c
+++ b/ring_tx.c
@@ -45,7 +45,7 @@ void destroy_tx_ring(int sock, struct ring *ring)
xfree(ring->frames);
}
-void setup_tx_ring_layout(int sock, struct ring *ring, unsigned int size,
+void setup_tx_ring_layout(int sock, struct ring *ring, size_t size,
bool jumbo_support)
{
fmemset(&ring->layout, 0, sizeof(ring->layout));
@@ -86,7 +86,7 @@ retry:
if (ret < 0)
panic("Cannot allocate TX_RING!\n");
- ring->mm_len = ring->layout.tp_block_size * ring->layout.tp_block_nr;
+ ring->mm_len = (size_t) ring->layout.tp_block_size * ring->layout.tp_block_nr;
if (verbose) {
printf("TX,V2: %.2Lf MiB, %u Frames, each %u Byte allocated\n",