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

2017-04-12 Thread Yuanhan Liu
On Thu, Apr 06, 2017 at 05:26:37PM -0700, Sagar Abhang wrote: > 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 i

[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 Abhang --