datapath: adjust skb_gso_segment() for calling in rx path
authorCong Wang <amwang@redhat.com>
Wed, 6 Feb 2013 22:40:36 +0000 (14:40 -0800)
committerJesse Gross <jesse@nicira.com>
Wed, 6 Feb 2013 22:42:30 +0000 (14:42 -0800)
commit0aa52d88bdf6bc22fed80beb175a6dfe420dfabd
tree8bde139134f6b8ddac674f9303e0689d7d82f9ab
parente8c16d83665f4a4e74e3cc7f736b3802b46f660c
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@nicira.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
[jesse: backport to kernels before 3.9 and add to tunnel.c]
Signed-off-by: Jesse Gross <jesse@nicira.com>
datapath/datapath.c
datapath/linux/compat/include/linux/netdevice.h
datapath/tunnel.c