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)

This commit is contained in:
Pim van Pelt
2023-04-06 23:36:36 +02:00
parent 6fe37f6a8d
commit 9017d1bd3c

View File

@ -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,