[ovs-git] Open vSwitch: datapath: adjust skb_gso_segment() for calling in rx path (master)

dev at openvswitch.org dev at openvswitch.org
Wed Feb 6 22:43:19 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  0aa52d88bdf6bc22fed80beb175a6dfe420dfabd (commit)
      from  e8c16d83665f4a4e74e3cc7f736b3802b46f660c (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 0aa52d88bdf6bc22fed80beb175a6dfe420dfabd
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=0aa52d88bdf6bc22fed80beb175a6dfe420dfabd
Author: Cong Wang <amwang at redhat.com>
		
datapath: adjust skb_gso_segment() for calling in rx path
		
skb_gso_segment() is almost always called in tx path,
except for openvswitch. It calls this function when
it receives the packet and tries to queue it to user-space.
In this special case, the ->ip_summed check inside
skb_gso_segment() is no longer true, as ->ip_summed value
has different meanings on rx path.

This patch adjusts skb_gso_segment() so that we can at least
avoid such warnings on checksum.

Cc: Jesse Gross <jesse at nicira.com>
Cc: David S. Miller <davem at davemloft.net>
Signed-off-by: Cong Wang <amwang at redhat.com>
Signed-off-by: David S. Miller <davem at davemloft.net>
[jesse: backport to kernels before 3.9 and add to tunnel.c]
Signed-off-by: Jesse Gross <jesse at nicira.com>


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

Summary of changes:
 datapath/datapath.c                             |    2 +-
 datapath/linux/compat/include/linux/netdevice.h |   13 +++++++++++++
 datapath/tunnel.c                               |    2 +-
 3 files changed, 15 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list