[dts] [PATCH V1] tests/vhost_virtio_user_interrupt:Disable RSS, Change mq_mode to ETH_MQ_RX_NONE

zhu,shuai shuaix.zhu at intel.com
Tue Nov 5 04:14:23 CET 2019


RSS is not support by virito device and will thus will return
error configure device with RSS enabled. Need to disable RSS when
configuring virtio device.

Signed-off-by: zhu,shuai <shuaix.zhu at intel.com>
---
 tests/TestSuite_vhost_virtio_user_interrupt.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/tests/TestSuite_vhost_virtio_user_interrupt.py b/tests/TestSuite_vhost_virtio_user_interrupt.py
index 91edcce..002588d 100644
--- a/tests/TestSuite_vhost_virtio_user_interrupt.py
+++ b/tests/TestSuite_vhost_virtio_user_interrupt.py
@@ -85,9 +85,7 @@ class TestVirtioUserInterrupt(TestCase):
         self.dut.send_expect(
                 "sed -i '/DEV_RX_OFFLOAD_CHECKSUM/d' ./examples/l3fwd-power/main.c", "#", 10)
         self.dut.send_expect(
-                "sed -i '/if (promiscuous_on/i\#if 0' ./examples/l3fwd-power/main.c", "#", 10)
-        self.dut.send_expect(
-                "sed -i '/rte_spinlock_init(&(locks/i\#endif' ./examples/l3fwd-power/main.c", "#", 10)
+                "sed -i 's/.mq_mode        = ETH_MQ_RX_RSS,/.mq_mode        = ETH_MQ_RX_NONE,/g' ./examples/l3fwd-power/main.c", "#", 10)
         out = self.dut.build_dpdk_apps("./examples/l3fwd-power")
         self.verify("Error" not in out, "compilation l3fwd-power error")
 
-- 
2.17.2



More information about the dts mailing list