[dpdk-dev] [PATCH 0/2] add ensure consistent device data in multiprocess mode

Marcin Kerlin marcinx.kerlin at intel.com
Fri Jul 29 17:56:57 CEST 2016


This patch ensure not overwrite device data in the multiprocess application.

1)Changes in the library introduces continuity in device data rte_eth_dev_data[]
common for to all processes. Functionality detach cleans data of detachable 
device and leaves space for other devices or for the next run app.

2)Changes in application testpmd allow secondary process to attach the mempool
created by primary process rather than create new and in the case of quit or
force quit to free devices of this process from shared array rte_eth_dev_data[].

Marcin Kerlin (2):
  lib/librte_ether: ensure not overwrite device data in multiprocess app
  app/testpmd: fix handling of multiprocess

 app/test-pmd/testpmd.c                 | 30 +++++++++++-
 app/test-pmd/testpmd.h                 |  1 +
 lib/librte_ether/rte_ethdev.c          | 87 ++++++++++++++++++++++++++++++----
 lib/librte_ether/rte_ethdev.h          | 23 +++++++++
 lib/librte_ether/rte_ether_version.map |  8 ++++
 5 files changed, 139 insertions(+), 10 deletions(-)

-- 
1.9.1



More information about the dev mailing list