[V3,4/4] test_plans/vf_vlan: update dts code for driver change

Message ID 20220711072234.852-4-weiyuanx.li@intel.com (mailing list archive)
State Accepted
Headers
Series [V3,1/4] tests/kernelpf_iavf: update dts code for driver change |

Checks

Context Check Description
ci/Intel-dts-doc-test success Testing OK
ci/Intel-dts-format-test success Testing OK
ci/Intel-dts-pylama-test success Testing OK
ci/Intel-dts-suite-test fail Testing issues

Commit Message

Weiyuan Li July 11, 2022, 7:22 a.m. UTC
  The out-tree driver has vf-vlan-pruning option,but in-tree driver has not.
So we need different action to enable vlan filter when we validate the vlan filter function with in-tree and out-tree kernel drvier.

Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>
---

v2:
-fix format issue
v3:
-modify the code to check whether vf-vlan-pruning option exists.
-modify the description of the test plan about vf-vlan-pruning.

 test_plans/vf_vlan_test_plan.rst | 4 ++++
 1 file changed, 4 insertions(+)
  

Comments

Lingli Chen July 18, 2022, 9:36 a.m. UTC | #1
> -----Original Message-----
> From: Weiyuan Li <weiyuanx.li@intel.com>
> Sent: Monday, July 11, 2022 3:23 PM
> To: dts@dpdk.org; Peng, Yuan <yuan.peng@intel.com>
> Cc: Li, WeiyuanX <weiyuanx.li@intel.com>
> Subject: [dts][PATCH V3 4/4] test_plans/vf_vlan: update dts code for driver
> change
> 
> The out-tree driver has vf-vlan-pruning option,but in-tree driver has not.
> So we need different action to enable vlan filter when we validate the vlan filter
> function with in-tree and out-tree kernel drvier.
> 
> Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>
> ---

Tested-by: Lingli Chen <linglix.chen@intel.com>
  
Tu, Lijuan Aug. 24, 2022, 8:26 a.m. UTC | #2
On Mon, 11 Jul 2022 15:22:34 +0800, Weiyuan Li <weiyuanx.li@intel.com> wrote:
> The out-tree driver has vf-vlan-pruning option,but in-tree driver has not.
> So we need different action to enable vlan filter when we validate the vlan filter function with in-tree and out-tree kernel drvier.
> 
> Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>

Acked-by: Lijuan Tu <lijuan.tu@intel.com>
Series applied, thanks
  

Patch

diff --git a/test_plans/vf_vlan_test_plan.rst b/test_plans/vf_vlan_test_plan.rst
index c183b3d6..2c38d4dd 100644
--- a/test_plans/vf_vlan_test_plan.rst
+++ b/test_plans/vf_vlan_test_plan.rst
@@ -21,6 +21,10 @@  Prerequisites
      0000:87:00.0 'Ethernet Controller X710 for 10GbE SFP+' if=ens259f0 drv=i40e unused=
      0000:87:00.1 'Ethernet Controller X710 for 10GbE SFP+' if=ens259f1 drv=i40e unused=
 
+     If the drive support vf-vlan-pruning flag:
+     ethtool --set-priv-flags ens259f0 vf-vlan-pruning on
+     ethtool --set-priv-flags ens259f1 vf-vlan-pruning on
+
      echo 1 > /sys/bus/pci/devices/0000\:87\:00.0/sriov_numvfs
      echo 1 > /sys/bus/pci/devices/0000\:87\:00.1/sriov_numvfs