From 9017d1bd3c18a867b55c54882bda80496c21fe10 Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Thu, 6 Apr 2023 23:36:36 +0200 Subject: [PATCH] Move back to multiple rx queues; and copy in the upstream change to autoassign a tap index ID, as the hw_if_index one could ba already taken (by tap create) --- lcpng_interface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lcpng_interface.c b/lcpng_interface.c index 1200aa7..ef3b8fc 100644 --- a/lcpng_interface.c +++ b/lcpng_interface.c @@ -955,9 +955,9 @@ lcp_itf_pair_create (u32 phy_sw_if_index, u8 *host_if_name, else { tap_create_if_args_t args = { - .num_rx_queues = 1, + .num_rx_queues = clib_max (1, vlib_num_workers ()), .num_tx_queues = 1, - .id = hw->hw_if_index, + .id = ~0, .sw_if_index = ~0, .rx_ring_sz = 256, .tx_ring_sz = 256,