[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] xen-netfront: prefer xenbus_write() over xenbus_printf() where possible



... as being the simpler variant.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
---
 drivers/net/xen-netfront.c |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

--- 4.7-rc6-prefer-xenbus_write.orig/drivers/net/xen-netfront.c
+++ 4.7-rc6-prefer-xenbus_write/drivers/net/xen-netfront.c
@@ -1886,26 +1886,25 @@ again:
        }
 
        /* The remaining keys are not queue-specific */
-       err = xenbus_printf(xbt, dev->nodename, "request-rx-copy", "%u",
-                           1);
+       err = xenbus_write(xbt, dev->nodename, "request-rx-copy", "1");
        if (err) {
                message = "writing request-rx-copy";
                goto abort_transaction;
        }
 
-       err = xenbus_printf(xbt, dev->nodename, "feature-rx-notify", "%d", 1);
+       err = xenbus_write(xbt, dev->nodename, "feature-rx-notify", "1");
        if (err) {
                message = "writing feature-rx-notify";
                goto abort_transaction;
        }
 
-       err = xenbus_printf(xbt, dev->nodename, "feature-sg", "%d", 1);
+       err = xenbus_write(xbt, dev->nodename, "feature-sg", "1");
        if (err) {
                message = "writing feature-sg";
                goto abort_transaction;
        }
 
-       err = xenbus_printf(xbt, dev->nodename, "feature-gso-tcpv4", "%d", 1);
+       err = xenbus_write(xbt, dev->nodename, "feature-gso-tcpv4", "1");
        if (err) {
                message = "writing feature-gso-tcpv4";
                goto abort_transaction;




_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.