[dpdk-dev] [PATCH v14 7/7] app/testpmd: use hotplug failure handler

Iremonger, Bernard bernard.iremonger at intel.com
Fri Oct 5 14:26:18 CEST 2018



> -----Original Message-----
> From: Guo, Jia
> Sent: Thursday, October 4, 2018 3:46 PM
> To: stephen at networkplumber.org; Richardson, Bruce
> <bruce.richardson at intel.com>; Yigit, Ferruh <ferruh.yigit at intel.com>; Ananyev,
> Konstantin <konstantin.ananyev at intel.com>; gaetan.rivet at 6wind.com; Wu,
> Jingjing <jingjing.wu at intel.com>; thomas at monjalon.net;
> motih at mellanox.com; matan at mellanox.com; Van Haaren, Harry
> <harry.van.haaren at intel.com>; Zhang, Qi Z <qi.z.zhang at intel.com>; He,
> Shaopeng <shaopeng.he at intel.com>; Iremonger, Bernard
> <bernard.iremonger at intel.com>; arybchenko at solarflare.com; Lu, Wenzhuo
> <wenzhuo.lu at intel.com>; Burakov, Anatoly <anatoly.burakov at intel.com>;
> jerin.jacob at caviumnetworks.com
> Cc: jblunck at infradead.org; shreyansh.jain at nxp.com; dev at dpdk.org; Guo, Jia
> <jia.guo at intel.com>; Zhang, Helin <helin.zhang at 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.guo at intel.com>
> Acked-by: Konstantin Ananyev <konstantin.ananyev at intel.com>

Acked-by: Bernard Iremonger <bernard.iremonger at intel.com>



More information about the dev mailing list