[dts] [PATCH V1] tests/vf_daemon: add rte prefix to ether structures

lihong lihongx.ma at intel.com
Fri May 31 02:21:05 CEST 2019


As dpdk commit: 6d13ea8e8e49ab9, add 'rte_' prefix to structures ether_addr;
so change our code related it.

Signed-off-by: lihong <lihongx.ma at intel.com>
---
 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, &eth_hdr[0]->s_addr);'" % str(line_num)+\
+        self.vm0_dut.send_expect("sed -i -e '%sa\\rte_ether_addr_copy(&fake_mac, &eth_hdr[0]->s_addr);'" % str(line_num)+\
                     " app/test-pmd/macswap_sse.h", "# ", 30)
         time.sleep(3)
 
-- 
2.7.4



More information about the dts mailing list