05/10/2021 18:45, Ananyev, Konstantin: > > > At queue configure stage always allocate space for maximum possible > > > number (RTE_MAX_QUEUES_PER_PORT) of queue pointers. > > > That will allow 'fast' inline functions (eth_rx_burst, etc.) to refer > > > pointer to internal queue data without extra checking of current number > > > of configured queues. > > > > What is the memory usage overhead per port? > > (2*sizeof(uintptr_t))* RTE_MAX_QUEUES_PER_PORT > With RTE_MAX_QUEUES_PER_PORT==1024 (default value) it is 16KB per port.
Please add it in the commit log. > > We should consider cases with thousand of virtual ports. > > For 1K ports (with 1K queues each) it will be 16MB. OK it looks reasonnable.