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 04226A045E for ; Fri, 31 May 2019 09:42:27 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BCC842C55; Fri, 31 May 2019 09:42:26 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 654B99E4 for ; Fri, 31 May 2019 09:42:25 +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 fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 May 2019 00:42:24 -0700 X-ExtLoop1: 1 Received: from ubuntu.sh.intel.com ([10.67.118.150]) by orsmga003.jf.intel.com with ESMTP; 31 May 2019 00:42:23 -0700 From: lihong To: dts@dpdk.org Cc: lihong Date: Fri, 31 May 2019 08:21:05 +0800 Message-Id: <1559262065-3015-1-git-send-email-lihongx.ma@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dts] [PATCH V1] 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_vf_daemon.py b/tests/TestSuite_vf_daemon.py index 2d5c59f..6d8de0d 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) -- 2.7.4