On 24 Nov 2026, at 11:52, David Marchand wrote:

> In per port memory mode, dpdk_mp_get() checks rte_errno for EEXIST after
> dpdk_mp_create() returned successfully, to detect that a mempool with the
> same name already existed, and merges the returned dmp with the matching
> entry of dpdk_mp_list.
>
> But DPDK only guarantees the value of rte_errno when an operation fails.
> After a first genuine EEXIST, a later successful mempool creation still
> sees rte_errno set to EEXIST: the merge loop then runs for a brand new
> mempool, finds no matching entry, and the new dmp is neither freed nor
> added to dpdk_mp_list.
>
> Move the tracking to a new dpdk_mp_track() helper that deduplicates by
> mempool pointer identity, regardless of rte_errno: a freshly created
> mempool can not match a tracked entry, as mempool names are unique per
> configuration.
>
> Fixes: 43307ad0e254 ("dpdk: Support both shared and per port mempools.")
> Signed-off-by: David Marchand <[email protected]>
> ---

Thanks David, this change looks good to me.

Acked-by: Eelco Chaudron <[email protected]>

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to