[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
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
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
@@ -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)