diff mbox series

tests/l3fwdacl: try to use highest available method

Message ID 20210518153521.11976-1-konstantin.ananyev@intel.com (mailing list archive)
State Accepted
Headers show
Series tests/l3fwdacl: try to use highest available method | expand

Commit Message

Ananyev, Konstantin May 18, 2021, 3:35 p.m. UTC
If DPDK version is GE then 20.11.0, then add " --force-max-simd-bitwidth=0"
EAL parameter for l3fwd-acl invocation.
It will ensure that l3fwd-acl will also use highest avaialble on
that HW ACL classify() method (unless manually ovrwritten by '--alg').

Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
---
 tests/TestSuite_l3fwdacl.py | 3 +++
 1 file changed, 3 insertions(+)

Comments

Tu, Lijuan May 26, 2021, 8:12 a.m. UTC | #1
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Konstantin Ananyev
> Sent: 2021年5月18日 23:35
> To: dts@dpdk.org
> Cc: Ananyev, Konstantin <konstantin.ananyev@intel.com>
> Subject: [dts] [PATCH] tests/l3fwdacl: try to use highest available method
> 
> If DPDK version is GE then 20.11.0, then add " --force-max-simd-bitwidth=0"
> EAL parameter for l3fwd-acl invocation.
> It will ensure that l3fwd-acl will also use highest avaialble on that HW ACL
> classify() method (unless manually ovrwritten by '--alg').
> 
> Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>

Applied, thanks
diff mbox series

Patch

diff --git a/tests/TestSuite_l3fwdacl.py b/tests/TestSuite_l3fwdacl.py
index 7e0ad989..4cc51d40 100644
--- a/tests/TestSuite_l3fwdacl.py
+++ b/tests/TestSuite_l3fwdacl.py
@@ -640,6 +640,9 @@  class TestL3fwdacl(TestCase):
         self.core_mask = utils.create_mask(cores)
         print("Core mask: %s" % self.core_mask)
 
+        if self.dut.dpdk_version >= '20.11.0':
+            self.eal_para += " --force-max-simd-bitwidth=0"
+
         valid_ports = [port for port in ports if self.tester.get_local_port(port) != -1]
         self.verify(
             len(valid_ports) >= 2, "Insufficient active dut_ports for speed testing")