diff options
author | 2024-10-08 20:50:56 +0200 | |
---|---|---|
committer | 2024-11-07 16:49:49 +0100 | |
commit | 61e287b9f895fa7cd9809ec74e44efee780a5aad (patch) | |
tree | 2a1f6e6f038062940d9b04dce480ed07394c9407 /src/vnet/dev/queue.c | |
parent | de020ab4788d75e70f0cfea4c21f09a4716be161 (diff) |
dev: secondary interfaces support
Type: feature
Change-Id: I6cc4340431b8273022955fca1600061a722e3ace
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/dev/queue.c')
-rw-r--r-- | src/vnet/dev/queue.c | 10 |
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); |