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
- [ovs-dev] [PATCH v2 15/15] netdev-dpdk: Split ether... David Marchand via dev
- Re: [ovs-dev] [PATCH v2 15/15] netdev-dpdk: Sp... Kevin Traynor via dev
- [ovs-dev] [PATCH v2 13/15] netdev-dpdk: Move transm... David Marchand via dev
- Re: [ovs-dev] [PATCH v2 13/15] netdev-dpdk: Mo... Kevin Traynor via dev
- [ovs-dev] [PATCH v2 10/15] netdev-dpdk: Move common... David Marchand via dev
- Re: [ovs-dev] [PATCH v2 10/15] netdev-dpdk: Mo... 0-day Robot via dev
- Re: [ovs-dev] [PATCH v2 10/15] netdev-dpdk: Mo... Kevin Traynor via dev
- Re: [ovs-dev] [PATCH v2 10/15] netdev-dpdk... David Marchand via dev
- [ovs-dev] [PATCH v2 06/15] netdev-dpdk: Fix leak fo... David Marchand via dev
- Re: [ovs-dev] [PATCH v2 06/15] netdev-dpdk: Fi... Kevin Traynor via dev
- Re: [ovs-dev] [PATCH v2 06/15] netdev-dpdk: Fi... Eelco Chaudron via dev
- [ovs-dev] [PATCH v2 11/15] netdev-dpdk: Move mempoo... David Marchand via dev
- Re: [ovs-dev] [PATCH v2 11/15] netdev-dpdk: Mo... 0-day Robot via dev
- Re: [ovs-dev] [PATCH v2 11/15] netdev-dpdk: Mo... Kevin Traynor via dev
- [ovs-dev] [PATCH v2 05/15] netdev-dpdk: Remove unus... David Marchand via dev
- Re: [ovs-dev] [PATCH v2 05/15] netdev-dpdk: Re... Kevin Traynor via dev
- Re: [ovs-dev] [PATCH v2 05/15] netdev-dpdk: Re... Eelco Chaudron via dev
- [ovs-dev] [PATCH v2 07/15] netdev-dpdk: Isolate mem... David Marchand via dev
- Re: [ovs-dev] [PATCH v2 07/15] netdev-dpdk: Is... Kevin Traynor via dev
- [ovs-dev] [PATCH v2 09/15] netdev-dpdk: Separate et... David Marchand via dev
- Re: [ovs-dev] [PATCH v2 09/15] netdev-dpdk: Se... Kevin Traynor via dev
