[PATCH v7 2/4] ethdev: support mulitiple mbuf pools per Rx queue
Stephen Hemminger
stephen at networkplumber.org
Fri Oct 7 18:20:06 CEST 2022
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.
More information about the dev
mailing list