[v2,0/3] Enable eal hotplug event detect for i40e/ixgbe

Message ID 1531119413-17298-1-git-send-email-jia.guo@intel.com (mailing list archive)
Headers
Series Enable eal hotplug event detect for i40e/ixgbe |

Message

Guo, Jia July 9, 2018, 6:56 a.m. UTC
  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 i40e/ixgbe pmd driver for example, other driver which support
hotplug feature could be use this way to enable hotplug.

patch history:
v2->v1:
add ixgbe hotplug detect case.
refine some doc.

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

 app/test-pmd/testpmd.c           | 76 ----------------------------------------
 drivers/net/i40e/i40e_ethdev.c   | 46 +++++++++++++++++++++++-
 drivers/net/ixgbe/ixgbe_ethdev.c | 46 +++++++++++++++++++++++-
 3 files changed, 90 insertions(+), 78 deletions(-)