From 09335ff6377acf90d5ed1c28a6ce69d2aa620e09 Mon Sep 17 00:00:00 2001 From: Roland Dreier Date: Fri, 6 Apr 2007 07:44:39 -0700 Subject: [PATCH] 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 --- examples/srq_pingpong.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/srq_pingpong.c b/examples/srq_pingpong.c index cc57365..6de3e95 100644 --- a/examples/srq_pingpong.c +++ b/examples/srq_pingpong.c @@ -625,6 +625,7 @@ int main(int argc, char *argv[]) usage(argv[0]); return 1; } + break; case 'q': num_qp = strtol(optarg, NULL, 0); -- 2.46.0