[dts] [PATCH V1 10/12] tests/vhost_virtio_pmd_interrupt: DPDK code prefix DEV change to RTE_ETH

Lingli Chen linglix.chen at intel.com
Mon Nov 8 17:28:52 CET 2021


According to dpdk commit 295968d17("ethdev: add namespace"), DPDK code prefix DEV change to RTE_ETH.

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

diff --git a/tests/TestSuite_vhost_virtio_pmd_interrupt.py b/tests/TestSuite_vhost_virtio_pmd_interrupt.py
index f421a095..7f81f0a8 100644
--- a/tests/TestSuite_vhost_virtio_pmd_interrupt.py
+++ b/tests/TestSuite_vhost_virtio_pmd_interrupt.py
@@ -99,9 +99,9 @@ class TestVhostVirtioPmdInterrupt(TestCase):
         rebuild l3fwd-power in vm and set the virtio-net driver
         """
         self.vm_dut.send_expect("cp ./examples/l3fwd-power/main.c /tmp/", "#")
-        self.vm_dut.send_expect("sed -i '/DEV_RX_OFFLOAD_CHECKSUM/d' ./examples/l3fwd-power/main.c", "#", 10)
+        self.vm_dut.send_expect("sed -i '/RTE_ETH_RX_OFFLOAD_CHECKSUM/d' ./examples/l3fwd-power/main.c", "#", 10)
         self.vm_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.vm_dut.build_dpdk_apps('examples/l3fwd-power')
         self.verify("Error" not in out, "compilation l3fwd-power error")
         self.vm_dut.send_expect("modprobe vfio enable_unsafe_noiommu_mode=1", "#")
-- 
2.33.1



More information about the dts mailing list