virtio: fix cli parsing for tx-queue-size 72/39872/4
authorVratko Polak <vrpolak@cisco.com>
Tue, 14 Nov 2023 18:41:11 +0000 (19:41 +0100)
committerMohammed HAWARI <momohawari@gmail.com>
Tue, 21 Nov 2023 12:45:39 +0000 (12:45 +0000)
The previous change made CSIT virtio tests fail,
but those tests are not part of trending.

Ticket: VPP-2088
Type: fix
Fixes: a181eaa59bb2ff2784376918e95bbf92e5340db1

Change-Id: If0439a030c051894e07007da9cf0a2e4dc1434c3
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
src/vnet/devices/virtio/cli.c

index cadfd67..45642d6 100644 (file)
@@ -44,7 +44,7 @@ virtio_pci_create_command_fn (vlib_main_t * vm, unformat_input_t * input,
        ;
       else if (unformat (line_input, "feature-mask 0x%llx", &feature_mask))
        args.features = feature_mask;
-      if (unformat (line_input, "tx-queue-size %u", &txq_size))
+      else if (unformat (line_input, "tx-queue-size %u", &txq_size))
        args.tx_queue_size = txq_size;
       else if (unformat (line_input, "gso-enabled"))
        args.gso_enabled = 1;