> -----Original Message----- > From: Guo, Jia > Sent: Thursday, October 4, 2018 3:46 PM > To: step...@networkplumber.org; Richardson, Bruce > <bruce.richard...@intel.com>; Yigit, Ferruh <ferruh.yi...@intel.com>; Ananyev, > Konstantin <konstantin.anan...@intel.com>; gaetan.ri...@6wind.com; Wu, > Jingjing <jingjing...@intel.com>; tho...@monjalon.net; > mo...@mellanox.com; ma...@mellanox.com; Van Haaren, Harry > <harry.van.haa...@intel.com>; Zhang, Qi Z <qi.z.zh...@intel.com>; He, > Shaopeng <shaopeng...@intel.com>; Iremonger, Bernard > <bernard.iremon...@intel.com>; arybche...@solarflare.com; Lu, Wenzhuo > <wenzhuo...@intel.com>; Burakov, Anatoly <anatoly.bura...@intel.com>; > jerin.ja...@caviumnetworks.com > Cc: jblu...@infradead.org; shreyansh.j...@nxp.com; dev@dpdk.org; Guo, Jia > <jia....@intel.com>; Zhang, Helin <helin.zh...@intel.com> > Subject: [PATCH v14 7/7] app/testpmd: use hotplug failure handler > > This patch use testpmd for example, to show how an app smoothly handle > failure when device be hot-unplug. Except that app should enabled the device > event monitor and register the hotplug event’s callback, it also need enable > hotplug handle mechanism before running. Once app detect the removal event, > the hot-unplug callback would be called. It will first stop the packet > forwarding, > then stop the port, close the port, and finally detach the port to clean the > device > and release the resources. > > Signed-off-by: Jeff Guo <jia....@intel.com> > Acked-by: Konstantin Ananyev <konstantin.anan...@intel.com>
Acked-by: Bernard Iremonger <bernard.iremon...@intel.com>