[PATCH v7 2/4] ethdev: support mulitiple mbuf pools per Rx queue
Andrew Rybchenko
andrew.rybchenko at oktetlabs.ru
Fri Oct 7 18:33:17 CEST 2022
On 10/7/22 19:20, Stephen Hemminger wrote:
> On Fri, 7 Oct 2022 09:18:14 -0700
> Stephen Hemminger <stephen at networkplumber.org> wrote:
>
>> On Fri, 07 Oct 2022 18:08:57 +0200
>> Thomas Monjalon <thomas at monjalon.net> wrote:
>>
>>>> + /* Ensure that we have one and only one source of Rx buffers */
>>>> + if ((mp != NULL) +
>>>
>>> + operator?
>>> Are we sure a boolean is always translated as 1?
>>
>> Yes, it is likely part of C standard.
>
>
> Found it: https://en.cppreference.com/w/c/language/operator_comparison
> The type of any equality operator expression is int, and its value (which is not an lvalue) is 1
> when the specified relationship holds true and 0 when the specified relationship does not hold.
Many thanks, Stephen.
More information about the dev
mailing list