RE: [PATCH V1 net-next 1/1] hyperv: Properly handle checksum offload

2014-04-28 Thread KY Srinivasan
ow...@redhat.com; sta...@kernel.org > Subject: Re: [PATCH V1 net-next 1/1] hyperv: Properly handle checksum > offload > > From: "K. Y. Srinivasan" > Date: Fri, 25 Apr 2014 20:55:23 -0700 > > > @@ -467,6 +467,9 @@ static int netvsc_start_xmit(struct sk_buff *sk

Re: [PATCH V1 net-next 1/1] hyperv: Properly handle checksum offload

2014-04-28 Thread David Miller
From: "K. Y. Srinivasan" Date: Fri, 25 Apr 2014 20:55:23 -0700 > @@ -467,6 +467,9 @@ static int netvsc_start_xmit(struct sk_buff *skb, struct > net_device *net) > if (skb_is_gso(skb)) > goto do_lso; > > + if (skb->ip_summed != CHECKSUM_PARTIAL) > + goto do_s

[PATCH V1 net-next 1/1] hyperv: Properly handle checksum offload

2014-04-25 Thread K. Y. Srinivasan
Do checksum offload only if the client of the driver wants checksum to be offloaded. In this version of the patch, I have addressed comments from Stephen Hemminger and Eric Dumazet . This patch fixes a bug that is exposed in gateway scenarios. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiy