[dts] [PATCH V1]tests/userspace_ethtool: fix test_ethtool_vlan case failed
yufengx.mo at intel.com
yufengx.mo at intel.com
Tue Jan 30 07:43:34 CET 2018
From: yufengmx <yufengx.mo at intel.com>
vlan filter failed issue is caused by pmd option offload change.
'cfg_port.rxmode.hw_vlan_filter' is abandoned after the commit
008ee817dfbe133e03717a37743f115d21e1a479. change sed command content
before
cfg_port.rxmode.hw_vlan_filter=1
current
cfg_port.rxmode.offloads|=DEV_RX_OFFLOAD_VLAN_FILTER
Signed-off-by: yufengmx <yufengx.mo at intel.com>
---
tests/TestSuite_userspace_ethtool.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/TestSuite_userspace_ethtool.py b/tests/TestSuite_userspace_ethtool.py
index a901a47..84b1f1e 100644
--- a/tests/TestSuite_userspace_ethtool.py
+++ b/tests/TestSuite_userspace_ethtool.py
@@ -411,7 +411,7 @@ class TestUserspaceEthtool(TestCase, IxiaPacketGenerator):
"""
main_file = "examples/ethtool/ethtool-app/main.c"
# enable vlan filter
- self.dut.send_expect("sed -i -e '/cfg_port.txmode.mq_mode = ETH_MQ_TX_NONE;$/a\\cfg_port.rxmode.hw_vlan_filter=1;' %s" % main_file, "# ")
+ self.dut.send_expect("sed -i -e '/cfg_port.txmode.mq_mode = ETH_MQ_TX_NONE;$/a\\cfg_port.rxmode.offloads|=DEV_RX_OFFLOAD_VLAN_FILTER;' %s" % main_file, "# ")
# build sample app
self.build_ethtool()
--
1.9.3
More information about the dts
mailing list