[dpdk-dev] [PATCH 1/5] app/testpmd: check not detaching device twice

Iremonger, Bernard bernard.iremonger at intel.com
Wed Oct 24 17:38:51 CEST 2018


> -----Original Message-----
> From: Thomas Monjalon [mailto:thomas at monjalon.net]
> Sent: Wednesday, October 24, 2018 2:41 PM
> To: Iremonger, Bernard <bernard.iremonger at intel.com>; Wu, Jingjing
> <jingjing.wu at intel.com>; Lu, Wenzhuo <wenzhuo.lu at intel.com>
> Cc: dev at dpdk.org; ophirmu at mellanox.com; wisamm at mellanox.com; Yigit,
> Ferruh <ferruh.yigit at intel.com>; arybchenko at solarflare.com
> Subject: [PATCH 1/5] app/testpmd: check not detaching device twice
> 
> The command "port detach" is removing the EAL rte_device of the ethdev port
> specified as parameter.
> The function name and some comments are updated to make clear that we are
> detaching the whole device.
> 
> After detaching, the pointer, which maps a port to its device, is reset. This way,
> it is possible to check whether a port is still associated to a (not removed)
> device.
> 
> Signed-off-by: Thomas Monjalon <thomas at monjalon.net>

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


More information about the dev mailing list