[dpdk-dev] [PATCH] eal: make rte_lcore_cpuset and rte_lcore_to_cpu_id stable
Andrew Rybchenko
andrew.rybchenko at oktetlabs.ru
Thu Sep 2 08:01:58 CEST 2021
On 9/1/21 8:16 PM, Stephen Hemminger wrote:
>
>>> /**
>>> - * @warning
>>> - * @b EXPERIMENTAL: this API may change without prior notice.
>>> - *
>>> * Return the cpuset for a given lcore.
>>> * @param lcore_id
>>> * the targeted lcore, which MUST be between 0 and RTE_MAX_LCORE-1.
>>> * @return
>>> * The cpuset of that lcore
>>> */
>>> -__rte_experimental
>>> rte_cpuset_t
>>> rte_lcore_cpuset(unsigned int lcore_id);
>>
>> I'm wondering why negative lcore_id is supported above
>> with special meaning, but not supported here.
>
> The DPDK API stability in this case means staying bug-for-bug
> compatible. I.e passing -1 as unsigned int results in UINT_MAX which
> is invalid.
Isn't promotion to stable the last chance to review and
fix without much pain?
More information about the dev
mailing list