> Qi Zhang (6): > ethdev: add function to release port in secondary process > eal: enable hotplug on multi-process > eal: support attach or detach share device from secondary > drivers/net: enable hotplug on secondary process > drivers/net: enable device detach on secondary > examples/multi_process: add hotplug sample > > doc/guides/rel_notes/release_18_11.rst | 13 + > drivers/net/af_packet/rte_eth_af_packet.c | 6 +- > drivers/net/bnxt/bnxt_ethdev.c | 6 +- > drivers/net/bonding/rte_eth_bond_pmd.c | 6 +- > drivers/net/ena/ena_ethdev.c | 2 +- > drivers/net/kni/rte_eth_kni.c | 6 +- > drivers/net/liquidio/lio_ethdev.c | 2 +- > drivers/net/null/rte_eth_null.c | 6 +- > drivers/net/octeontx/octeontx_ethdev.c | 8 + > drivers/net/pcap/rte_eth_pcap.c | 6 +- > drivers/net/tap/rte_eth_tap.c | 8 +- > drivers/net/vhost/rte_eth_vhost.c | 6 +- > drivers/net/virtio/virtio_ethdev.c | 2 +- > examples/multi_process/Makefile | 1 + > examples/multi_process/hotplug_mp/Makefile | 23 ++ > examples/multi_process/hotplug_mp/commands.c | 214 ++++++++++++++ > examples/multi_process/hotplug_mp/commands.h | 10 + > examples/multi_process/hotplug_mp/main.c | 41 +++ > lib/librte_eal/bsdapp/eal/Makefile | 1 + > lib/librte_eal/common/eal_common_dev.c | 254 ++++++++++++++-- > lib/librte_eal/common/eal_private.h | 22 ++ > lib/librte_eal/common/hotplug_mp.c | 426 > +++++++++++++++++++++++++++ > lib/librte_eal/common/hotplug_mp.h | 46 +++ > lib/librte_eal/common/include/rte_dev.h | 12 + > lib/librte_eal/common/include/rte_eal.h | 9 + > lib/librte_eal/common/meson.build | 1 + > lib/librte_eal/linuxapp/eal/Makefile | 1 + > lib/librte_eal/linuxapp/eal/eal.c | 6 + > lib/librte_ethdev/rte_ethdev.c | 17 +- > lib/librte_ethdev/rte_ethdev_driver.h | 16 +- > lib/librte_ethdev/rte_ethdev_pci.h | 10 +- > lib/librte_ethdev/rte_ethdev_version.map | 7 + > 32 files changed, 1151 insertions(+), 43 deletions(-)
Applied, thanks. Note: some PMDs are updated to support multi-process hotplug, but not all of them. I think you focused on the generic ones (af_packet, pcap, tap, bonding), but you forgot failsafe. Please, could you follow-up in -rc2? Thank you