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

Message ID 20230607144229.585662-1-songx.jiale@intel.com (mailing list archive)
State Accepted
Headers
Series [V1] tests/ip_pipeline: optimize scripts to support ICE NIC |

Checks

Context Check Description
ci/Intel-dts-format-test success Testing OK
ci/Intel-dts-pylama-test success Testing OK
ci/Intel-dts-suite-test warning SKIPPED

Commit Message

Jiale Song June 7, 2023, 2:42 p.m. UTC
  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@intel.com>
---
 tests/TestSuite_ip_pipeline.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Comments

Tu, Lijuan June 7, 2023, 8 a.m. UTC | #1
On Wed,  7 Jun 2023 22:42:28 +0800, Jiale Song <songx.jiale@intel.com> wrote:
> 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@intel.com>


Applied, thanks
  

Patch

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)