[ovs-dev] [PATCH 2/3] dpif-linux: Log the correct port-PID mapping.
Justin Pettit
jpettit at nicira.com
Sat Jan 5 19:25:56 UTC 2013
When adding a port, the code previously logged the requested port number
(which is generally UINT32_MAX) instead of the assigned port number.
Signed-off-by: Justin Pettit <jpettit at nicira.com>
---
lib/dpif-linux.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/dpif-linux.c b/lib/dpif-linux.c
index d9dd3b2..c75b8cc 100644
--- a/lib/dpif-linux.c
+++ b/lib/dpif-linux.c
@@ -431,7 +431,7 @@ dpif_linux_port_add(struct dpif *dpif_, struct netdev *netdev,
if (!error) {
*port_nop = reply.port_no;
VLOG_DBG("%s: assigning port %"PRIu32" to netlink pid %"PRIu32,
- dpif_name(dpif_), request.port_no, upcall_pid);
+ dpif_name(dpif_), reply.port_no, upcall_pid);
} else if (error == EBUSY && *port_nop != UINT32_MAX) {
VLOG_INFO("%s: requested port %"PRIu32" is in use",
dpif_name(dpif_), *port_nop);
--
1.7.5.4
More information about the dev
mailing list