dpif: Make dpif_port_group_get() work. (It was never tested until now.)
authorBen Pfaff <blp@nicira.com>
Fri, 13 Mar 2009 21:03:54 +0000 (14:03 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 13 Mar 2009 21:03:54 +0000 (14:03 -0700)
lib/dpif.c

index 563149e4fad4d05463c69f54f1c514ab26db8034..0a4c86a280c857a15bfaac41fce359e8bcfc5d96 100644 (file)
@@ -388,7 +388,7 @@ dpif_port_group_get(const struct dpif *dpif, uint16_t group,
     pg.group = group;
     pg.ports = ports;
     pg.n_ports = n_ports;
-    error = IOCTL(dpif, ODP_PORT_GROUP_SET, &pg);
+    error = IOCTL(dpif, ODP_PORT_GROUP_GET, &pg);
     *n_out = error ? 0 : pg.n_ports;
     return error;
 }