[dpdk-dev] [dpdk-stable] [PATCH] test/eal: do not scan PCI devices for memory tests
david.marchand at redhat.com
Fri Aug 2 13:13:52 CEST 2019
On Thu, Aug 1, 2019 at 2:29 PM David Marchand <david.marchand at redhat.com> wrote:
> On Thu, Aug 1, 2019 at 2:28 PM David Marchand <david.marchand at redhat.com> wrote:
> > The memory tests currently check that, for normal mode (not legacy mode),
> > there is no memory left behind when exiting.
> > The problem is that if a ethdev port is allocated when scanning pci
> > devices (even if the driver probe fails like when you have a virtio
> > management interface attached to the kernel), on exit, dpdk won't free
> > the associated memory since ethdev never frees the ethdev memzone.
> > Workaround this by disabling pci scan.
> Not entirely happy with this patch.
> I am open to suggestions :-)
Note: this problem won't be seen in shared builds as long as the pci
drivers for net devices are not loaded.
More information about the dev