From: sunqin <qinx.sun@intel.com>
To: dts@dpdk.org
Cc: sunqin <qinx.sun@intel.com>
Subject: [dts] [PATCH V2] tests/iavf_flexible_descriptor: add private flag for vf vlan
Date: Wed, 3 Mar 2021 16:44:37 +0000 [thread overview]
Message-ID: <20210303164437.30160-1-qinx.sun@intel.com> (raw)
At present, iavf can only receive packets with type value of 0x8100 by default,
if want to receive other type packets, need to set private flag.
Signed-off-by: sunqin <qinx.sun@intel.com>
---
v1: add private flag setting for vf vlan
v2: add commit message and restore setting after suite test is complete
tests/TestSuite_iavf_flexible_descriptor.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tests/TestSuite_iavf_flexible_descriptor.py b/tests/TestSuite_iavf_flexible_descriptor.py
index 69f38bf6..3bfd5b99 100644
--- a/tests/TestSuite_iavf_flexible_descriptor.py
+++ b/tests/TestSuite_iavf_flexible_descriptor.py
@@ -79,13 +79,14 @@ class TestIavfFlexibleDescriptor(TestCase, FlexibleRxdBase):
netdev.bind_driver(driver=self.kdriver)
# set vf assign method and vf driver
vf_driver = 'vfio-pci'
+ self.pf0_intf = self.dut.ports_info[self.dut_ports[dut_index]]['intf']
+ self.dut.send_expect('ethtool --set-priv-flags {} vf-vlan-prune-disable on'.format(self.pf0_intf),'#')
# generate 2 VFs on PF
self.dut.generate_sriov_vfs_by_port(
used_dut_port, 1, driver=self.kdriver)
- pf0_intf = self.dut.ports_info[self.dut_ports[dut_index]]['intf']
vf_mac = "00:11:22:33:44:55"
self.dut.send_expect(
- 'ip link set {} vf 0 mac {}'.format(pf0_intf, vf_mac), '#')
+ 'ip link set {} vf 0 mac {}'.format(self.pf0_intf, vf_mac), '#')
sriov_vf0 = self.dut.ports_info[used_dut_port]['vfs_port'][0]
sriov_vf0.bind_driver(vf_driver)
return sriov_vf0, vf_mac
@@ -122,6 +123,7 @@ class TestIavfFlexibleDescriptor(TestCase, FlexibleRxdBase):
"""
self.destroy_vf()
self.restore_compilation()
+ self.dut.send_expect('ethtool --set-priv-flags {} vf-vlan-prune-disable off'.format(self.pf0_intf), '#')
def set_up(self):
"""
--
2.17.1
next reply other threads:[~2021-03-03 8:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-03 16:44 sunqin [this message]
2021-03-03 10:28 ` Sun, QinX
2021-03-04 2:20 ` Zhao, HaiyangX
2021-03-04 8:14 ` Tu, Lijuan
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=20210303164437.30160-1-qinx.sun@intel.com \
--to=qinx.sun@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).