[spp] [Bug 457] rte_mempool_create is based on lcore socketid and not the port socketid

bugzilla at dpdk.org bugzilla at dpdk.org
Sun Apr 19 09:02:54 CEST 2020


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

            Bug ID: 457
           Summary: rte_mempool_create is based on lcore socketid and not
                    the port socketid
           Product: SPP
           Version: unspecified
          Hardware: x86
                OS: Linux
            Status: UNCONFIRMED
          Severity: major
          Priority: Normal
         Component: main
          Assignee: yasufum.o at gmail.com
          Reporter: vipin.varghese at intel.com
                CC: spp at dpdk.org
  Target Milestone: ---

File: ```src/primary/init.c```
line: 52

current: 
```
pktmbuf_pool = rte_mempool_create(PKTMBUF_POOL_NAME, num_mbufs,
                        MBUF_SIZE, MBUF_CACHE_SIZE,
                        sizeof(struct rte_pktmbuf_pool_private),
                        rte_pktmbuf_pool_init, NULL, rte_pktmbuf_init, NULL,
                        rte_socket_id(), NO_FLAGS);
```

expected
```
/* using rte_eth_dev_socket_id (uint16_t port_id) 
   a. identify the sockets and pool to be used 
   b. number of ports in same pool
 */
pktmbuf_pool[0] = rte_mempool_create(PKTMBUF_POOL_NAME_0, num_mbufs_0,
                        MBUF_SIZE, MBUF_CACHE_SIZE,
                        sizeof(struct rte_pktmbuf_pool_private),
                        rte_pktmbuf_pool_init, NULL, rte_pktmbuf_init, NULL,
                        0, NO_FLAGS);
```

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the spp mailing list