test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts][PATCH V2 1/2] test_plans/kernelpf_iavf: optimize script multicast case cancel trust mode
@ 2022-10-31  7:47 Weiyuan Li
  2022-10-31  7:47 ` [dts][PATCH V2 2/2] tests/kernelpf_iavf: " Weiyuan Li
  0 siblings, 1 reply; 3+ messages in thread
From: Weiyuan Li @ 2022-10-31  7:47 UTC (permalink / raw)
  To: dts; +Cc: Weiyuan Li, Lingli Chen

Case vf_multicast modify script disable trust model and use 'mcast_addr' add multicast
address to the testpmd.

Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>
---
Tested-by: Lingli Chen <linglix.chen@intel.com>

v2:
-Modify test plan add steps config multicast address and disable trust
mode.

 test_plans/kernelpf_iavf_test_plan.rst | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/test_plans/kernelpf_iavf_test_plan.rst b/test_plans/kernelpf_iavf_test_plan.rst
index 1b9169c2..c26aebd4 100644
--- a/test_plans/kernelpf_iavf_test_plan.rst
+++ b/test_plans/kernelpf_iavf_test_plan.rst
@@ -163,9 +163,9 @@ Disable kernel trust mode::
 
 Test case: VF multicast
 =======================
-Enable kernel trust mode::
+Disable kernel trust mode::
 
-    ip link set $PF_INTF vf 0 trust on
+    ip link set $PF_INTF vf 0 trust off
 
 Start VF testpmd
 
@@ -184,15 +184,15 @@ Enable multicast mode::
 
     testpmd> set allmulti all on
 
+configure multicast address::
+
+    testpmd> mcast_addr add 0 01:80:C2:00:00:08
+
 Send packet with current VF0's MAC, and check VF can receive the packet.
 
 Send packet with multicast MAC 01:80:C2:00:00:08, and check VF can
 receive the packet.
 
-Disable kernel trust mode::
-
-    ip link set $PF_INTF vf 0 trust off
-
 Test case: VF broadcast
 =======================
 Disable VF promisc mode::
-- 
2.27.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [dts][PATCH V2 2/2] tests/kernelpf_iavf: optimize script multicast case cancel trust mode
  2022-10-31  7:47 [dts][PATCH V2 1/2] test_plans/kernelpf_iavf: optimize script multicast case cancel trust mode Weiyuan Li
@ 2022-10-31  7:47 ` Weiyuan Li
  2022-11-18  8:27   ` lijuan.tu
  0 siblings, 1 reply; 3+ messages in thread
From: Weiyuan Li @ 2022-10-31  7:47 UTC (permalink / raw)
  To: dts; +Cc: Weiyuan Li, Lingli Chen

Case vf_multicast modify script diable trust model and use 'mcast_addr' add multicast
address to the testpmd.

Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>
---
Tested-by: Lingli Chen <linglix.chen@intel.com>

v2:
-Modify test plan add steps config multicast address and disable trust
mode.

 tests/TestSuite_kernelpf_iavf.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_iavf.py
index 73435339..a6e7d240 100644
--- a/tests/TestSuite_kernelpf_iavf.py
+++ b/tests/TestSuite_kernelpf_iavf.py
@@ -334,13 +334,14 @@ class TestKernelpfIavf(TestCase):
         self.send_random_pkt(self.wrong_mac, count=1)
         out = self.vm_dut.get_session_output()
         self.verify(self.wrong_mac in out, "vf receive pkt fail with wrong mac")
+        self.dut.send_expect("ip link set dev %s vf 0 trust off" % self.host_intf, "# ")
 
     def test_vf_multicast(self):
         """
         enable kernel trust mode
         """
         multicast_mac = "01:80:C2:00:00:08"
-        self.dut.send_expect("ip link set dev %s vf 0 trust on" % self.host_intf, "# ")
+        self.dut.send_expect("ip link set dev %s vf 0 trust off" % self.host_intf, "# ")
         self.launch_testpmd(dcf_flag=self.dcf_mode)
         self.vm_testpmd.execute_cmd("set fwd mac")
         self.vm_testpmd.execute_cmd("set promisc all off")
@@ -355,6 +356,7 @@ class TestKernelpfIavf(TestCase):
         self.verify(multicast_mac not in out, "vf receive pkt with multicast mac")
 
         self.vm_testpmd.execute_cmd("set allmulti all on")
+        self.vm_testpmd.execute_cmd(f"mcast_addr add 0 {multicast_mac}")
         self.send_random_pkt(self.vf_mac, count=1)
         out = self.vm_dut.get_session_output()
         self.verify(self.vf_mac in out, "vf receive pkt fail with current mac")
-- 
2.27.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [dts][PATCH V2 2/2] tests/kernelpf_iavf: optimize script multicast case cancel trust mode
  2022-10-31  7:47 ` [dts][PATCH V2 2/2] tests/kernelpf_iavf: " Weiyuan Li
@ 2022-11-18  8:27   ` lijuan.tu
  0 siblings, 0 replies; 3+ messages in thread
From: lijuan.tu @ 2022-11-18  8:27 UTC (permalink / raw)
  To: dts, Weiyuan Li; +Cc: Weiyuan Li, Lingli Chen

On Mon, 31 Oct 2022 15:47:03 +0800, Weiyuan Li <weiyuanx.li@intel.com> wrote:
> Case vf_multicast modify script diable trust model and use 'mcast_addr' add multicast
> address to the testpmd.
> 
> Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>


Series applied, thanks

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-11-18  8:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-31  7:47 [dts][PATCH V2 1/2] test_plans/kernelpf_iavf: optimize script multicast case cancel trust mode Weiyuan Li
2022-10-31  7:47 ` [dts][PATCH V2 2/2] tests/kernelpf_iavf: " Weiyuan Li
2022-11-18  8:27   ` lijuan.tu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).