diff options
author | Dotan Barak <dotanb@mellanox.co.il> | 2006-01-23 05:07:09 +0000 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-11-09 11:35:58 -0800 |
commit | ab335fa7bdeafa9c5b70857e33b36118b4a9ce70 (patch) | |
tree | 989669fc14a4920a850f43aaca6911dd7c30bb3f | |
parent | ac4c1e7f7a959d379b422c7b3a6b405aca1b9a78 (diff) | |
download | libibverbs-ab335fa7bdeafa9c5b70857e33b36118b4a9ce70.tar.gz |
List all devices in ibv_devinfo
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>
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | examples/devinfo.c | 6 |
2 files changed, 10 insertions, 1 deletions
@@ -1,3 +1,8 @@ +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, diff --git a/examples/devinfo.c b/examples/devinfo.c index 0e3e020..1e75bf4 100644 --- a/examples/devinfo.c +++ b/examples/devinfo.c @@ -396,7 +396,11 @@ int main(int argc, char *argv[]) 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) |