[dpdk-dev] [rte_ethdev] mac_addrs as part of dev_private may cause primary process crash

2020-03-16 Thread
Hi all, struct rte_eth_dev_data has a member named dev_private and another named mac_addrs, as shown below: struct rte_eth_dev_data { ... void *dev_private; /**< PMD-specific private data. * @see rte_eth_dev_release_port() */ struct ether_addr *mac_addrs; /**< Device Ethernet link address.

[dpdk-dev] [dpdk-stable] [PATCH v2 1/2] hash: fix bugs in 'free key with position'

2019-05-09 Thread
This bug makes 'lock free reader/writer concurrency hash' unusable. There are two reasons: 1] memory leak because we cannot free keys which indexes greater than the number of total entries 2] the ring of free_slots may have unexpected key conflict with in use one The patch fixes these 2 issue