test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/kernelpf_iavf: optimize script
@ 2023-03-08 12:06 Song Jiale
  2023-03-28  0:50 ` lijuan.tu
  0 siblings, 1 reply; 4+ messages in thread
From: Song Jiale @ 2023-03-08 12:06 UTC (permalink / raw)
  To: dts; +Cc: Song Jiale

to be compatible with i40e's mac rules and ensure that vf's mac address remains unchanged, 
reset vf's mac before the test starts.

Signed-off-by: Song Jiale <songx.jiale@intel.com>
---
 tests/TestSuite_kernelpf_iavf.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_iavf.py
index 8780bb54..6b6c573c 100644
--- a/tests/TestSuite_kernelpf_iavf.py
+++ b/tests/TestSuite_kernelpf_iavf.py
@@ -93,6 +93,9 @@ class TestKernelpfIavf(TestCase):
             self.destroy_vm_env()
         elif self.env_done is False:
             self.setup_vm_env()
+        self.dut.send_expect(
+            "ip link set %s vf 0 mac %s" % (self.host_intf, self.vf_mac), "# "
+        )
 
     def setup_vm_env(self, driver="default", set_vf_mac=True):
         """
-- 
2.25.1


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

* [dts] [PATCH V1] tests/kernelpf_iavf: optimize script
  2023-03-08 12:06 [dts] [PATCH V1] tests/kernelpf_iavf: optimize script Song Jiale
@ 2023-03-28  0:50 ` lijuan.tu
  0 siblings, 0 replies; 4+ messages in thread
From: lijuan.tu @ 2023-03-28  0:50 UTC (permalink / raw)
  To: dts, Song Jiale; +Cc: Song Jiale

On Wed,  8 Mar 2023 12:06:44 +0000, Song Jiale <songx.jiale@intel.com> wrote:
> to be compatible with i40e's mac rules and ensure that vf's mac address remains unchanged, 
> reset vf's mac before the test starts.
> 
> Signed-off-by: Song Jiale <songx.jiale@intel.com>


Applied, thanks

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

* [dts] [PATCH V1] tests/kernelpf_iavf: optimize script
  2023-01-19 15:07 Song Jiale
@ 2023-01-29  1:56 ` lijuan.tu
  0 siblings, 0 replies; 4+ messages in thread
From: lijuan.tu @ 2023-01-29  1:56 UTC (permalink / raw)
  To: dts, Song Jiale; +Cc: Song Jiale

On Thu, 19 Jan 2023 15:07:02 +0000, Song Jiale <songx.jiale@intel.com> wrote:
> "iavf_dual_vlan_insert" does not need to test dcf mode, which is the same as
> the case "ice_dcf_dual_vlan/test_dcf_vlan_insert_in_pvid_enable" test.
> 
> Signed-off-by: Song Jiale <songx.jiale@intel.com>


Applied, thanks

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

* [dts] [PATCH V1] tests/kernelpf_iavf: optimize script
@ 2023-01-19 15:07 Song Jiale
  2023-01-29  1:56 ` lijuan.tu
  0 siblings, 1 reply; 4+ messages in thread
From: Song Jiale @ 2023-01-19 15:07 UTC (permalink / raw)
  To: dts; +Cc: Song Jiale

"iavf_dual_vlan_insert" does not need to test dcf mode, which is the same as
the case "ice_dcf_dual_vlan/test_dcf_vlan_insert_in_pvid_enable" test.

Signed-off-by: Song Jiale <songx.jiale@intel.com>
---
 tests/TestSuite_kernelpf_iavf.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_iavf.py
index 9089b511..5e955feb 100644
--- a/tests/TestSuite_kernelpf_iavf.py
+++ b/tests/TestSuite_kernelpf_iavf.py
@@ -1021,6 +1021,7 @@ class TestKernelpfIavf(TestCase):
         """
         Test case: IAVF DUAL VLAN header insertion
         """
+        self.skip_case(not self.dcf_mode, "the case not support this dcf mode")
         out_vlan = 1
         pkt_list = [
             'Ether(dst="%s",type=0x0800)/IP(src="196.222.232.221")/("X"*480)'
-- 
2.25.1


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

end of thread, other threads:[~2023-03-28  0:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-08 12:06 [dts] [PATCH V1] tests/kernelpf_iavf: optimize script Song Jiale
2023-03-28  0:50 ` lijuan.tu
  -- strict thread matches above, loose matches on Subject: below --
2023-01-19 15:07 Song Jiale
2023-01-29  1:56 ` 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).