[V2] tests/distributor: remove dpdk modification

Message ID 20220331124320.4774-1-songx.jiale@intel.com (mailing list archive)
State Accepted
Headers
Series [V2] tests/distributor: remove dpdk modification |

Checks

Context Check Description
ci/Intel-dts-doc-test success Testing OK
ci/Intel-dts-suite-test fail Testing issues

Commit Message

Jiale, SongX March 31, 2022, 12:43 p.m. UTC
  According to dpdk commit e7f6d1289bc2 ("examples/distributor: reduce Tx queue number to 1").
remove the modification of dpdk code.

Signed-off-by: Jiale Song <songx.jiale@intel.com>
---
 test_plans/distributor_test_plan.rst | 4 ----
 tests/TestSuite_distributor.py       | 9 ---------
 2 files changed, 13 deletions(-)
  

Comments

Huang, ZhiminX March 31, 2022, 5:19 a.m. UTC | #1
> -----Original Message-----
> From: Jiale Song <songx.jiale@intel.com>
> Sent: Thursday, March 31, 2022 8:43 PM
> To: dts@dpdk.org
> Cc: Jiale, SongX <songx.jiale@intel.com>
> Subject: [dts] [PATCH V2] tests/distributor: remove dpdk modification
> 
Tested-by: Zhimin Huang <zhiminx.huang@intel.com >
  
Tu, Lijuan March 31, 2022, 6:36 a.m. UTC | #2
On Thu, 31 Mar 2022 12:43:20 +0000, Jiale Song <songx.jiale@intel.com> wrote:
> According to dpdk commit e7f6d1289bc2 ("examples/distributor: reduce Tx queue number to 1").
> remove the modification of dpdk code.
> 
> Signed-off-by: Jiale Song <songx.jiale@intel.com>


Applied, thanks
  

Patch

diff --git a/test_plans/distributor_test_plan.rst b/test_plans/distributor_test_plan.rst
index 1e99a037..7a1f96bf 100644
--- a/test_plans/distributor_test_plan.rst
+++ b/test_plans/distributor_test_plan.rst
@@ -71,10 +71,6 @@  Verify burst distributor API cost much less cycles then normal version
 
 Test case: Distribute with maximum workers
 ==========================================
-In order to make more queue as worker, let a core receive and a core send::
-
-           sed -i -e 's/.*txRings = .*/\\tconst uint16_t rxRings = 1, txRings = 1;/' ./examples/distributor/main.c
-
 Start distributor sample with 63(0xeffffffffffffffff0) workers
 
 Send several packets with ip address increasing
diff --git a/tests/TestSuite_distributor.py b/tests/TestSuite_distributor.py
index c945fb32..24dd6d5e 100644
--- a/tests/TestSuite_distributor.py
+++ b/tests/TestSuite_distributor.py
@@ -45,11 +45,6 @@  class TestDistributor(TestCase):
         """
         Run at the start of each test suite.
         """
-        # reduce tx queues for enable many workers
-        self.dut.send_expect(
-            "sed -i -e 's/.*txRings = .*/\\tconst uint16_t rxRings = 1, txRings = 1;/' ./examples/distributor/main.c",
-            "#",
-        )
         out = self.dut.build_dpdk_apps("./examples/distributor")
         self.verify("Error" not in out, "Compilation error")
         self.verify("No such" not in out, "Compilation error")
@@ -301,8 +296,4 @@  class TestDistributor(TestCase):
         """
         Run after each test suite.
         """
-        self.dut.send_expect(
-            "sed -i -e 's/.*txRings = .*/\\tconst uint16_t rxRings = 1, txRings = rte_lcore_count() - 1;/' ./examples/distributor/main.c",
-            "#",
-        )
         pass