test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts][PATCH V1] tests/vf_offload: set vlan filter and vlan id on ixgbe
@ 2023-03-27 10:07 Weiyuan Li
  2023-03-28  1:16 ` lijuan.tu
  0 siblings, 1 reply; 2+ messages in thread
From: Weiyuan Li @ 2023-03-27 10:07 UTC (permalink / raw)
  To: dts; +Cc: Weiyuan Li

The ixgbe kernel driver has vlan filter enabled by default, so set vlan
filter and vlan id on dpdk.

Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>
---
 tests/TestSuite_vf_offload.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/TestSuite_vf_offload.py b/tests/TestSuite_vf_offload.py
index 9475ef22..5fee1d42 100644
--- a/tests/TestSuite_vf_offload.py
+++ b/tests/TestSuite_vf_offload.py
@@ -437,6 +437,12 @@ class TestVfOffload(TestCase):
         self.vm0_testpmd.execute_cmd("set promisc 1 on")
         self.vm0_testpmd.execute_cmd("set promisc 0 on")
 
+        # ixgbe kernel drvier has vlan filter enabled by default.
+        # so set vlan filter and vlan id on dpdk.
+        if self.kdriver == "ixgbe":
+            self.vm0_testpmd.execute_cmd("vlan set filter on 0")
+            self.vm0_testpmd.execute_cmd("rx_vlan add 100 0")
+
         time.sleep(2)
         mac = self.vm0_testpmd.get_port_mac(0)
         sndIP = "10.0.0.1"
-- 
2.27.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [dts][PATCH V1] tests/vf_offload: set vlan filter and vlan id on ixgbe
  2023-03-27 10:07 [dts][PATCH V1] tests/vf_offload: set vlan filter and vlan id on ixgbe Weiyuan Li
@ 2023-03-28  1:16 ` lijuan.tu
  0 siblings, 0 replies; 2+ messages in thread
From: lijuan.tu @ 2023-03-28  1:16 UTC (permalink / raw)
  To: dts, Weiyuan Li; +Cc: Weiyuan Li

On Mon, 27 Mar 2023 18:07:46 +0800, Weiyuan Li <weiyuanx.li@intel.com> wrote:
> The ixgbe kernel driver has vlan filter enabled by default, so set vlan
> filter and vlan id on dpdk.
> 
> Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>


Applied, thanks

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-03-28  1:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-27 10:07 [dts][PATCH V1] tests/vf_offload: set vlan filter and vlan id on ixgbe Weiyuan Li
2023-03-28  1:16 ` lijuan.tu

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).