Acked-by: Sorin Vinturis <sorin.vintu...@cloudbasesolutions.com>

-----Original Message-----
From: dev [mailto:dev-boun...@openvswitch.org] On Behalf Of Nithin Raju
Sent: Tuesday, October 7, 2014 4:53 AM
To: dev@openvswitch.org
Subject: [ovs-dev] [PATCH] lib/netlink-socket.c: always pass the output buffer 
in a transaction

We need to pass down the output buffer so that the kernel can return 
transaction status - error or otherwise.

Signed-off-by: Nithin Raju <nit...@vmware.com>
---
 lib/netlink-socket.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/lib/netlink-socket.c b/lib/netlink-socket.c index 1aa76ae..a51e6d1 
100644
--- a/lib/netlink-socket.c
+++ b/lib/netlink-socket.c
@@ -767,8 +767,7 @@ nl_sock_transact_multiple__(struct nl_sock *sock,
         if (!DeviceIoControl(sock->handle, OVS_IOCTL_TRANSACT,
                              ofpbuf_data(txn->request),
                              ofpbuf_size(txn->request),
-                             txn->reply ? tail : 0,
-                             txn->reply ? sizeof tail : 0,
+                             tail, sizeof tail,
                              &reply_len, NULL)) {
             /* XXX: Map to a more appropriate error. */
             error = EINVAL;
--
1.7.4.1

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to