]> git.baikalelectronics.ru Git - kernel.git/commit
net: adjust skb_gso_segment() for calling in rx path
authorCong Wang <amwang@redhat.com>
Tue, 5 Feb 2013 16:36:38 +0000 (16:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Feb 2013 20:58:00 +0000 (15:58 -0500)
commite26a24a17a449c70a6a182b07f1a9dd4b8c5ed3e
tree132aecb3e4a78707552a0ddf4d4618734af47efa
parent39b39f1170ae463d90113f7693cb892e2a6a1b13
net: 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>
include/linux/netdevice.h
net/core/dev.c
net/openvswitch/datapath.c