From: Weiyuan Li <weiyuanx.li@intel.com>
To: dts@dpdk.org
Cc: Weiyuan Li <weiyuanx.li@intel.com>, Song Jiale <songx.jiale@intel.com>
Subject: [dts][PATCH V5 1/8] test_plans/dual_vlan: modify script and test plan to support i40e fimware >= 8.4
Date: Tue, 22 Nov 2022 16:21:59 +0800 [thread overview]
Message-ID: <20221122082206.12559-1-weiyuanx.li@intel.com> (raw)
Modify script and test plan to i40e support fimware >= 8.4.
When the fimrware >= 8.4, if the filter is to take effect need to enable
extend.
Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>
---
Tested-by: Song Jiale <songx.jiale@intel.com>
v2:
-use the firmware version to judge whether to add command `extend on`.
v3:
-modify description.
v4:
-modify comments.
-dual_vlan test plan modify table and add header.
v5:
-fix some typos.
test_plans/dual_vlan_test_plan.rst | 83 ++++++++++++++++++++++++++++--
1 file changed, 79 insertions(+), 4 deletions(-)
diff --git a/test_plans/dual_vlan_test_plan.rst b/test_plans/dual_vlan_test_plan.rst
index fab18515..0114a80d 100644
--- a/test_plans/dual_vlan_test_plan.rst
+++ b/test_plans/dual_vlan_test_plan.rst
@@ -35,6 +35,11 @@ The -n command is used to select the number of memory channels. It should match
Test Case: Enable/Disable VLAN packets filtering
================================================
+Due to the kernel enables Qinq and cannot be closed, the DPDK only add `extend on` to make the VLAN filter
+work normally. Therefore, if the i40e firmware version >= 8.4 the DPDK can only add `extend on` to make the VLAN filter work normally::
+
+ testpmd> vlan set extend on 0
+
Setup the ``mac`` forwarding mode::
testpmd> set fwd mac
@@ -61,9 +66,7 @@ Check whether the mode is set successful::
Allmulticast mode: disabled
Maximum number of MAC addresses: 127
VLAN offload:
- strip off
- filter on
- qinq(extend) off
+ strip off, filter on, extend on, qinq strip off
start forwarding packets::
@@ -112,6 +115,11 @@ Disable VLAN packet extend and strip port ``0``::
testpmd> vlan set extend off 0
testpmd> vlan set strip off 0
+Due to the kernel enables Qinq and cannot be closed, the DPDK only add `extend on` to make the VLAN filter
+work normally. Therefore, if the i40e firmware version >= 8.4 the DPDK can only add `extend on` to make the VLAN filter work normally::
+
+ testpmd> vlan set extend on 0
+
Enable VLAN filtering on port ``0``::
testpmd> vlan set filter on 0
@@ -301,7 +309,9 @@ Do the synthetic test following the below table and check the result is the same
as the table(the inserted VLAN Tag Identifier is limited to ``0x3``, and all modes
except insert are set on rx port).
-+-------+-------+--------+------------+--------+--------+-------+-------+-------+
++-------------------------------------------------------+-----------------------+
+| Configure setting | Result |
++=======+=======+========+============+========+========+=======+=======+=======+
| Outer | Inner | Vlan | Vlan | Vlan | Vlan | Pass/ | Outer | Inner |
| vlan | vlan | strip | filter | extend | insert | Drop | vlan | vlan |
+-------+-------+--------+------------+--------+--------+-------+-------+-------+
@@ -358,6 +368,71 @@ except insert are set on rx port).
| 0x1 | 0x2 | yes | yes,0x2 | yes | yes | pass | 0x3 | 0x1 |
+-------+-------+--------+------------+--------+--------+-------+-------+-------+
+Due to the kernel enables Qinq and cannot be closed, the DPDK only add `extend on` to make the VLAN filter
+work normally. Therefore, if the i40e firmware >= 8.4 the synthetic test according to the following table.
+In addition, filter inner vlan when firmware <= 8.3, filter outer vlan when firmware >= 8.4.
+
++-------------------------------------------------------+-----------------------+
+| Configure setting | Result |
++=======+=======+========+============+========+========+=======+=======+=======+
+| Outer | Inner | Vlan | Vlan | Vlan | Vlan | Pass/ | Outer | Inner |
+| vlan | vlan | strip | filter | extend | insert | Drop | vlan | vlan |
++-------+-------+--------+------------+--------+--------+-------+-------+-------+
+| 0x1 | 0x2 | no | no | no | no | pass | 0x1 | 0x2 |
++-------+-------+--------+------------+--------+--------+-------+-------+-------+
+| 0x1 | 0x2 | yes | no | no | no | pass | no | 0x2 |
++-------+-------+--------+------------+--------+--------+-------+-------+-------+
+| 0x1 | 0x2 | no | yes,0x1 | no | no | pass | 0x1 | 0x2 |
++-------+-------+--------+------------+--------+--------+-------+-------+-------+
+| 0x1 | 0x2 | no | yes,0x2 | no | no | pass | 0x1 | 0x2 |
++-------+-------+--------+------------+--------+--------+-------+-------+-------+
+| 0x1 | 0x2 | yes | yes,0x1 | no | no | pass | no | 0x2 |
++-------+-------+--------+------------+--------+--------+-------+-------+-------+
+| 0x1 | 0x2 | yes | yes,0x2 | no | no | pass | no | 0x2 |
++-------+-------+--------+------------+--------+--------+-------+-------+-------+
+| 0x1 | 0x2 | no | no | yes | no | pass | 0x1 | 0x2 |
++-------+-------+--------+------------+--------+--------+-------+-------+-------+
+| 0x1 | 0x2 | yes | no | yes | no | pass | no | 0x1 |
++-------+-------+--------+------------+--------+--------+-------+-------+-------+
+| 0x1 | 0x2 | no | yes,0x1 | yes | no | pass | 0x1 | 0x2 |
++-------+-------+--------+------------+--------+--------+-------+-------+-------+
+| 0x1 | 0x2 | no | yes,0x2 | yes | no | drop | no | no |
++-------+-------+--------+------------+--------+--------+-------+-------+-------+
+| 0x1 | 0x2 | yes | yes,0x1 | yes | no | pass | no | 0x1 |
++-------+-------+--------+------------+--------+--------+-------+-------+-------+
+| 0x1 | 0x2 | yes | yes,0x2 | yes | no | drop | no | no |
++-------+-------+--------+------------+--------+--------+-------+-------+-------+
+| 0x1 | 0x2 | no | no | no | yes | pass | 0x3 | 0x1 |
+| | | | | | | | | 0x2 |
++-------+-------+--------+------------+--------+--------+-------+-------+-------+
+| 0x1 | 0x2 | yes | no | no | yes | pass | 0x3 | 0x2 |
++-------+-------+--------+------------+--------+--------+-------+-------+-------+
+| 0x1 | 0x2 | no | yes,0x1 | no | yes | pass | 0x3 | 0x1 |
+| | | | | | | | | 0x2 |
++-------+-------+--------+------------+--------+--------+-------+-------+-------+
+| 0x1 | 0x2 | no | yes,0x2 | no | yes | pass | 0x3 | 0x1 |
+| | | | | | | | | 0x2 |
++-------+-------+--------+------------+--------+--------+-------+-------+-------+
+| 0x1 | 0x2 | yes | yes,0x1 | no | yes | pass | 0x3 | 0x2 |
++-------+-------+--------+------------+--------+--------+-------+-------+-------+
+| 0x1 | 0x2 | yes | yes,0x2 | no | yes | drop | no | no |
++-------+-------+--------+------------+--------+--------+-------+-------+-------+
+| 0x1 | 0x2 | no | no | yes | yes | pass | 0x3 | 0x1 |
+| | | | | | | | | 0x2 |
++-------+-------+--------+------------+--------+--------+-------+-------+-------+
+| 0x1 | 0x2 | yes | no | yes | yes | pass | 0x3 | 0x1 |
++-------+-------+--------+------------+--------+--------+-------+-------+-------+
+| 0x1 | 0x2 | no | yes,0x1 | yes | yes | pass | 0x3 | 0x1 |
+| | | | | | | | | 0x2 |
++-------+-------+--------+------------+--------+--------+-------+-------+-------+
+| 0x1 | 0x2 | no | yes,0x2 | yes | yes | pass | 0x3 | 0x1 |
+| | | | | | | | | 0x2 |
++-------+-------+--------+------------+--------+--------+-------+-------+-------+
+| 0x1 | 0x2 | yes | yes,0x1 | yes | yes | pass | 0x3 | 0x1 |
++-------+-------+--------+------------+--------+--------+-------+-------+-------+
+| 0x1 | 0x2 | yes | yes,0x2 | yes | yes | drop | no | no |
++-------+-------+--------+------------+--------+--------+-------+-------+-------+
+
Test Case: Strip/Filter/Extend/Insert enable/disable random test
================================================================
--
2.27.0
next reply other threads:[~2022-11-22 8:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-22 8:21 Weiyuan Li [this message]
2022-11-22 8:22 ` [dts][PATCH V5 2/8] tests/dual_vlan: " Weiyuan Li
2022-11-22 8:22 ` [dts][PATCH V5 3/8] test_plans/ipgre: " Weiyuan Li
2022-11-22 8:22 ` [dts][PATCH V5 4/8] tests/ipgre: " Weiyuan Li
2022-11-22 8:22 ` [dts][PATCH V5 5/8] test_plans/vlan_ethertype_config: " Weiyuan Li
2022-11-22 8:22 ` [dts][PATCH V5 6/8] tests/vlan_ethertype_config: " Weiyuan Li
2022-11-22 8:22 ` [dts][PATCH V5 7/8] test_plans/vlan: " Weiyuan Li
2022-11-22 8:22 ` [dts][PATCH V5 8/8] tests/vlan: " Weiyuan Li
2022-11-23 2:54 ` lijuan.tu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221122082206.12559-1-weiyuanx.li@intel.com \
--to=weiyuanx.li@intel.com \
--cc=dts@dpdk.org \
--cc=songx.jiale@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).