From: "Tu, Lijuan" <lijuan.tu@intel.com>
To: "Zhao, MeijuanX" <meijuanx.zhao@intel.com>,
"dts@dpdk.org" <dts@dpdk.org>
Cc: "Zhao, MeijuanX" <meijuanx.zhao@intel.com>
Subject: Re: [dts] [PATCH V1] tests/vf daemon : add fake mac in different dpdk file
Date: Wed, 30 Jan 2019 03:33:02 +0000 [thread overview]
Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BA1ECBE@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <1548217937-22095-1-git-send-email-meijuanx.zhao@intel.com>
Applied, but prefer to not change any dpdk code.
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of zhao,meijuan
> Sent: Wednesday, January 23, 2019 12:32 PM
> To: dts@dpdk.org
> Cc: Zhao, MeijuanX <meijuanx.zhao@intel.com>
> Subject: [dts] [PATCH V1] tests/vf daemon : add fake mac in different dpdk file
>
> due to dpdk move macswap workload, so we need to add fack mac in different
> dpdk file, you refer to dpdk commit a825afdbb
>
> Signed-off-by: zhao,meijuan <meijuanx.zhao@intel.com>
> ---
> tests/TestSuite_vf_daemon.py | 21 +++++++++------------
> 1 file changed, 9 insertions(+), 12 deletions(-)
>
> diff --git a/tests/TestSuite_vf_daemon.py b/tests/TestSuite_vf_daemon.py
> index 42a14e5..2a8baf8 100644
> --- a/tests/TestSuite_vf_daemon.py
> +++ b/tests/TestSuite_vf_daemon.py
> @@ -486,13 +486,12 @@ class Testvf_daemon(TestCase):
> """
> fake_mac = '00:11:22:33:44:55'
> time.sleep(5)
> - self.vm0_dut.send_expect("sed -i -e '/uint64_t ol_flags = 0;/a " +\
> - "\struct ether_addr fake_mac = {.addr_bytes = {0x00, 0x11, 0x22, 0x33,
> 0x44, 0x55},};'" +\
> - " app/test-pmd/macswap.c", "# ", 30)
> - self.vm0_dut.send_expect("sed -i -e '/ether_addr_copy(&addr, ð_hdr-
> >s_addr);/d' " +\
> - " app/test-pmd/macswap.c", "# ", 30)
> - self.vm0_dut.send_expect("sed -i -e '/ether_addr_copy(ð_hdr->s_addr,
> ð_hdr->d_addr);/a " +\
> - "\ether_addr_copy(&fake_mac, ð_hdr->s_addr);' app/test-
> pmd/macswap.c", "# ", 30)
> + self.vm0_dut.send_expect("sed -i -e '/int r;/a " +\
> + "\ struct ether_addr fake_mac = {.addr_bytes = {0x00, 0x11, 0x22,
> 0x33, 0x44, 0x55},};'" +\
> + " app/test-pmd/macswap_sse.h", "# ", 30)
> + line_num = self.vm0_dut.send_expect("sed -n '/_mm_storeu_si128/='
> app/test-pmd/macswap_sse.h |sed -n 5p", "# ",30)
> + self.vm0_dut.send_expect("sed -i -e '%sa\ether_addr_copy(&fake_mac,
> ð_hdr[0]->s_addr);'" % str(line_num)+\
> + " app/test-pmd/macswap_sse.h", "# ", 30)
> time.sleep(3)
>
> self.vm0_dut.build_install_dpdk(self.target)
> @@ -527,11 +526,9 @@ class Testvf_daemon(TestCase):
> self.vm0_testpmd.quit()
> self.dut_testpmd.quit()
> self.vm0_dut.send_expect("sed -i '/struct ether_addr fake_mac =
> {.addr_bytes = " +\
> - "{0x00, 0x11, 0x22, 0x33, 0x44, 0x55},};/d' app/test-pmd/macswap.c",
> "# ", 30)
> - self.vm0_dut.send_expect("sed -i '/ether_addr_copy(&fake_mac,
> ð_hdr->s_addr);/d' " +\
> - "app/test-pmd/macswap.c", "# ", 30)
> - self.vm0_dut.send_expect("sed -i '/ether_addr_copy(ð_hdr->s_addr,
> ð_hdr->d_addr);/a " +\
> - "\ether_addr_copy(&addr, ð_hdr->s_addr);' app/test-
> pmd/macswap.c", "# ", 30)
> + "{0x00, 0x11, 0x22, 0x33, 0x44, 0x55},};/d' app/test-
> pmd/macswap_sse.h", "# ", 30)
> + self.vm0_dut.send_expect("sed -i '%sd'" % line_num +\
> + " app/test-pmd/macswap_sse.h", "# ", 30)
> self.vm0_dut.build_install_dpdk(self.target)
>
>
> --
> 2.17.2
prev parent reply other threads:[~2019-01-30 3:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-23 4:32 zhao,meijuan
2019-01-23 8:39 ` Zhu, WenhuiX
2019-01-30 3:33 ` Tu, Lijuan [this message]
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=8CE3E05A3F976642AAB0F4675D0AD20E0BA1ECBE@SHSMSX101.ccr.corp.intel.com \
--to=lijuan.tu@intel.com \
--cc=dts@dpdk.org \
--cc=meijuanx.zhao@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).