aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/dev/queue.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/dev/queue.c')
-rw-r--r--src/vnet/dev/queue.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/vnet/dev/queue.c b/src/vnet/dev/queue.c
index 7efea5f14bd..57ed3dcae3b 100644
--- a/src/vnet/dev/queue.c
+++ b/src/vnet/dev/queue.c
@@ -36,7 +36,6 @@ vnet_dev_rx_queue_alloc (vlib_main_t *vm, vnet_dev_port_t *port,
vnet_dev_t *dev = port->dev;
vnet_dev_rv_t rv = VNET_DEV_OK;
u16 n_threads = vlib_get_n_threads ();
- u8 buffer_pool_index;
vnet_dev_port_validate (vm, port);
@@ -65,15 +64,6 @@ vnet_dev_rx_queue_alloc (vlib_main_t *vm, vnet_dev_port_t *port,
dm->next_rx_queue_thread = 1;
}
- buffer_pool_index =
- vlib_buffer_pool_get_default_for_numa (vm, dev->numa_node);
- vlib_buffer_pool_t *bp = vlib_get_buffer_pool (vm, buffer_pool_index);
-
- rxq->buffer_template = bp->buffer_template;
- vnet_buffer (&rxq->buffer_template)->sw_if_index[VLIB_TX] = ~0;
-
- rxq->next_index = vnet_dev_default_next_index_by_port_type[port->attr.type];
-
if (port->rx_queue_ops.alloc)
rv = port->rx_queue_ops.alloc (vm, rxq);