[ovs-git] [openvswitch/ovs] 8d3882: netdev-dpdk: fix memory leak

GitHub noreply at github.com
Thu Aug 4 22:56:13 UTC 2016

  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 8d38823bdf8b3fd4a71c5ab8c709899c9ef27edf
  Author: Mark Kavanagh <mark.b.kavanagh at intel.com>
  Date:   2016-08-04 (Thu, 04 Aug 2016)

  Changed paths:
    M lib/netdev-dpdk.c

  Log Message:
  netdev-dpdk: fix memory leak

DPDK v16.07 introduces the ability to free memzones.
Up until this point, DPDK memory pools created in OVS could
not be destroyed, thus incurring a memory leak.

Leverage the DPDK v16.07 rte_mempool API to free DPDK
mempools when their associated reference count reaches 0 (this
indicates that the memory pool is no longer in use).

Signed-off-by: Mark Kavanagh <mark.b.kavanagh at intel.com>
Signed-off-by: Daniele Di Proietto <diproiettod at vmware.com>

More information about the git mailing list