[RFC] ethdev: add buffer size parameter to rte_eth_dev_get_name_by_port()
Stephen Hemminger
stephen at networkplumber.org
Thu Apr 9 17:23:58 CEST 2026
On Thu, 9 Apr 2026 12:05:35 +0300
Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru> wrote:
> >>
> >> As far as I know typically variable declaration and code are not mixed
> >> in DPDK.
> >>
> >
> > AFAIK That used to be the case because early versions of DPDK targetting a
> > very early C standard. More recently, we've started allowing this sort of
> > use, which makes the code more readable IMHO and easier to work with too as
> > commenting out blocks when debugging leads to fewer unused variable warnings.
> >
> > /Bruce
>
> Bruce, thanks for the clarification.
I started doing this more to avoid uninitalized variable hazards.
More information about the dev
mailing list