[dpdk-dev] [dpdk-stable] [PATCH v2] ethdev: fix switching domain allocation
Ferruh Yigit
ferruh.yigit at intel.com
Fri Jan 17 14:20:25 CET 2020
On 1/16/2020 7:38 PM, Ferruh Yigit wrote:
> 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: stable at dpdk.org
>>
>> Signed-off-by: Viacheslav Ovsiienko <viacheslavo at 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.yigit at intel.com>
>
Applied to dpdk-next-net/master, thanks.
More information about the dev
mailing list