Re: [dpdk-dev] [PATCH v2] ethdev: fix switching domain allocation

2020-01-16 Thread Ferruh Yigit
On 1/16/2020 4:19 PM, Viacheslav Ovsiienko wrote: > The maximum amount of unique swutching domain is supposed > to be equal RTE_MAX_ETHPORTS. Current implementation allows > to allocate only RTE_MAX_ETHPORTS-1 domains. > > The definition of RTE_ETH_DEV_SWITCH_DOMAIN_ID_INVALID is > changed from 0

[dpdk-dev] [PATCH v2] ethdev: fix switching domain allocation

2020-01-16 Thread Viacheslav Ovsiienko
The maximum amount of unique swutching domain is supposed to be equal RTE_MAX_ETHPORTS. Current implementation allows to allocate only RTE_MAX_ETHPORTS-1 domains. The definition of RTE_ETH_DEV_SWITCH_DOMAIN_ID_INVALID is changed from 0 to UINT16_MAX, the rte_eth_dev_info_get is updated to initiali