[PATCH v3] ethdev: fix getting supported ptypes list

David Marchand david.marchand at redhat.com
Fri Dec 22 09:21:34 CET 2023


On Thu, Dec 21, 2023 at 7:40 PM Sivaramakrishnan Venkat
<venkatx.sivaramakrishnan at intel.com> wrote:
>
> Incorrect ptypes list causes buffer overflow for Address Sanitizer
> run.Previously, the last element in the ptypes lists to be

Which driver(s) is(are) affected?
We need separated fixes for backporting.


> "RTE_PTYPE_UNKNOWN" for rte_eth_dev_get_supported_ptypes(), but this was
> not clearly documented and many PMDs did not follow this implementation.
> Instead, the dev_supported_ptypes_get() function pointer now returns the
> number of elements to eliminate the need for "RTE_PTYPE_UNKNOWN"
> as the last item.
>
> Fixes: 4790935 ("ethdev: make device operations struct private")

I doubt it is a correct Fixes: tag.

> Cc: ferruh.yigit at intel.com
> CC: stable at dpdk.org

Once the fixes are separated, then the driver API update proposed in
this patch can be done in a second step (and it won't be backported).

The CI caught unconverted drivers, please fix.


-- 
David Marchand



More information about the stable mailing list