[ovs-git] [openvswitch/ovs] 02c0dd: netdev-dpdk: fix mbuf leaks

GitHub noreply at github.com
Fri Mar 11 00:58:12 UTC 2016


  Branch: refs/heads/branch-2.4
  Home:   https://github.com/openvswitch/ovs
  Commit: 02c0dda871bb2a2d42d4b1f9826489b823a590f9
      https://github.com/openvswitch/ovs/commit/02c0dda871bb2a2d42d4b1f9826489b823a590f9
  Author: Yuanhan Liu <yuanhan.liu at linux.intel.com>
  Date:   2016-03-10 (Thu, 10 Mar 2016)

  Changed paths:
    M AUTHORS
    M lib/netdev-dpdk.c

  Log Message:
  -----------
  netdev-dpdk: fix mbuf leaks

mbufs could be chained (by the "next" field of rte_mbuf struct), when
an mbuf is not big enough to hold a big packet, say when TSO is enabled.

rte_pktmbuf_free_seg() frees the head mbuf only, leading mbuf leaks.
This patch fix it by invoking the right API rte_pktmbuf_free(), to
free all mbufs in the chain.

Signed-off-by: Yuanhan Liu <yuanhan.liu at linux.intel.com>
Signed-off-by: Daniele Di Proietto <diproiettod at vmware.com>




More information about the git mailing list