Skip to contentSkip to conversation

tests/generic_filter: use flow api replace legancy

PATCH David Marchand 2 participants 2 messages May 26, 2021 – May 27, 2021 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 13 lines · Bo Chen

use flow api replace legancy filter command

---
 tests/TestSuite_generic_filter.py | 41 ++++++++++++++++++-------------
 1 file changed, 24 insertions(+), 17 deletions(-)
tests/TestSuite_generic_filter.py +0 -0
index d4ea8926..f3ea9774 100644

tests/TestSuite_generic_filter.py class TestGeneric_filter(TestCase): · line 125

Quoted 7 lines
tests/TestSuite_generic_filter.py +4 -0
@@ -119,6 +119,12 @@ class TestGeneric_filter(TestCase):
         """
         Run before each test case.
         """
+        if self._suite_result.test_case == "test_128_queues":
+            print('will rebuild dpdk')
+            self.dut.send_expect(
+                "sed -i -e 's/#define IXGBE_NONE_MODE_TX_NB_QUEUES 64$/#define IXGBE_NONE_MODE_TX_NB_QUEUES 128/' drivers/net/ixgbe/ixgbe_ethdev.h",

Patching dpdk to pass a test means there is something wrong either in dpdk or in the test.

Signature · 1 line
David Marchand
#2 lore raw

<snip>

Quoted 21 lines · Bo Chen
Quoted 19 lines

use flow api replace legancy filter command

---
 tests/TestSuite_generic_filter.py | 41
++++++++++++++++++-------------
 1 file changed, 24 insertions(+), 17 deletions(-)
tests/TestSuite_generic_filter.py +1 -0
index d4ea8926..f3ea9774 100644
@@ -119,6 +119,12 @@ class TestGeneric_filter(TestCase):
         """
         Run before each test case.
         """
+        if self._suite_result.test_case == "test_128_queues":
Quoted 8 lines

tests/TestSuite_generic_filter.py class TestGeneric_filter(TestCase): · line 127

Quoted 5 lines
tests/TestSuite_generic_filter.py +5 -0
+            print('will rebuild dpdk')
+            self.dut.send_expect(
+                "sed -i -e 's/#define IXGBE_NONE_MODE_TX_NB_QUEUES
+ 64$/#define IXGBE_NONE_MODE_TX_NB_QUEUES 128/'
+ drivers/net/ixgbe/ixgbe_ethdev.h",

Patching dpdk to pass a test means there is something wrong either in dpdk or in the test.

Thanks David for adding me.
We are starting to discuss these issues in the DTS working group.

This looks like a build configuration issue. i.e. meson build system should allow to configure driver specific constants. This is one of the topics that has come up in the meson build system improvements.

Quoted 4 lines

--
David Marchand