Skip to content

Commit 9c7aa79

Browse files
sunkuamznshijin-aws
authored andcommitted
[v1.22.x] util: Add fabric argument to pingpong test
Signed-off-by: Sai Sunku <[email protected]> (cherry picked from commit 6793260)
1 parent bd99935 commit 9c7aa79

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

util/pingpong.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2002,6 +2002,7 @@ static void pp_pingpong_usage(struct ct_pingpong *ct, char *name, char *desc)
20022002
"destination control port number (client: 47592)");
20032003

20042004
fprintf(stderr, " %-20s %s\n", "-d <domain>", "domain name");
2005+
fprintf(stderr, " %-20s %s\n", "-f <fabric>", "fabric name");
20052006
fprintf(stderr, " %-20s %s\n", "-s <source address>",
20062007
"source address associated with domain name");
20072008
fprintf(stderr, " %-20s %s\n", "-p <provider>",
@@ -2041,6 +2042,11 @@ static void pp_parse_opts(struct ct_pingpong *ct, int op, char *optarg)
20412042
ct->hints->fabric_attr->prov_name = strdup(optarg);
20422043
break;
20432044

2045+
/* Fabric */
2046+
case 'f':
2047+
ct->hints->fabric_attr->name = strdup(optarg);
2048+
break;
2049+
20442050
/* Endpoint */
20452051
case 'e':
20462052
if (!strncasecmp("msg", optarg, 3) && (strlen(optarg) == 3)) {
@@ -2327,7 +2333,7 @@ int main(int argc, char **argv)
23272333

23282334
ofi_osd_init();
23292335

2330-
while ((op = getopt(argc, argv, "hvd:p:e:I:S:s:B:P:cm:6")) != -1) {
2336+
while ((op = getopt(argc, argv, "hvd:p:f:e:I:S:s:B:P:cm:6")) != -1) {
23312337
switch (op) {
23322338
default:
23332339
pp_parse_opts(&ct, op, optarg);

0 commit comments

Comments
 (0)