[ovs-git] Open vSwitch: datapath: Check for positive packet length in vport_send(). (master)

dev at openvswitch.org dev at openvswitch.org
Mon May 13 15:49:42 UTC 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  6f7b24e3240178fa6916ef534f127fd252ffdd9b (commit)
      from  b5d57fc87925cb3c029de19d0a94de5ca07ae28e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 6f7b24e3240178fa6916ef534f127fd252ffdd9b
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=6f7b24e3240178fa6916ef534f127fd252ffdd9b
Author: Jesse Gross <jesse at nicira.com>
		
datapath: Check for positive packet length in vport_send().
		
When sending a packet, a positive length indicates success and a
negative length indicates failure. However, the check for success
looked for non-zero values which catches both of these cases. This
can result in incorrect stats and leak memory on failure.

Introduced by commit be7cd27e44258bdb3c4e7dd8fd7389b5db56d55a (datapath:
Unify vport error stats handling.).

CC: Pravin B Shelar <pshelar at nicira.com>
Signed-off-by: Jesse Gross <jesse at nicira.com>
Acked-by: Kyle Mestery <kmestery at cisco.com>


-----------------------------------------------------------------------

Summary of changes:
 datapath/vport.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list