aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netback/xenbus.c
diff options
context:
space:
mode:
authorPaul Durrant <Paul.Durrant@citrix.com>2013-10-16 12:50:28 -0400
committerDavid S. Miller <davem@davemloft.net>2013-10-17 15:35:14 -0400
commit146c8a77d27bcbd7722120f70f51e3b287205d0a (patch)
treeb7ce7bf02f0967015366284281e31468a45508cf /drivers/net/xen-netback/xenbus.c
parentc0f4ace79e7e5bec0ff065c4afa3eb3329c9384c (diff)
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.c7
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)
574 if (xenbus_scanf(XBT_NIL, dev->otherend, "feature-no-csum-offload", 574 if (xenbus_scanf(XBT_NIL, dev->otherend, "feature-no-csum-offload",
575 "%d", &val) < 0) 575 "%d", &val) < 0)
576 val = 0; 576 val = 0;
577 vif->csum = !val; 577 vif->ip_csum = !val;
578
579 if (xenbus_scanf(XBT_NIL, dev->otherend, "feature-ipv6-csum-offload",
580 "%d", &val) < 0)
581 val = 0;
582 vif->ipv6_csum = !!val;
578 583
579 /* Map the shared frame, irq etc. */ 584 /* Map the shared frame, irq etc. */
580 err = xenvif_connect(vif, tx_ring_ref, rx_ring_ref, 585 err = xenvif_connect(vif, tx_ring_ref, rx_ring_ref,