[dts] [PATCH V1] tests/ip_pipeline: optimize scripts to support ICE NIC

Jiale Song songx.jiale at intel.com
Wed Jun 7 16:42:28 CEST 2023


the pf of ICE NIC will not forward packets whose destination mac is its
own mac address, so it is necessary to modify the destination mac of the
packets.

Signed-off-by: Jiale Song <songx.jiale at intel.com>
---
 tests/TestSuite_ip_pipeline.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_ip_pipeline.py b/tests/TestSuite_ip_pipeline.py
index c28622cd..58c80034 100644
--- a/tests/TestSuite_ip_pipeline.py
+++ b/tests/TestSuite_ip_pipeline.py
@@ -294,7 +294,7 @@ class TestIPPipeline(TestCase):
         # rule 0 test
         pcap_file = "/tmp/fw_0.pcap"
         pkt = [
-            Ether(dst=self.dut_p0_mac)
+            Ether(dst="00:11:22:33:44:55")
             / IP(dst="100.0.0.1")
             / TCP(sport=100, dport=200)
             / Raw(load="X" * 6)
@@ -394,7 +394,7 @@ class TestIPPipeline(TestCase):
         # rule 0 test
         pcap_file = "/tmp/fl_0.pcap"
         pkt = [
-            Ether(dst=self.dut_p0_mac)
+            Ether(dst="00:11:22:33:44:55")
             / IP(src="100.0.0.10", dst="200.0.0.10")
             / TCP(sport=100, dport=200)
             / Raw(load="X" * 6)
-- 
2.25.1



More information about the dts mailing list