* [dpdk-users] How To Handle Hot Remove?
@ 2016-04-28 23:50 David Harton (dharton)
2016-04-29 6:53 ` Thomas Monjalon
0 siblings, 1 reply; 2+ messages in thread
From: David Harton (dharton) @ 2016-04-28 23:50 UTC (permalink / raw)
To: users
I've looked at the docs online and in the git repo. I've also looked at what is in test-pmd but I haven't found an answer to the following questions around the scenario where a user pulls out the NIC card of an in-service system. Or another example would be a user removes an interface from the host KVM config while the guest application is processing packets for that interface.
1) What notification does DPDK provide the application or to gracefully stop the device?
2) Is there any kind of ordering the application has to follow before calling rte_eth_dev_detatch()?
Thanks,
Dave
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-users] How To Handle Hot Remove?
2016-04-28 23:50 [dpdk-users] How To Handle Hot Remove? David Harton (dharton)
@ 2016-04-29 6:53 ` Thomas Monjalon
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2016-04-29 6:53 UTC (permalink / raw)
To: David Harton (dharton); +Cc: users
2016-04-28 23:50, David Harton:
> 1) What notification does DPDK provide the application or to gracefully stop the device?
A rework of hotplug is in progress:
http://dpdk.org/ml/archives/dev/2016-April/037686.html
Notifications needs to be added.
> 2) Is there any kind of ordering the application has to follow before calling rte_eth_dev_detatch()?
The order is "stop - close - detach":
/**
* Detach a Ethernet device specified by port identifier.
* This function must be called when the device is in the
* closed state.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-04-29 6:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-28 23:50 [dpdk-users] How To Handle Hot Remove? David Harton (dharton)
2016-04-29 6:53 ` Thomas Monjalon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).