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 to UINT16_MAX, the rte_eth_dev_info_get is > updated to initialize dev_ibfo structure accordingly. > > Fixes: ce9250406323 ("ethdev: add switch domain allocator") > Cc: sta...@dpdk.org > > Signed-off-by: Viacheslav Ovsiienko <viachesl...@mellanox.com> > > --- > v1: - http://patches.dpdk.org/patch/64011/ > v2: - RTE_ETH_DEV_SWITCH_DOMAIN_ID_INVALID is defined as UINT16_MAX > - valid domain range to allocate: 0..RTE_MAX_ETHPORTS-1 >
Reviewed-by: Ferruh Yigit <ferruh.yi...@intel.com>