[V2] tests/ice_dcf_date_path: turn off promisc mode

Message ID 20220525112143.106983-1-songx.jiale@intel.com (mailing list archive)
State Accepted
Headers
Series [V2] tests/ice_dcf_date_path: turn off promisc mode |

Checks

Context Check Description
ci/Intel-dts-format-test success Testing OK
ci/Intel-dts-pylama-test success Testing OK
ci/Intel-dts-doc-test success Testing OK
ci/Intel-dts-suite-test success Testing OK

Commit Message

Jiale, SongX May 25, 2022, 11:21 a.m. UTC
  DCF already supports promise mode, and it is started by default.
promisc should be turned off during the test.

According to dpdk commit cdfbcfa110a ("net/ice: support DCF promiscuous configuration")

Signed-off-by: Jiale Song <songx.jiale@intel.com>
---
 test_plans/ice_dcf_date_path_test_plan.rst | 1 +
 tests/TestSuite_ice_dcf_date_path.py       | 1 +
 2 files changed, 2 insertions(+)
  

Comments

Tu, Lijuan May 28, 2022, 9:09 a.m. UTC | #1
On Wed, 25 May 2022 19:21:43 +0800, Jiale Song <songx.jiale@intel.com> wrote:
> DCF already supports promise mode, and it is started by default.
> promisc should be turned off during the test.
> 
> According to dpdk commit cdfbcfa110a ("net/ice: support DCF promiscuous configuration")
> 
> Signed-off-by: Jiale Song <songx.jiale@intel.com>


Applied, thanks
  
Tu, Lijuan June 15, 2022, 9:20 a.m. UTC | #2
On Wed, 25 May 2022 19:21:43 +0800, Jiale Song <songx.jiale@intel.com> wrote:
> DCF already supports promise mode, and it is started by default.
> promisc should be turned off during the test.
> 
> According to dpdk commit cdfbcfa110a ("net/ice: support DCF promiscuous configuration")
> 
> Signed-off-by: Jiale Song <songx.jiale@intel.com>


Applied, thanks
  

Patch

diff --git a/test_plans/ice_dcf_date_path_test_plan.rst b/test_plans/ice_dcf_date_path_test_plan.rst
index c6f8014b..1a0df884 100644
--- a/test_plans/ice_dcf_date_path_test_plan.rst
+++ b/test_plans/ice_dcf_date_path_test_plan.rst
@@ -171,6 +171,7 @@  Execute **common steps** to prepare DCF test environment
 Set rxonly forward mode ::
 
     set fwd rxonly
+    set promisc all off
     set verbose 1
     start
 
diff --git a/tests/TestSuite_ice_dcf_date_path.py b/tests/TestSuite_ice_dcf_date_path.py
index aad27f5b..21a0c875 100644
--- a/tests/TestSuite_ice_dcf_date_path.py
+++ b/tests/TestSuite_ice_dcf_date_path.py
@@ -283,6 +283,7 @@  class DcfDatePathTest(TestCase):
         )
 
         self.pmd_output.execute_cmd("set fwd rxonly")
+        self.pmd_output.execute_cmd("set promisc all off")
         self.pmd_output.execute_cmd("set verbose 1")
         self.pmd_output.execute_cmd("start")
         out = self.send_pkts_getouput(pkt, self.tester_intf0, status=True)