diff mbox series

[V1,12/12] tests/vhost_virtio_user_interrupt: DPDK code prefix DEV change to RTE_ETH

Message ID 20211108162854.96466-13-linglix.chen@intel.com (mailing list archive)
State Changes Requested
Headers show
Series DPDK code prefix DEV change to RTE_ETH | expand

Commit Message

Lingli Chen Nov. 8, 2021, 4:28 p.m. UTC
According to dpdk commit 295968d17("ethdev: add namespace"), DPDK code prefix DEV change to RTE_ETH.

Signed-off-by: Lingli Chen <linglix.chen@intel.com>
---
 tests/TestSuite_vhost_virtio_user_interrupt.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Lingli Chen Nov. 8, 2021, 8:39 a.m. UTC | #1
> -----Original Message-----
> From: Chen, LingliX <linglix.chen@intel.com>
> Sent: Tuesday, November 9, 2021 12:29 AM
> To: dts@dpdk.org
> Cc: Chen, LingliX <linglix.chen@intel.com>
> Subject: [dts][PATCH V1 12/12] tests/vhost_virtio_user_interrupt: DPDK code
> prefix DEV change to RTE_ETH
> 
> According to dpdk commit 295968d17("ethdev: add namespace"), DPDK code
> prefix DEV change to RTE_ETH.
> 
> Signed-off-by: Lingli Chen <linglix.chen@intel.com>
> ---

Tested-by: Lingli Chen <linglix.chen@intel.com>
Tu, Lijuan Nov. 8, 2021, 3:46 p.m. UTC | #2
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Lingli Chen
> Sent: 2021年11月9日 0:29
> To: dts@dpdk.org
> Cc: Chen, LingliX <linglix.chen@intel.com>
> Subject: [dts] [PATCH V1 12/12] tests/vhost_virtio_user_interrupt: DPDK code
> prefix DEV change to RTE_ETH
> 
> According to dpdk commit 295968d17("ethdev: add namespace"), DPDK code
> prefix DEV change to RTE_ETH.
> 
> Signed-off-by: Lingli Chen <linglix.chen@intel.com>
> ---
>  tests/TestSuite_vhost_virtio_user_interrupt.py | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/TestSuite_vhost_virtio_user_interrupt.py
> b/tests/TestSuite_vhost_virtio_user_interrupt.py
> index 89ff9800..bb7b249c 100644
> --- a/tests/TestSuite_vhost_virtio_user_interrupt.py
> +++ b/tests/TestSuite_vhost_virtio_user_interrupt.py
> @@ -90,9 +90,9 @@ class TestVirtioUserInterrupt(TestCase):
>      def prepare_l3fwd_power(self):
>          self.dut.send_expect("cp ./examples/l3fwd-power/main.c .", "#")
>          self.dut.send_expect(
> -                "sed -i '/DEV_RX_OFFLOAD_CHECKSUM/d' ./examples/l3fwd-
> power/main.c", "#", 10)
> +                "sed -i '/RTE_ETH_RX_OFFLOAD_CHECKSUM/d' ./examples/l3fwd-
> power/main.c", "#", 10)
>          self.dut.send_expect(
> -                "sed -i 's/.mq_mode        = ETH_MQ_RX_RSS,/.mq_mode        =
> ETH_MQ_RX_NONE,/g' ./examples/l3fwd-power/main.c", "#", 10)
> +                "sed -i 's/.mq_mode        = RTE_ETH_MQ_RX_RSS,/.mq_mode        =
> RTE_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")

Please drop these changes to dpdk.

> 
> --
> 2.33.1
diff mbox series

Patch

diff --git a/tests/TestSuite_vhost_virtio_user_interrupt.py b/tests/TestSuite_vhost_virtio_user_interrupt.py
index 89ff9800..bb7b249c 100644
--- a/tests/TestSuite_vhost_virtio_user_interrupt.py
+++ b/tests/TestSuite_vhost_virtio_user_interrupt.py
@@ -90,9 +90,9 @@  class TestVirtioUserInterrupt(TestCase):
     def prepare_l3fwd_power(self):
         self.dut.send_expect("cp ./examples/l3fwd-power/main.c .", "#")
         self.dut.send_expect(
-                "sed -i '/DEV_RX_OFFLOAD_CHECKSUM/d' ./examples/l3fwd-power/main.c", "#", 10)
+                "sed -i '/RTE_ETH_RX_OFFLOAD_CHECKSUM/d' ./examples/l3fwd-power/main.c", "#", 10)
         self.dut.send_expect(
-                "sed -i 's/.mq_mode        = ETH_MQ_RX_RSS,/.mq_mode        = ETH_MQ_RX_NONE,/g' ./examples/l3fwd-power/main.c", "#", 10)
+                "sed -i 's/.mq_mode        = RTE_ETH_MQ_RX_RSS,/.mq_mode        = RTE_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")