[ovs-git] [openvswitch/ovs] ac8c20: dpif-netdev: Fix (packet) memory leaks in the slow...

GitHub noreply at github.com
Fri Sep 19 23:50:24 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: ac8c20812b88c4aae7a002420f54d1333e27f784
      https://github.com/openvswitch/ovs/commit/ac8c20812b88c4aae7a002420f54d1333e27f784
  Author: Daniele Di Proietto <ddiproietto at vmware.com>
  Date:   2014-09-19 (Fri, 19 Sep 2014)

  Changed paths:
    M lib/dpif-netdev.c

  Log Message:
  -----------
  dpif-netdev: Fix (packet) memory leaks in the slow path.

If a packet didn't match a rule in the fast path classifier its memory was
never freed. The issue was particularly clear with DPDK devices because it was
not possible to process more than ~250000 DPDK mbufs in the slow path.

This commit fixes the problem by:
* calling dpif_packet_delete() if the upcalls are disabled
* passing may_steal==true to dp_netdev_execute_actions() during normal upcall
  processing

Signed-off-by: Daniele Di Proietto <ddiproietto at vmware.com>
Acked-by: Alex Wang <alexw at nicira.com>
Acked-by: Pravin B Shelar <pshelar at nicira.com>




More information about the git mailing list