test suite reviews and discussions
 help / color / Atom feed
* [dts] [PATCH V1] tests/vhost_virtio_user_interrupt:Disable RSS, Change mq_mode to ETH_MQ_RX_NONE
@ 2019-11-05  3:14 zhu,shuai
  2019-11-05  7:46 ` Wang, Yinan
  0 siblings, 1 reply; 2+ messages in thread
From: zhu,shuai @ 2019-11-05  3:14 UTC (permalink / raw)
  To: dts; +Cc: yinan.wang, zhu,shuai

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@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


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

* Re: [dts] [PATCH V1] tests/vhost_virtio_user_interrupt:Disable RSS, Change mq_mode to ETH_MQ_RX_NONE
  2019-11-05  3:14 [dts] [PATCH V1] tests/vhost_virtio_user_interrupt:Disable RSS, Change mq_mode to ETH_MQ_RX_NONE zhu,shuai
@ 2019-11-05  7:46 ` Wang, Yinan
  0 siblings, 0 replies; 2+ messages in thread
From: Wang, Yinan @ 2019-11-05  7:46 UTC (permalink / raw)
  To: Zhu, ShuaiX, dts

Acked-by: Wang, Yinan <yinan.wang@intel.com>

> -----Original Message-----
> From: Zhu, ShuaiX <shuaix.zhu@intel.com>
> Sent: 2019^[$BG/^[(B11^[$B7n^[(B5^[$BF|^[(B 11:14
> To: dts@dpdk.org
> Cc: Wang, Yinan <yinan.wang@intel.com>; Zhu, ShuaiX <shuaix.zhu@intel.com>
> Subject: [dts][PATCH V1] tests/vhost_virtio_user_interrupt:Disable RSS,Change
> mq_mode to ETH_MQ_RX_NONE
> 
> 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@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


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

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-05  3:14 [dts] [PATCH V1] tests/vhost_virtio_user_interrupt:Disable RSS, Change mq_mode to ETH_MQ_RX_NONE zhu,shuai
2019-11-05  7:46 ` Wang, Yinan

test suite reviews and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/ public-inbox