diff options
author | Roland Dreier <rolandd@cisco.com> | 2007-04-06 07:44:39 -0700 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-04-09 00:24:32 -0700 |
commit | f6f80705251ab1a0156768a426eeaa064064913a (patch) | |
tree | 7bec21c29767d1788b0c559d7895b03c8454e5d8 | |
parent | f113e75412fb77295ed5806215fb7b1f6a873d89 (diff) | |
download | libibverbs-f6f80705251ab1a0156768a426eeaa064064913a.tar.gz |
Fix ibv_srq_pingpong option handling
Add missing break statement in command line option handling switch.
Without the break statement, setting the 'm' (mtu) command line option
fell through to the next case and the same value was used for the 'q'
(num-qp) option.
Signed-off-by: Roland Dreier <rolandd@cisco.com>
(cherry picked from commit 09335ff6377acf90d5ed1c28a6ce69d2aa620e09)
-rw-r--r-- | examples/srq_pingpong.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/srq_pingpong.c b/examples/srq_pingpong.c index 30dad47..0ad422d 100644 --- a/examples/srq_pingpong.c +++ b/examples/srq_pingpong.c @@ -575,6 +575,7 @@ int main(int argc, char *argv[]) usage(argv[0]); return 1; } + break; case 'q': num_qp = strtol(optarg, NULL, 0); |