From: pmikus Date: Tue, 24 Nov 2020 09:02:48 +0000 (+0000) Subject: Add rxq_thr option X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=commitdiff_plain;h=54f150ba1b09c007240fea9b034b7ded4d78be87 Add rxq_thr option Signed-off-by: pmikus Change-Id: I46750f8571d86dc13df95252e8894c4b988efd5c --- diff --git a/resources/libraries/robot/shared/default.robot b/resources/libraries/robot/shared/default.robot index dedbdcd2aa..e44141d8ad 100644 --- a/resources/libraries/robot/shared/default.robot +++ b/resources/libraries/robot/shared/default.robot @@ -224,9 +224,10 @@ | | | ${thr_count_int}= | Run Keyword If | ${smt_used} | | | ... | Evaluate | int(${cpu_count_int}*2) | | | ... | ELSE | Set variable | ${thr_count_int} +| | | ${rxq_ratio} = | Get Variable Value | \${rxq_ratio} | ${2} | | | ${rxq_count_int}= | Run Keyword If | ${rx_queues} | | | ... | Set variable | ${rx_queues} -| | | ... | ELSE | Evaluate | int(${thr_count_int}/2) +| | | ... | ELSE | Evaluate | int(${thr_count_int}/${rxq_ratio}) | | | ${rxq_count_int}= | Run Keyword If | ${rxq_count_int} == 0 | | | ... | Set variable | ${1} | | | ... | ELSE | Set variable | ${rxq_count_int}