Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6dd40e0

Browse files
matthewr-xilinxsianj-xilinx
authored andcommitted
ON-16799: reinstate -p option for efsend
1 parent 42751cc commit 6dd40e0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎src/tests/ef_vi/efsend.c‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ void usage(void)
280280

281281
fprintf(stderr, " -n - number of packets to send (negative = unlimited)\n");
282282
fprintf(stderr, " -b - enable loopback on the VI\n");
283+
fprintf(stderr, " -p - enable physical address mode\n");
283284
fprintf(stderr, " -t - disable tx push (on by default)\n");
284285
fprintf(stderr, " -B - maximum send batch size\n");
285286
fprintf(stderr, " -s - microseconds to sleep between batches\n");
@@ -299,7 +300,7 @@ static int parse_opts(int argc, char *argv[], enum ef_pd_flags *pd_flags_out,
299300
{
300301
int c;
301302

302-
while((c = getopt(argc, argv, "n:m:s:B:l:V:btvxc")) != -1)
303+
while((c = getopt(argc, argv, "n:m:s:B:l:V:bptvxc")) != -1)
303304
switch( c ) {
304305
case 'n':
305306
cfg_iter = (uint64_t)atoll(optarg);
@@ -322,6 +323,9 @@ static int parse_opts(int argc, char *argv[], enum ef_pd_flags *pd_flags_out,
322323
case 'b':
323324
cfg_loopback = 1;
324325
break;
326+
case 'p':
327+
*pd_flags_out |= EF_PD_PHYS_MODE;
328+
break;
325329
case 't':
326330
cfg_disable_tx_push = 1;
327331
break;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /