[dpdk-dev] [PATCH v2] net/vhost: stop dev in close and address mem leak

2017-04-06 Thread Sagar Abhang
Move the call to stop the device inside the close routine because close needs to stop the device if it isn't stopped. Free the allocated queue buffers in close instead of doing so in remove. Original code had these clean ups in remove which was causing memory leak. Signed-off-by: Sagar A

[dpdk-dev] [PATCH] net/vhost: move device stop call in close function

2017-03-31 Thread Sagar Abhang
ide "eth_dev_close" because the "rte_eth_dev_close" function calls the vhost's "eth_dev_close" function In that case, the memory allocated for the queues is not freed up before we free the pointer of rx and tx queues causing memory leak. Signed-off-by: Sagar Abhang