From 54f150ba1b09c007240fea9b034b7ded4d78be87 Mon Sep 17 00:00:00 2001 From: pmikus Date: Tue, 24 Nov 2020 09:02:48 +0000 Subject: [PATCH] Add rxq_thr option Signed-off-by: pmikus Change-Id: I46750f8571d86dc13df95252e8894c4b988efd5c --- resources/libraries/robot/shared/default.robot | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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} -- 2.16.6