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

2016-02-09 Thread Iremonger, Bernard
Hi Wojciech > > -Original Message- > > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Wojciech Zmuda > > Sent: Tuesday, January 5, 2016 2:05 PM > > To: dev at dpdk.org > > Subject: [dpdk-dev] [PATCH] af_packet: make the device detachable > >

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

2016-02-08 Thread Iremonger, Bernard
Hi Wojciech, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Wojciech Zmuda > Sent: Tuesday, January 5, 2016 2:05 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] af_packet: make the device detachable > > Fix memory leak when det

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

2016-01-05 Thread Wojciech Zmuda
Fix memory leak when detaching virtual device. Set dev_flags to RTE_ETH_DEV_DETACHABLE and implement pmd_af_packet_drv.uninit method. Copy device name to ethdev->data to make it compatibile with rte_eth_dev_allocated(). Signed-off-by: Wojciech Zmuda --- drivers/net/af_packet/rte_eth_af_packet.c