| 500 | } |
| 501 | |
| 502 | static void usage(const char *filepath) |
| 503 | { |
| 504 | printf("Usage:\t%s <protocol> <ip-version> -D<addr> [options]\n", filepath); |
| 505 | printf("\t%s <protocol> <ip-version> -R [options]\n\n", filepath); |
| 506 | |
| 507 | printf(" -4\t\tUse IPv4\n"); |
| 508 | printf(" -6\t\tUse IPv4\n"); |
| 509 | printf(" -D <address>\tDestination address\n"); |
| 510 | printf(" -p <port>\tServer port to listen on/connect to\n"); |
| 511 | printf(" -s <size>\tBytes per request\n"); |
| 512 | printf(" -n <nr>\tNumber of parallel requests\n"); |
| 513 | printf(" -z <mode>\tZerocopy mode, 0 to disable, enabled otherwise\n"); |
| 514 | printf(" -b <mode>\tUse registered buffers\n"); |
| 515 | printf(" -l <mode>\tUse huge pages\n"); |
| 516 | printf(" -d\t\tUse defer taskrun\n"); |
| 517 | printf(" -C <cpu>\tPin to the specified CPU\n"); |
| 518 | printf(" -T <nr>\tNumber of threads to use for sending\n"); |
| 519 | printf(" -R\t\tPlay the server role\n"); |
| 520 | printf(" -t <seconds>\tTime in seconds\n"); |
| 521 | } |
| 522 | |
| 523 | static void parse_opts(int argc, char **argv) |
| 524 | { |