Re: Allocate if_index before queue init

2022-07-27 Thread Alexander Bluhm
On Sat, Jul 16, 2022 at 10:28:56AM +, Visa Hankala wrote: > The index of a network interface is assigned in if_idxmap_insert(). > ifq_init() and ifiq_init() use if_index before it has its final value. > As a consequence, interfaces tend to use net_tq(0) as their first > softnet task queue even

Allocate if_index before queue init

2022-07-16 Thread Visa Hankala
The index of a network interface is assigned in if_idxmap_insert(). ifq_init() and ifiq_init() use if_index before it has its final value. As a consequence, interfaces tend to use net_tq(0) as their first softnet task queue even though the other softnet task queues could be used as well. To fix