ia64/xen-unstable

changeset 11167:6217dbbba0af

[NET] back: Change 'copyall' xenstore node to 'request-rx-copy', which
is slightly more informative and mirrors the 'feature-rx-copy' name
which communicates the feature in the other direction (back->front).
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Wed Aug 16 16:11:12 2006 +0100 (2006-08-16)
parents 5233c4b076b9
children d4efff1beedb
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	Wed Aug 16 16:06:32 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c	Wed Aug 16 16:11:12 2006 +0100
     1.3 @@ -355,7 +355,7 @@ static int connect_rings(struct backend_
     1.4  {
     1.5  	struct xenbus_device *dev = be->dev;
     1.6  	unsigned long tx_ring_ref, rx_ring_ref;
     1.7 -	unsigned int evtchn, copyall;
     1.8 +	unsigned int evtchn, rx_copy;
     1.9  	int err;
    1.10  	int val;
    1.11  
    1.12 @@ -372,17 +372,18 @@ static int connect_rings(struct backend_
    1.13  		return err;
    1.14  	}
    1.15  
    1.16 -	err = xenbus_scanf(XBT_NIL, dev->otherend, "copyall", "%u", &copyall);
    1.17 +	err = xenbus_scanf(XBT_NIL, dev->otherend, "request-rx-copy", "%u",
    1.18 +			   &rx_copy);
    1.19  	if (err == -ENOENT) {
    1.20  		err = 0;
    1.21 -		copyall = 0;
    1.22 +		rx_copy = 0;
    1.23  	}
    1.24  	if (err < 0) {
    1.25 -		xenbus_dev_fatal(dev, err, "reading %s/copyall",
    1.26 +		xenbus_dev_fatal(dev, err, "reading %s/request-rx-copy",
    1.27  				 dev->otherend);
    1.28  		return err;
    1.29  	}
    1.30 -	be->netif->copying_receiver = !!copyall;
    1.31 +	be->netif->copying_receiver = !!rx_copy;
    1.32  
    1.33  	if (xenbus_scanf(XBT_NIL, dev->otherend, "feature-rx-notify", "%d",
    1.34  			 &val) < 0)