diff options
author | Roland Dreier <rolandd@cisco.com> | 2005-08-09 19:44:51 +0000 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-11-09 11:35:57 -0800 |
commit | 71a6045d8993519440eca1239632d64286d999b8 (patch) | |
tree | 8002d1d4a47574d776c03e69f27b69fd44619b34 | |
parent | f099161445560b1310312321a1ee749e8a52b507 (diff) | |
download | libibverbs-71a6045d8993519440eca1239632d64286d999b8.tar.gz |
Make --rx-depth work in pingpong examples
Fix option handling in pinpgong examples so that --rx-depth long
option actually works.
Signed-off-by: Roland Dreier <rolandd@cisco.com>
-rw-r--r-- | examples/rc_pingpong.c | 13 | ||||
-rw-r--r-- | examples/uc_pingpong.c | 13 | ||||
-rw-r--r-- | examples/ud_pingpong.c | 13 |
3 files changed, 21 insertions, 18 deletions
diff --git a/examples/rc_pingpong.c b/examples/rc_pingpong.c index 85b4a4a..7e20917 100644 --- a/examples/rc_pingpong.c +++ b/examples/rc_pingpong.c @@ -457,12 +457,13 @@ int main(int argc, char *argv[]) int c; static struct option long_options[] = { - { .name = "port", .has_arg = 1, .val = 'p' }, - { .name = "ib-dev", .has_arg = 1, .val = 'd' }, - { .name = "ib-port", .has_arg = 1, .val = 'i' }, - { .name = "size", .has_arg = 1, .val = 's' }, - { .name = "iters", .has_arg = 1, .val = 'n' }, - { .name = "events", .has_arg = 0, .val = 'e' }, + { .name = "port", .has_arg = 1, .val = 'p' }, + { .name = "ib-dev", .has_arg = 1, .val = 'd' }, + { .name = "ib-port", .has_arg = 1, .val = 'i' }, + { .name = "size", .has_arg = 1, .val = 's' }, + { .name = "rx-depth", .has_arg = 1, .val = 'r' }, + { .name = "iters", .has_arg = 1, .val = 'n' }, + { .name = "events", .has_arg = 0, .val = 'e' }, { 0 } }; diff --git a/examples/uc_pingpong.c b/examples/uc_pingpong.c index 98617e9..7dcdbc3 100644 --- a/examples/uc_pingpong.c +++ b/examples/uc_pingpong.c @@ -449,12 +449,13 @@ int main(int argc, char *argv[]) int c; static struct option long_options[] = { - { .name = "port", .has_arg = 1, .val = 'p' }, - { .name = "ib-dev", .has_arg = 1, .val = 'd' }, - { .name = "ib-port", .has_arg = 1, .val = 'i' }, - { .name = "size", .has_arg = 1, .val = 's' }, - { .name = "iters", .has_arg = 1, .val = 'n' }, - { .name = "events", .has_arg = 0, .val = 'e' }, + { .name = "port", .has_arg = 1, .val = 'p' }, + { .name = "ib-dev", .has_arg = 1, .val = 'd' }, + { .name = "ib-port", .has_arg = 1, .val = 'i' }, + { .name = "size", .has_arg = 1, .val = 's' }, + { .name = "rx-depth", .has_arg = 1, .val = 'r' }, + { .name = "iters", .has_arg = 1, .val = 'n' }, + { .name = "events", .has_arg = 0, .val = 'e' }, { 0 } }; diff --git a/examples/ud_pingpong.c b/examples/ud_pingpong.c index 0faf429..e7704e3 100644 --- a/examples/ud_pingpong.c +++ b/examples/ud_pingpong.c @@ -453,12 +453,13 @@ int main(int argc, char *argv[]) int c; static struct option long_options[] = { - { .name = "port", .has_arg = 1, .val = 'p' }, - { .name = "ib-dev", .has_arg = 1, .val = 'd' }, - { .name = "ib-port", .has_arg = 1, .val = 'i' }, - { .name = "size", .has_arg = 1, .val = 's' }, - { .name = "iters", .has_arg = 1, .val = 'n' }, - { .name = "events", .has_arg = 0, .val = 'e' }, + { .name = "port", .has_arg = 1, .val = 'p' }, + { .name = "ib-dev", .has_arg = 1, .val = 'd' }, + { .name = "ib-port", .has_arg = 1, .val = 'i' }, + { .name = "size", .has_arg = 1, .val = 's' }, + { .name = "rx-depth", .has_arg = 1, .val = 'r' }, + { .name = "iters", .has_arg = 1, .val = 'n' }, + { .name = "events", .has_arg = 0, .val = 'e' }, { 0 } }; |