# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Node ID 6217dbbba0affcb64aeae7803fc1d3cadf231d51
# Parent 5233c4b076b9aa073eff63508461b7bfa597737c
[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@xxxxxxxxxxxxx>
---
linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff -r 5233c4b076b9 -r 6217dbbba0af
linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c
--- a/linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c Wed Aug 16 16:06:32
2006 +0100
+++ b/linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c Wed Aug 16 16:11:12
2006 +0100
@@ -355,7 +355,7 @@ static int connect_rings(struct backend_
{
struct xenbus_device *dev = be->dev;
unsigned long tx_ring_ref, rx_ring_ref;
- unsigned int evtchn, copyall;
+ unsigned int evtchn, rx_copy;
int err;
int val;
@@ -372,17 +372,18 @@ static int connect_rings(struct backend_
return err;
}
- err = xenbus_scanf(XBT_NIL, dev->otherend, "copyall", "%u", ©all);
+ err = xenbus_scanf(XBT_NIL, dev->otherend, "request-rx-copy", "%u",
+ &rx_copy);
if (err == -ENOENT) {
err = 0;
- copyall = 0;
+ rx_copy = 0;
}
if (err < 0) {
- xenbus_dev_fatal(dev, err, "reading %s/copyall",
+ xenbus_dev_fatal(dev, err, "reading %s/request-rx-copy",
dev->otherend);
return err;
}
- be->netif->copying_receiver = !!copyall;
+ be->netif->copying_receiver = !!rx_copy;
if (xenbus_scanf(XBT_NIL, dev->otherend, "feature-rx-notify", "%d",
&val) < 0)
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|