diff mbox series

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

Message ID 20211108162854.96466-3-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_dpdk_gro_lib.py | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)
diff mbox series

Patch

diff --git a/tests/TestSuite_dpdk_gro_lib.py b/tests/TestSuite_dpdk_gro_lib.py
index 08ce9f8a..e893a5af 100644
--- a/tests/TestSuite_dpdk_gro_lib.py
+++ b/tests/TestSuite_dpdk_gro_lib.py
@@ -238,18 +238,18 @@  class TestDPDKGROLib(TestCase):
         self.dut.send_expect("sed -i '/ether_addr_copy(&peer_eth/i\#if 0' ./app/test-pmd/csumonly.c", "#")
         self.dut.send_expect("sed -i '/parse_ethernet(eth_hdr, &info/i\#endif' ./app/test-pmd/csumonly.c", "#")
         # change offload of vhost
-        tx_offload = 'DEV_TX_OFFLOAD_VLAN_INSERT | ' + \
-                    'DEV_TX_OFFLOAD_UDP_CKSUM | ' + \
-                    'DEV_TX_OFFLOAD_TCP_CKSUM | ' + \
-                    'DEV_TX_OFFLOAD_IPV4_CKSUM | ' + \
-                    'DEV_TX_OFFLOAD_TCP_TSO;'
-        rx_offload = 'DEV_RX_OFFLOAD_VLAN_STRIP | ' + \
-                    'DEV_RX_OFFLOAD_TCP_CKSUM | ' + \
-                    'DEV_RX_OFFLOAD_UDP_CKSUM | ' + \
-                    'DEV_RX_OFFLOAD_IPV4_CKSUM | ' + \
-                    'DEV_RX_OFFLOAD_TCP_LRO;'
-        self.dut.send_expect("sed -i 's/DEV_TX_OFFLOAD_VLAN_INSERT;/%s/' drivers/net/vhost/rte_eth_vhost.c" % tx_offload, "#")
-        self.dut.send_expect("sed -i 's/DEV_RX_OFFLOAD_VLAN_STRIP;/%s/' drivers/net/vhost/rte_eth_vhost.c" % rx_offload, "#")
+        tx_offload = 'RTE_ETH_TX_OFFLOAD_VLAN_INSERT | ' + \
+                    'RTE_ETH_TX_OFFLOAD_UDP_CKSUM | ' + \
+                    'RTE_ETH_TX_OFFLOAD_TCP_CKSUM | ' + \
+                    'RTE_ETH_TX_OFFLOAD_IPV4_CKSUM | ' + \
+                    'RTE_ETH_TX_OFFLOAD_TCP_TSO;'
+        rx_offload = 'RTE_ETH_RX_OFFLOAD_VLAN_STRIP | ' + \
+                    'RTE_ETH_RX_OFFLOAD_TCP_CKSUM | ' + \
+                    'RTE_ETH_RX_OFFLOAD_UDP_CKSUM | ' + \
+                    'RTE_ETH_RX_OFFLOAD_IPV4_CKSUM | ' + \
+                    'RTE_ETH_RX_OFFLOAD_TCP_LRO;'
+        self.dut.send_expect("sed -i 's/RTE_ETH_TX_OFFLOAD_VLAN_INSERT;/%s/' drivers/net/vhost/rte_eth_vhost.c" % tx_offload, "#")
+        self.dut.send_expect("sed -i 's/RTE_ETH_RX_OFFLOAD_VLAN_STRIP;/%s/' drivers/net/vhost/rte_eth_vhost.c" % rx_offload, "#")
         self.dut.build_install_dpdk(self.dut.target)
 
     def unprepare_dpdk(self):