diff mbox series

[V1,4/8] test_plans/vlan_ethertype_config: modify script and test plan to support i40e fimware > 8.3

Message ID 20221007115333.29277-4-weiyuanx.li@intel.com (mailing list archive)
State Superseded
Headers show
Series [V1,1/8] test_plans/dual_vlan: modify script and test plan to support i40e fimware > 8.3 | expand

Commit Message

Weiyuan Li Oct. 7, 2022, 11:53 a.m. UTC
Modify script and test plan to i40e support fimware > 8.3.
When the fimrware > 8.3, if the filter is to take effect need to enable
extend.

Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>
---
 .../vlan_ethertype_config_test_plan.rst       | 28 ++++++++++++-------
 1 file changed, 18 insertions(+), 10 deletions(-)
diff mbox series

Patch

diff --git a/test_plans/vlan_ethertype_config_test_plan.rst b/test_plans/vlan_ethertype_config_test_plan.rst
index 80a6ee28..baf65208 100644
--- a/test_plans/vlan_ethertype_config_test_plan.rst
+++ b/test_plans/vlan_ethertype_config_test_plan.rst
@@ -52,18 +52,22 @@  Test Case 2: test VLAN filtering on/off
       testpmd> vlan set filter on 0
       testpmd> start
 
-2. Send 1 packet with VLAN TPID 0xA100 and VLAN Tag 16 on port ``A``,
+2. if driver i40e enable extend::
+
+      testpmd> vlan set extend on 0
+
+3. Send 1 packet with VLAN TPID 0xA100 and VLAN Tag 16 on port ``A``,
    Verify that the VLAN packet cannot be received in port ``B``.
 
-3. Disable vlan filtering on port ``0``::
+4. Disable vlan filtering on port ``0``::
 
       testpmd> vlan set filter off 0
 
-4. Change VLAN TPIDs to 0xA100 on port ``0``::
+5. Change VLAN TPIDs to 0xA100 on port ``0``::
 
       testpmd> vlan set outer tpid 0xA100 0
 
-5. Send 1 packet with VLAN TPID 0xA100 and VLAN Tag 16 on port ``A``,
+6. Send 1 packet with VLAN TPID 0xA100 and VLAN Tag 16 on port ``A``,
    Verify that the VLAN packet can be received in port ``B`` and TPID is 0xA100
 
 Test Case 3: test adding VLAN Tag Identifier with changing VLAN TPID
@@ -77,25 +81,29 @@  Test Case 3: test adding VLAN Tag Identifier with changing VLAN TPID
       testpmd> vlan set strip off 0
       testpmd> start
 
-2. Add a VLAN Tag Identifier ``16`` on port ``0``::
+2. if driver i40e enable extend::
+
+      testpmd> vlan set extend on 0
+
+3. Add a VLAN Tag Identifier ``16`` on port ``0``::
 
       testpmd> rx_vlan add 16 0
 
-3. Send 1 packet with the VLAN Tag 16 on port ``A``,
+4. Send 1 packet with the VLAN Tag 16 on port ``A``,
    Verify that the VLAN packet can be received in port ``B`` and TPID is 0x8100
 
-4. Change VLAN TPID to 0xA100 on port ``0``::
+5. Change VLAN TPID to 0xA100 on port ``0``::
 
       testpmd> vlan set outer tpid 0xA100 0
 
-5. Send 1 packet with VLAN TPID 0xA100 and VLAN Tag 16 on port ``A``,
+6. Send 1 packet with VLAN TPID 0xA100 and VLAN Tag 16 on port ``A``,
    Verify that the VLAN packet can be received in port ``B`` and TPID is 0xA100
 
-6. Remove the VLAN Tag Identifier ``16`` on port ``0``::
+7. Remove the VLAN Tag Identifier ``16`` on port ``0``::
 
       testpmd> rx_vlan rm 16 0
 
-7. Send 1 packet with VLAN TPID 0xA100 and VLAN Tag 16 on port ``A``,
+8. Send 1 packet with VLAN TPID 0xA100 and VLAN Tag 16 on port ``A``,
    Verify that the VLAN packet cannot be received in port ``B``.
 
 Test Case 4: test VLAN header stripping with changing VLAN TPID