hyperv: Properly handle checksum offload
authorKY Srinivasan <kys@microsoft.com>
Wed, 30 Apr 2014 18:58:25 +0000 (11:58 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Apr 2014 20:12:23 +0000 (16:12 -0400)
commit22041fb05b66387b2854f789d1e1f55c7d07b4f4
treed3ef29c7b3ff28c316691e4fcc2885eca9b50b49
parent6ce29b0e2a04ea85617cd21099af67449a76f589
hyperv: Properly handle checksum offload

Do checksum offload only if the client of the driver wants checksum to be
offloaded.

In V1 version of this patch, I  addressed comments from
Stephen Hemminger <stephen@networkplumber.org> and
Eric Dumazet <eric.dumazet@gmail.com>.

In this version of the patch I have addressed comments from
David Miller.

This patch fixes a bug that is exposed in gateway scenarios.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c