perftest: support set flow_label list val in GRH with RR method
For different QP, it may need to set different flow_label. Extend the flow_label option to support list val configuration and keep compatibility.
extend https://github.com/linux-rdma/perftest/pull/224
@HassanKhadour FYI
@changchengx, can you please rebase?
@sshaulnv Done
@sshaulnv @HassanKhadour ping
@changchengx thanks for your contribution, the PR is under review
Hi @changchengx , im getting the following errors when trying to compile:
src/perftest_parameters.c: In function ‘parser’:
src/perftest_parameters.c:2958:10: warning: implicit declaration of function ‘parse_flow_label_from_str’; did you mean ‘parse_ethertype_from_str’? [-Wimplicit-function-declaration]
if (parse_flow_label_from_str(user_param, optarg)) {
^~~~~~~~~~~~~~~~~~~~~~~~~
parse_ethertype_from_str
src/perftest_parameters.c: At top level:
src/perftest_parameters.c:3356:12: error: static declaration of ‘parse_flow_label_from_str’ follows non-static declaration
static int parse_flow_label_from_str(struct perftest_parameters *user_param, char *flow_label_str)
^~~~~~~~~~~~~~~~~~~~~~~~~
src/perftest_parameters.c:2958:10: note: previous implicit declaration of ‘parse_flow_label_from_str’ was here
if (parse_flow_label_from_str(user_param, optarg)) {
^~~~~~~~~~~~~~~~~~~~~~~~~
src/perftest_parameters.c:3356:12: warning: ‘parse_flow_label_from_str’ defined but not used [-Wunused-function]
static int parse_flow_label_from_str(struct perftest_parameters *user_param, char *flow_label_str)
^~~~~~~~~~~~~~~~~~~~~~~~~
please fix it, and also update man page.
Thanks
@sshaulnv Thanks for your check. I've updated the commit according to your feedback and requirement. If you still hit some problem, please let me know the build environment: OS version & gcc version
Merged, thanks for your contribution!