]> git.proxmox.com Git - mirror_ovs.git/commit - lib/dpif-netdev.c
dpif-netdev: Free packets on TUNNEL_PUSH if should_steal.
authorIlya Maximets <i.maximets@samsung.com>
Thu, 24 May 2018 09:51:21 +0000 (12:51 +0300)
committerIan Stokes <ian.stokes@intel.com>
Fri, 25 May 2018 08:09:50 +0000 (09:09 +0100)
commit47e1b3b625bbfe3b61bf578aed243b56afbf746a
tree0a783751141fc46b833b18c8738a7c69230ccf1d
parent7bbc2e1def616477ce97821de930eca15896b7bc
dpif-netdev: Free packets on TUNNEL_PUSH if should_steal.

Unconditional return may cause packet leak in case of
'should_steal == true'.

Additionally, removed redundant checking for depth level.

CC: Sugesh Chandran <sugesh.chandran@intel.com>
Fixes: 7c12dfc527a5 ("tunneling: Avoid datapath-recirc by
                      combining recirc actions at xlate.")
Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Signed-off-by: Ian Stokess <ian.stokes@intel.com>
lib/dpif-netdev.c