perf: Add parameter to set IOVA mode
SPDK app framework supports a CLI parameter to specify IOVA mode, add support for this to perf Change-Id: Id72755d02c63c443ae3bced1823fc547d9e4b050 Signed-off-by: Alexey Marchuk <alexeymar@mellanox.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7372 Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: <dongx.yi@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
a7fefe05a5
commit
a3080090b0
@ -1751,6 +1751,7 @@ static void usage(char *program_name)
|
|||||||
#else
|
#else
|
||||||
printf("\t[-G, --enable-debug enable debug logging (flag disabled, must reconfigure with --enable-debug)\n");
|
printf("\t[-G, --enable-debug enable debug logging (flag disabled, must reconfigure with --enable-debug)\n");
|
||||||
printf("\t[--transport-stats dump transport statistics]\n");
|
printf("\t[--transport-stats dump transport statistics]\n");
|
||||||
|
printf("\t[--iova-mode <mode> specify DPDK IOVA mode: va|pa]\n");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2241,6 +2242,8 @@ static const struct option g_perf_cmdline_opts[] = {
|
|||||||
{"enable-zcopy", required_argument, NULL, PERF_ENABLE_ZCOPY},
|
{"enable-zcopy", required_argument, NULL, PERF_ENABLE_ZCOPY},
|
||||||
#define PERF_TRANSPORT_STATISTICS 257
|
#define PERF_TRANSPORT_STATISTICS 257
|
||||||
{"transport-stats", no_argument, NULL, PERF_TRANSPORT_STATISTICS},
|
{"transport-stats", no_argument, NULL, PERF_TRANSPORT_STATISTICS},
|
||||||
|
#define PERF_IOVA_MODE 258
|
||||||
|
{"iova-mode", required_argument, NULL, PERF_IOVA_MODE},
|
||||||
/* Should be the last element */
|
/* Should be the last element */
|
||||||
{0, 0, 0, 0}
|
{0, 0, 0, 0}
|
||||||
};
|
};
|
||||||
@ -2424,6 +2427,9 @@ parse_args(int argc, char **argv, struct spdk_env_opts *env_opts)
|
|||||||
case PERF_TRANSPORT_STATISTICS:
|
case PERF_TRANSPORT_STATISTICS:
|
||||||
g_dump_transport_stats = true;
|
g_dump_transport_stats = true;
|
||||||
break;
|
break;
|
||||||
|
case PERF_IOVA_MODE:
|
||||||
|
env_opts->iova_mode = optarg;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
usage(argv[0]);
|
usage(argv[0]);
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user