direct-io.hg
changeset 11413:b219ea61a357
Add support for netif frontends which don't support checksum offload.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
author | ssmith@weybridge.uk.xensource.com |
---|---|
date | Mon Sep 04 16:38:24 2006 +0100 (2006-09-04) |
parents | 5fa9b746d24f |
children | 3d36f020e62a |
files | linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c |
line diff
1.1 --- a/linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c Sat Sep 02 12:11:54 2006 +0100 1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c Mon Sep 04 16:38:24 2006 +0100 1.3 @@ -427,6 +427,14 @@ static int connect_rings(struct backend_ 1.4 be->netif->dev->features |= NETIF_F_TSO; 1.5 } 1.6 1.7 + if (xenbus_scanf(XBT_NIL, dev->otherend, "feature-no-csum-offload", 1.8 + "%d", &val) < 0) 1.9 + val = 0; 1.10 + if (val) { 1.11 + be->netif->features &= ~NETIF_F_IP_CSUM; 1.12 + be->netif->dev->features &= ~NETIF_F_IP_CSUM; 1.13 + } 1.14 + 1.15 /* Map the shared frame, irq etc. */ 1.16 err = netif_map(be->netif, tx_ring_ref, rx_ring_ref, evtchn); 1.17 if (err) {