From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id A5711A045E for ; Fri, 31 May 2019 11:32:21 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3BAFD1B945; Fri, 31 May 2019 11:32:21 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 99B304F91 for ; Fri, 31 May 2019 11:32:20 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 May 2019 02:32:19 -0700 X-ExtLoop1: 1 Received: from ubuntu.sh.intel.com ([10.67.118.150]) by orsmga003.jf.intel.com with ESMTP; 31 May 2019 02:32:18 -0700 From: lihong To: dts@dpdk.org Cc: yanx.a.zhang@intel.com, lihong Date: Fri, 31 May 2019 10:11:00 +0800 Message-Id: <1559268660-4748-1-git-send-email-lihongx.ma@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dts] [PATCH V2] tests/vf_daemon: add rte prefix to ether structures X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" As dpdk commit: 6d13ea8e8e49ab9, add 'rte_' prefix to structures ether_addr; so change our code related it. Signed-off-by: lihong --- tests/TestSuite_vf_daemon.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_vf_daemon.py b/tests/TestSuite_vf_daemon.py index 2d5c59f..cc55f65 100644 --- a/tests/TestSuite_vf_daemon.py +++ b/tests/TestSuite_vf_daemon.py @@ -487,10 +487,10 @@ class TestVfDaemon(TestCase): fake_mac = '00:11:22:33:44:55' time.sleep(5) self.vm0_dut.send_expect("sed -i -e '/int r;/a " +\ - "\ struct ether_addr fake_mac = {.addr_bytes = {0x00, 0x11, 0x22, 0x33, 0x44, 0x55},};'" +\ + "\ struct rte_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)+\ + self.vm0_dut.send_expect("sed -i -e '%sa\\rte_ether_addr_copy(&fake_mac, ð_hdr[0]->s_addr);'" % str(line_num)+\ " app/test-pmd/macswap_sse.h", "# ", 30) time.sleep(3) @@ -525,7 +525,7 @@ class TestVfDaemon(TestCase): self.vm0_testpmd.quit() self.dut_testpmd.quit() - self.vm0_dut.send_expect("sed -i '/struct ether_addr fake_mac = {.addr_bytes = " +\ + self.vm0_dut.send_expect("sed -i '/struct rte_ether_addr fake_mac = {.addr_bytes = " +\ "{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) -- 2.7.4