From: Thomas Graf Date: Fri, 13 Dec 2013 14:22:22 +0000 (+0100) Subject: openvswitch: Compute checksum in skb_gso_segment() if needed X-Git-Tag: v4.0~2533^2~265^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=09c5e6054e206ecf13945f50711856a5cb2d5de1;p=platform%2Fkernel%2Flinux-amlogic.git openvswitch: Compute checksum in skb_gso_segment() if needed The copy & csum optimization is no longer present with zerocopy enabled. Compute the checksum in skb_gso_segment() directly by dropping the HW CSUM capability from the features passed in. Signed-off-by: Thomas Graf Signed-off-by: Jesse Gross --- diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c index 8557834..61ae3b8 100644 --- a/net/openvswitch/datapath.c +++ b/net/openvswitch/datapath.c @@ -311,7 +311,7 @@ static int queue_gso_packets(struct datapath *dp, struct sk_buff *skb, struct sk_buff *segs, *nskb; int err; - segs = __skb_gso_segment(skb, NETIF_F_SG | NETIF_F_HW_CSUM, false); + segs = __skb_gso_segment(skb, NETIF_F_SG, false); if (IS_ERR(segs)) return PTR_ERR(segs);