test suite reviews and discussions
 help / color / mirror / Atom feed
From: Zhimin Huang <zhiminx.huang@intel.com>
To: dts@dpdk.org
Cc: Zhimin Huang <zhiminx.huang@intel.com>
Subject: [dts][PATCH V5 3/3] test_plans/*:modify cases to check dcf as a full feature pmd
Date: Fri, 23 Sep 2022 17:54:58 +0800	[thread overview]
Message-ID: <20220923095458.28070-3-zhiminx.huang@intel.com> (raw)
In-Reply-To: <20220923095458.28070-1-zhiminx.huang@intel.com>

the dcf mode support more pmd feature in dpdk22.07.
modify cases to support dcf and check normal datapath in dcf mode.
add description for support dcf case in testplan.
1.set vf trust on before start dcf
2.start up testpmd with dcf parm.

Signed-off-by: Zhimin Huang <zhiminx.huang@intel.com>
Acked-by: Xueqin Lin <xueqin.lin@intel.com>
---
v5:
-detailed the subject and comments.

 test_plans/kernelpf_iavf_test_plan.rst | 12 ++++++++++++
 test_plans/stats_checks_test_plan.rst  | 12 ++++++++++++
 test_plans/vf_macfilter_test_plan.rst  | 16 ++++++++++++++++
 test_plans/vf_offload_test_plan.rst    | 14 ++++++++++++++
 test_plans/vf_rss_test_plan.rst        | 13 +++++++++++++
 test_plans/vf_smoke_test_plan.rst      | 13 +++++++++++++
 test_plans/vf_vlan_test_plan.rst       | 12 ++++++++++++
 7 files changed, 92 insertions(+)

diff --git a/test_plans/kernelpf_iavf_test_plan.rst b/test_plans/kernelpf_iavf_test_plan.rst
index d877bb90..aa7aed82 100644
--- a/test_plans/kernelpf_iavf_test_plan.rst
+++ b/test_plans/kernelpf_iavf_test_plan.rst
@@ -47,6 +47,18 @@ Start up VF port::
 
     ./<build_target>/app/dpdk-testpmd -c f -n 4 -- -i
 
+Or set VF port to dcf and start up::
+
+   Enable kernel trust mode:
+
+       ip link set $PF_INTF vf 0 trust on
+
+    ./<build_target>/app/dpdk-testpmd -c f -n 4 -a 0000:18:01.0,cap=dcf -- -i
+
+.. note::
+
+   make dcf as full feature pmd is dpdk22.07 feature, and only support E810 series nic.
+
 Test case: VF basic RX/TX
 =========================
 Set rxonly forward, start testpmd
diff --git a/test_plans/stats_checks_test_plan.rst b/test_plans/stats_checks_test_plan.rst
index 8c7e0add..8975d165 100644
--- a/test_plans/stats_checks_test_plan.rst
+++ b/test_plans/stats_checks_test_plan.rst
@@ -265,5 +265,17 @@ Test Case: VF xstats Checks
     testpmd> port config all rss all
     testpmd> set fwd mac
 
+   Or set VF port to dcf and start up::
+
+    Enable kernel trust mode:
+
+       ip link set $PF_INTF vf 0 trust on
+
+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c f -n 4 -a 0000:18:01.0,cap=dcf -- -i --rxq=4 --txq=4
+
+.. note::
+
+   make dcf as full feature pmd is dpdk22.07 feature, and only support E810 series nic.
+
 3. Then run the same steps of PF xstats Checks, get same result.
 note: because one port forwarding packets, so check rx and tx both in port 0.
diff --git a/test_plans/vf_macfilter_test_plan.rst b/test_plans/vf_macfilter_test_plan.rst
index d623cf04..e2f3c355 100644
--- a/test_plans/vf_macfilter_test_plan.rst
+++ b/test_plans/vf_macfilter_test_plan.rst
@@ -77,6 +77,14 @@ Test Case 1: test_kernel_2pf_2vf_1vm_iplink_macfilter
       testpmd> set fwd mac
       testpmd> start
 
+   Or set VF port to dcf and start up::
+
+      ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x0f -n 4 -a 00:06.0,cap=dcf -a 00:07.0,cap=dcf -- -i --portmask=0x3
+
+.. note::
+
+      make dcf as full feature pmd is dpdk22.07 feature, and only support E810 series nic.
+
 6. Use scapy to send 100 random packets with ip link set MAC to VF, verify the
    packets can be received by one VF and can be forwarded to another VF
    correctly.
@@ -156,6 +164,14 @@ Test Case 2: test_kernel_2pf_2vf_1vm_mac_add_filter
       testpmd> set fwd mac
       testpmd> start
 
+   Or set VF port to dcf and start up::
+
+      ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x0f -n 4 -a 00:06.0,cap=dcf -a 00:07.0,cap=dcf -- -i --portmask=0x3
+
+.. note::
+
+      make dcf as full feature pmd is dpdk22.07 feature, and only support E810 series nic.
+
 6. Use scapy to send 100 random packets with current VF0's MAC, verify the
    packets can be received by one VF and can be forwarded to another VF
    correctly.
diff --git a/test_plans/vf_offload_test_plan.rst b/test_plans/vf_offload_test_plan.rst
index ba490e06..f909b477 100644
--- a/test_plans/vf_offload_test_plan.rst
+++ b/test_plans/vf_offload_test_plan.rst
@@ -30,6 +30,20 @@ launch the ``testpmd`` with the following arguments::
   --txht=8 --txwt=0 --txfreet=0 --rxfreet=64 --mbcache=250 --portmask=0x5
   --enable-rx-cksum
 
+Or set VF port to dcf and start up::
+
+   Enable kernel trust mode:
+
+       ip link set $PF_INTF vf 0 trust on
+
+   dpdk-testpmd -c 0x0f -n 4 -a 00:04.0,cap=dcf -a 00:05.0,cap=dcf -- -i --burst=1 --txpt=32 \
+   --txht=8 --txwt=0 --txfreet=0 --rxfreet=64 --mbcache=250 --portmask=0x5
+   --enable-rx-cksum
+
+.. note::
+
+   make dcf as full feature pmd is dpdk22.07 feature, and only support E810 series nic.
+
 Set the verbose level to 1 to display information for each received packet::
 
   testpmd> set verbose 1
diff --git a/test_plans/vf_rss_test_plan.rst b/test_plans/vf_rss_test_plan.rst
index 846de2d7..75520206 100644
--- a/test_plans/vf_rss_test_plan.rst
+++ b/test_plans/vf_rss_test_plan.rst
@@ -54,6 +54,19 @@ Testpmd configuration - 4 RX/TX queues per port
 
   dpdk-testpmd -c 1f -n 3  -- -i --rxq=4 --txq=4
 
+
+Or set VF port to dcf and start up::
+
+   Enable kernel trust mode:
+
+       ip link set $PF_INTF vf 0 trust on
+
+    dpdk-testpmd -c 0x0f -n 4 -a 00:04.0,cap=dcf -a 00:05.0,cap=dcf -- -i --rxq=4 --txq=4
+
+.. note::
+
+   make dcf as full feature pmd is dpdk22.07 feature, and only support E810 series nic.
+
 Testpmd Configuration Options
 -----------------------------
 
diff --git a/test_plans/vf_smoke_test_plan.rst b/test_plans/vf_smoke_test_plan.rst
index 33a3273c..7698947d 100644
--- a/test_plans/vf_smoke_test_plan.rst
+++ b/test_plans/vf_smoke_test_plan.rst
@@ -59,6 +59,19 @@ Prerequisites
     testpmd> start
     testpmd> show port info all
 
+Or set VF port to dcf and start up::
+
+   Enable kernel trust mode:
+
+       ip link set $PF_INTF vf 0 trust on
+
+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xf -n 4 -a 0000:86:01.0,cap=dcf --file-prefix=pf -- -i --rxq=4
+    --txq=4
+
+.. note::
+
+   make dcf as full feature pmd is dpdk22.07 feature, and only support E810 series nic.
+
 
 Test Case 1: test enable and disable jumbo frame
 ====================================================
diff --git a/test_plans/vf_vlan_test_plan.rst b/test_plans/vf_vlan_test_plan.rst
index 2c38d4dd..4ddf8e6e 100644
--- a/test_plans/vf_vlan_test_plan.rst
+++ b/test_plans/vf_vlan_test_plan.rst
@@ -66,6 +66,18 @@ Prerequisites
      testpmd> set verbose 1
      testpmd> start
 
+Or set VF port to dcf and start up::
+
+   Enable kernel trust mode:
+
+       ip link set $PF_INTF vf 0 trust on
+
+    dpdk-testpmd -c 0x0f -n 4 -a 00:04.0,cap=dcf -a 00:05.0,cap=dcf -- -i --portmask=0x3
+
+.. note::
+
+   make dcf as full feature pmd is dpdk22.07 feature, and only support E810 series nic.
+
 Test Case 1: Add port based vlan on VF
 ======================================
 
-- 
2.17.1


      parent reply	other threads:[~2022-09-23  1:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-23  9:54 [dts][PATCH V5 1/3] framework/*:add config dcf mode in execution file Zhimin Huang
2022-09-23  9:54 ` [dts][PATCH V5 2/3] tests/*:modify cases to check dcf as a full feature pmd Zhimin Huang
2022-09-23  9:54 ` Zhimin Huang [this message]

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=20220923095458.28070-3-zhiminx.huang@intel.com \
    --to=zhiminx.huang@intel.com \
    --cc=dts@dpdk.org \
    /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).