Skip to contentSkip to conversation

rte_pktmbuf_pool_create doesn't set the correct rte_errno

DPDK/core Bug 1559 [email protected] 1 participant 2 messages Oct 6, 2024 – Mar 26, 2025

lore
Share & tools
lore
#0 lore raw

https://bugs.dpdk.org/show_bug.cgi?id=1559

            Bug ID: 1559
           Summary: rte_pktmbuf_pool_create doesn't set the correct
                    rte_errno
           Product: DPDK
           Version: 24.03
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: core
          Assignee: [email protected]
          Reporter: [email protected]

Target Milestone: ---

rte_pktmbuf_pool_create --> rte_pktmbuf_pool_create_by_ops --> rte_mempool_create_empty. In rte_mempool_create_empty, there's such logic: ret = rte_mempool_set_ops_byname(mp, "xxx", NULL); rte_mempool_set_ops_byname doesn't set rte_errno, but use return code to indicate errno. So rte_mempool_create_empty should set rte_errno according to ret, but it forget to do it.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#1 lore raw

https://bugs.dpdk.org/show_bug.cgi?id=1559

Thomas Monjalon ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Thomas Monjalon ([email protected]) --- Resolved in http://git.dpdk.org/dpdk/commit/?id=a81d8ceff4

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.