summaryrefslogtreecommitdiffstats
path: root/src/vnet/devices/tap/cli.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2019-11-08 17:59:56 +0100
committerFlorin Coras <florin.coras@gmail.com>2019-11-20 17:28:04 +0000
commit7c6102b1aabb13ad489aa10ebd5fc71665b7c665 (patch)
tree469e199b1b87549a6a7a91e260016a00d8ab9ba2 /src/vnet/devices/tap/cli.c
parent0b6c9c485f61c5c1d7529a0aa4aebe4ccb6496af (diff)
tap: multiqueue support
Type: feature Change-Id: I7dcc8c6911d02729b3bda1b3a21a211c82c3b949 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/devices/tap/cli.c')
-rw-r--r--src/vnet/devices/tap/cli.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vnet/devices/tap/cli.c b/src/vnet/devices/tap/cli.c
index 42fa8d73f35..abec8f07842 100644
--- a/src/vnet/devices/tap/cli.c
+++ b/src/vnet/devices/tap/cli.c
@@ -42,6 +42,7 @@ tap_create_command_fn (vlib_main_t * vm, unformat_input_t * input,
args.id = ~0;
args.tap_flags = 0;
args.rv = -1;
+ args.num_rx_queues = 1;
/* Get a line of input. */
if (unformat_user (input, unformat_line_input, line_input))
@@ -74,6 +75,8 @@ tap_create_command_fn (vlib_main_t * vm, unformat_input_t * input,
else if (unformat (line_input, "host-ip6-gw %U",
unformat_ip6_address, &args.host_ip6_gw))
args.host_ip6_gw_set = 1;
+ else if (unformat (line_input, "num-rx-queues %d", &tmp))
+ args.num_rx_queues = tmp;
else if (unformat (line_input, "rx-ring-size %d", &tmp))
args.rx_ring_sz = tmp;
else if (unformat (line_input, "tx-ring-size %d", &tmp))