From patchwork Wed Jun 7 14:42:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 128271 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 70A4842C4A; Wed, 7 Jun 2023 08:30:09 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6C36B410FC; Wed, 7 Jun 2023 08:30:09 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id C1C1440A84 for ; Wed, 7 Jun 2023 08:30:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686119408; x=1717655408; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=eLwyjCsO7v8h2Qylecb+S/KUhYhviwmuDLMxbZRa2Vc=; b=Kwf0s+7kQyf/2y6XPkHLRE4iv6TrmRJRO3CMTdJjf4ZLELPN5IkgDbH6 j+thpZz82YCo4bUtNKw5qFNbq9NsXegZ977g/P4rp6Mh0yDvKjCP3Pp0R ViVRsmxagL5FCtebJLSc851zgCaEilnupMupxOXvU9hNpYgeoHWahScOV 6+ObC2Wa9t9/Ij2RFRJr05jSK2hGMKDOzJgWyHAodWxCiEkQbcQZSHlg8 oslL3rJ8aKM12RH4yovhUrmMCGH5HQB1ASEDeHbMmJbUFTxY4ueLOw08/ SiHFCBgFnY9ZwUEazk2NIvdHYIYAZDa9ksM3crIcSm4iBznf5XDfCNScm A==; X-IronPort-AV: E=McAfee;i="6600,9927,10733"; a="337261668" X-IronPort-AV: E=Sophos;i="6.00,223,1681196400"; d="scan'208";a="337261668" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2023 23:30:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10733"; a="686810424" X-IronPort-AV: E=Sophos;i="6.00,223,1681196400"; d="scan'208";a="686810424" Received: from unknown (HELO dpdk.sh.intel.com) ([10.239.252.241]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2023 23:30:04 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V1] tests/ip_pipeline: optimize scripts to support ICE NIC Date: Wed, 7 Jun 2023 22:42:28 +0800 Message-Id: <20230607144229.585662-1-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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 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 --- 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)