[dpdk-dev] [PATCH] net/af_packet: fix for stale sockets

John W. Linville linville at tuxdriver.com
Fri Aug 23 17:28:46 CEST 2019


On Thu, Aug 22, 2019 at 11:55:36AM +0530, Abhishek Sachan wrote:
> af_packet driver is leaving stale socket after device is removed.
> Ring buffers are memory mapped when device is added using rte_dev_probe.
> There is no corresponding munmap call when device is removed/closed.
> This commit fixes the issue by calling munmap
> from rte_pmd_af_packet_remove().
> 
> Bugzilla ID: 339
> Cc: stable at dpdk.org
> 
> Signed-off-by: Abhishek Sachan <abhishek.sachan at altran.com>
> Reviewed-by: John W. Linville <linville at redhat.com>

Confirmed...

Reviewed-by: John W. Linville <linville at redhat.com>

John
-- 
John W. Linville		Someday the world will need a hero, and you
linville at tuxdriver.com			might be all we have.  Be ready.


More information about the dev mailing list