On 10/13/21 4:36 PM, Konstantin Ananyev wrote: > 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. > That would help in future to hide rte_eth_dev and related structures. > It means that from now on, each ethdev port will always consume: > ((2*sizeof(uintptr_t))* RTE_MAX_QUEUES_PER_PORT) > bytes of memory for its queue pointers. > With RTE_MAX_QUEUES_PER_PORT==1024 (default value) it is 16KB per port. > > Signed-off-by: Konstantin Ananyev <konstantin.anan...@intel.com>
Reviewed-by: Andrew Rybchenko <andrew.rybche...@oktetlabs.ru>