diff mbox series

[V1] tests/iavf_fdir: set vlan id for vf

Message ID 20210330160441.6973-1-weix.xie@intel.com (mailing list archive)
State Accepted
Headers show
Series [V1] tests/iavf_fdir: set vlan id for vf | expand

Commit Message

Xie, WeiX March 30, 2021, 4:04 p.m. UTC
confirm with developer that the design of dpdk is changed for VF, the VLAN ID needs to be set before VF receives VLAN packets.

Signed-off-by: xiewei <weix.xie@intel.com>
---
 tests/TestSuite_iavf_fdir.py | 2 ++
 1 file changed, 2 insertions(+)

Comments

Xie, WeiX March 30, 2021, 7:32 a.m. UTC | #1
> -----Original Message-----
> From: Xie, WeiX <weix.xie@intel.com>
> Sent: Wednesday, March 31, 2021 12:05 AM
> To: dts@dpdk.org
> Cc: Xie, WeiX <weix.xie@intel.com>
> Subject: [PATCH V1] tests/iavf_fdir: set vlan id for vf

Tested-by: Xie Wei <weix.xie@intel.com>
Tu, Lijuan March 31, 2021, 6:58 a.m. UTC | #2
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Xie, WeiX
> Sent: 2021年3月30日 15:32
> To: dts@dpdk.org
> Subject: Re: [dts] [PATCH V1] tests/iavf_fdir: set vlan id for vf
> 
> > -----Original Message-----
> > From: Xie, WeiX <weix.xie@intel.com>
> > Sent: Wednesday, March 31, 2021 12:05 AM
> > To: dts@dpdk.org
> > Cc: Xie, WeiX <weix.xie@intel.com>
> > Subject: [PATCH V1] tests/iavf_fdir: set vlan id for vf
> 
> Tested-by: Xie Wei <weix.xie@intel.com>

Applied, thanks
diff mbox series

Patch

diff --git a/tests/TestSuite_iavf_fdir.py b/tests/TestSuite_iavf_fdir.py
index a4048145..27f92f80 100644
--- a/tests/TestSuite_iavf_fdir.py
+++ b/tests/TestSuite_iavf_fdir.py
@@ -2309,6 +2309,8 @@  class TestIAVFFdir(TestCase):
     def config_testpmd(self):
         self.pmd_output.execute_cmd("set fwd rxonly")
         self.pmd_output.execute_cmd("set verbose 1")
+        self.pmd_output.execute_cmd("vlan set filter on 0")
+        self.pmd_output.execute_cmd("rx_vlan add 1 0")
         # specify a fixed rss-hash-key for cvl ether
         self.pmd_output.execute_cmd(
             "port config 0 rss-hash-key ipv4 1234abcd1234abcd1234abcd1234abcd1234abcd1234abcd1234abcd1234abcd1234abcd1234abcd1234abcd1234abcd1234abcd")