diff mbox series

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

Message ID 20211108162854.96466-11-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_pmd_interrupt.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

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", "#")