diff options
author | Paul Durrant <Paul.Durrant@citrix.com> | 2013-10-16 18:50:28 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-17 21:35:14 +0200 |
commit | 146c8a77d27bcbd7722120f70f51e3b287205d0a (patch) | |
tree | b7ce7bf02f0967015366284281e31468a45508cf /drivers/net/xen-netback/xenbus.c | |
parent | Merge branch 'bonding_rcu' (diff) | |
download | linux-146c8a77d27bcbd7722120f70f51e3b287205d0a.tar.xz linux-146c8a77d27bcbd7722120f70f51e3b287205d0a.zip |
xen-netback: add support for IPv6 checksum offload to guest
Check xenstore flag feature-ipv6-csum-offload to determine if a
guest is happy to accept IPv6 packets with only partial checksum.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
Cc: David Vrabel <david.vrabel@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/xen-netback/xenbus.c')
-rw-r--r-- | drivers/net/xen-netback/xenbus.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/xen-netback/xenbus.c b/drivers/net/xen-netback/xenbus.c index 1b08d8798372..ad27b15242cd 100644 --- a/drivers/net/xen-netback/xenbus.c +++ b/drivers/net/xen-netback/xenbus.c @@ -574,7 +574,12 @@ static int connect_rings(struct backend_info *be) if (xenbus_scanf(XBT_NIL, dev->otherend, "feature-no-csum-offload", "%d", &val) < 0) val = 0; - vif->csum = !val; + vif->ip_csum = !val; + + if (xenbus_scanf(XBT_NIL, dev->otherend, "feature-ipv6-csum-offload", + "%d", &val) < 0) + val = 0; + vif->ipv6_csum = !!val; /* Map the shared frame, irq etc. */ err = xenvif_connect(vif, tx_ring_ref, rx_ring_ref, |