diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-05-30 18:11:08 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-05-30 18:11:08 +0200 |
commit | 9be74e71213ab2a8d449d1cc6cfa4d533fce0d0f (patch) | |
tree | ff2981355231f8f59917d1d5bab55a6f1e1ba5d1 /ring_tx.c | |
parent | c3fec06db030445563d3945eec6320afa9a3db62 (diff) |
ring: prepare setup_rx_ring_layout for support in v2/v3
Prepare setup_rx_ring_layout for both, v2 and v3. Also do some checks
during compile time if offsets stay the same as we operate on different
union mappings.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'ring_tx.c')
-rw-r--r-- | ring_tx.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -61,9 +61,7 @@ void setup_tx_ring_layout(int sock, struct ring *ring, unsigned int size, ring->layout.tp_frame_size * ring->layout.tp_block_nr; - bug_on(ring->layout.tp_block_size < ring->layout.tp_frame_size); - bug_on((ring->layout.tp_block_size % ring->layout.tp_frame_size) != 0); - bug_on((ring->layout.tp_block_size % getpagesize()) != 0); + ring_verify_layout(ring); } void create_tx_ring(int sock, struct ring *ring, int verbose) |