From: Lingli Chen <linglix.chen@intel.com>
To: dts@dpdk.org
Cc: Lingli Chen <linglix.chen@intel.com>
Subject: [dts] [PATCH V1 02/12] tests/dpdk_gro_lib: DPDK code prefix DEV change to RTE_ETH
Date: Mon, 8 Nov 2021 16:28:44 +0000 [thread overview]
Message-ID: <20211108162854.96466-3-linglix.chen@intel.com> (raw)
In-Reply-To: <20211108162854.96466-1-linglix.chen@intel.com>
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 --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):
--
2.33.1
next prev parent reply other threads:[~2021-11-08 8:27 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-08 16:28 [dts] [PATCH V1 00/12] " Lingli Chen
2021-11-08 16:28 ` [dts] [PATCH V1 01/12] test_plans/dpdk_gro_lib: " Lingli Chen
2021-11-08 16:28 ` Lingli Chen [this message]
2021-11-08 16:28 ` [dts] [PATCH V1 03/12] test_plans/vdev_primary_secondary: " Lingli Chen
2021-11-08 16:28 ` [dts] [PATCH V1 04/12] tests/vdev_primary_secondary: " Lingli Chen
2021-11-08 16:28 ` [dts] [PATCH V1 05/12] test_plans/vhost_event_idx_interrupt: " Lingli Chen
2021-11-08 16:28 ` [dts] [PATCH V1 06/12] tests/vhost_event_idx_interrupt: " Lingli Chen
2021-11-08 16:28 ` [dts] [PATCH V1 07/12] test_plans/vhost_user_interrupt: " Lingli Chen
2021-11-08 16:28 ` [dts] [PATCH V1 08/12] tests/vhost_user_interrupt: " Lingli Chen
2021-11-08 16:28 ` [dts] [PATCH V1 09/12] test_plans/vhost_virtio_pmd_interrupt: " Lingli Chen
2021-11-08 16:28 ` [dts] [PATCH V1 10/12] tests/vhost_virtio_pmd_interrupt: " Lingli Chen
2021-11-08 16:28 ` [dts] [PATCH V1 11/12] test_plans/vhost_virtio_user_interrupt: " Lingli Chen
2021-11-08 16:28 ` [dts] [PATCH V1 12/12] tests/vhost_virtio_user_interrupt: " Lingli Chen
2021-11-08 8:39 ` Chen, LingliX
2021-11-08 15:46 ` Tu, Lijuan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211108162854.96466-3-linglix.chen@intel.com \
--to=linglix.chen@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).