test suite reviews and discussions
 help / color / mirror / Atom feed
From: David Marchand <david.marchand@redhat.com>
To: Wei Ling <weix.ling@intel.com>
Cc: dts@dpdk.org, "Tu, Lijuan" <lijuan.tu@intel.com>,
	 Honnappa Nagarahalli <Honnappa.Nagarahalli@arm.com>
Subject: Re: [dts][PATCH V1 3/3] tests/dpdk_gro_lib_cbdma: add dpdk_gro_lib_cbdma testsuite
Date: Mon, 9 May 2022 08:52:22 +0200	[thread overview]
Message-ID: <CAJFAV8zs-pkYLWPz2R2bpM6TLupNDeP6u7unNWS+nBTbzS7kMg@mail.gmail.com> (raw)
In-Reply-To: <20220507084337.307079-1-weix.ling@intel.com>

On Sat, May 7, 2022 at 10:44 AM Wei Ling <weix.ling@intel.com> wrote:
> +    def prepare_dpdk(self):
> +        # Changhe the testpmd checksum fwd code for mac change
> +        self.dut.send_expect("cp ./app/test-pmd/csumonly.c ./app/test-pmd/csumonly_backup.c", "#")
> +        self.dut.send_expect("cp ./drivers/net/vhost/rte_eth_vhost.c ./drivers/net/vhost/rte_eth_vhost-backup.c", "#")
> +        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 = '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)

This hack is getting copy/pasted again and again.

_Don't modify DPDK sources in DTS_.


> +
> +    def unprepare_dpdk(self):
> +        # Recovery the DPDK code to original
> +        self.dut.send_expect("cp ./app/test-pmd/csumonly_backup.c ./app/test-pmd/csumonly.c ", "#")
> +        self.dut.send_expect("cp ./drivers/net/vhost/rte_eth_vhost-backup.c ./drivers/net/vhost/rte_eth_vhost.c ", "#")
> +        self.dut.send_expect("rm -rf ./app/test-pmd/csumonly_backup.c", "#")
> +        self.dut.send_expect("rm -rf ./drivers/net/vhost/rte_eth_vhost-backup.c", "#")
> +        self.dut.build_install_dpdk(self.dut.target)


-- 
David Marchand


  reply	other threads:[~2022-05-09  6:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-07  8:43 Wei Ling
2022-05-09  6:52 ` David Marchand [this message]
2022-05-09 19:15   ` Honnappa Nagarahalli

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=CAJFAV8zs-pkYLWPz2R2bpM6TLupNDeP6u7unNWS+nBTbzS7kMg@mail.gmail.com \
    --to=david.marchand@redhat.com \
    --cc=Honnappa.Nagarahalli@arm.com \
    --cc=dts@dpdk.org \
    --cc=lijuan.tu@intel.com \
    --cc=weix.ling@intel.com \
    /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).