[dpdk-dev] [PATCH v4] af_packet: make the device detachable

Iremonger, Bernard bernard.iremonger at intel.com
Thu Mar 3 14:54:50 CET 2016


> -----Original Message-----
> From: Wojciech Zmuda [mailto:woz at semihalf.com]
> Sent: Wednesday, March 2, 2016 11:56 AM
> To: dev at dpdk.org
> Cc: Iremonger, Bernard <bernard.iremonger at intel.com>;
> linville at tuxdriver.com; Richardson, Bruce <bruce.richardson at intel.com>;
> pmatilai at redhat.com
> Subject: [PATCH v4] af_packet: make the device detachable
> 
> Allow dynamic deallocation of af_packet device through proper API
> functions. To achieve this:
> * set device flag to RTE_ETH_DEV_DETACHABLE
> * implement rte_pmd_af_packet_devuninit() and expose it
>   through rte_driver.uninit()
> * copy device name to ethdev->data to make discoverable with
>   rte_eth_dev_allocated()
> Moreover, make af_packet init function static, as there is no reason to keep
> it public.
> 
> Signed-off-by: Wojciech Zmuda <woz at semihalf.com>

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




More information about the dev mailing list