Make ibv_devinfo list all IB devices by default, rather than the first
device only.
Signed-off-by: Dotan Barak <dotanb@mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
+2006-01-22 Dotan Barak <dotanb@mellanox.co.il>
+
+ * examples/devinfo.c (main): Make ibv_devinfo list all IB devices
+ by default, rather than the first device only.
+
2006-01-20 Roland Dreier <rdreier@cisco.com>
* examples/rc_pingpong.c, examples/uc_pingpong.c,
fprintf(stderr, "No IB devices found\n");
return -1;
}
- ret |= print_hca_cap(*dev_list, ib_port);
+
+ while (*dev_list) {
+ ret |= print_hca_cap(*dev_list, ib_port);
+ ++dev_list;
+ }
}
if (ib_devname)