[dpdk-dev] [PATCH 0/2] Enable eal event hotplug for i40e

Jeff Guo jia.guo at intel.com
Thu Jul 5 12:39:43 CEST 2018


As we may know, we have eal event for rte device hotplug and ethdev event
for ethdev hotplug. Some ethdev need to use eal event to detect hotplug
behaviors, the privors way is register eal event callback in app, but
seems that it will have some race between these 2 event process. In oder
to fix the problem, it might be better to find a way to combind these 2
events detect.

This patch set introduce a way to combind these 2 event, by register the
eal event callback in pmd driver and trigger the ethdev hotplug event in
the callback. That will let the ethdev device can easy process hotplug by a
common way.

Here let i40 pmd driver for example, other driver which support hotplug
feature could be use this way to enable hotplug.

Jeff Guo (2):
  net/i40e: enable hotplug in i40e
  testpmd: remove the dev event callback register

 app/test-pmd/testpmd.c         | 76 ------------------------------------------
 drivers/net/i40e/i40e_ethdev.c | 46 ++++++++++++++++++++++++-
 2 files changed, 45 insertions(+), 77 deletions(-)

-- 
2.7.4



More information about the dev mailing list