From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id CC64FA0551; Fri, 26 Aug 2022 04:43:21 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C8299427F7; Fri, 26 Aug 2022 04:43:21 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 6EE15400D6 for ; Fri, 26 Aug 2022 04:43:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661481800; x=1693017800; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=PBgT5og1jhJ87fPtzaoHx7w2vKQ3t4tivSyoszY6wMo=; b=DhbRKmIwsHtEK1ivI7szA5kItkxYIxNKroG687JbSfMVXfgpE13iyIw7 MT7oGW+ZgVYBPQNEaZBeqMRiRFTk9M6zJeKtE99OiX4yQVY1waINpyRER XOQxNqhUb7sfATp/68kkDzumrVAHK86zo10ijk7qbSx7AAamLQ2YQ/Qmu +1De2/peWD/tNB+oLYUHlpT7MH518+n+ETejfZ/pD9gXUcspwMQajF50P UdPdfH6UiGLu9Ardf2Z1SHaFYGKyMi0dwnfnycVwpK6zX9fTlZpNHYddT CK+OrMSek2/3bhnTVo+hU+ajWf+YgRtD9VV2nLA5neO+VtTC2MIx9LtiR Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10450"; a="295187371" X-IronPort-AV: E=Sophos;i="5.93,264,1654585200"; d="scan'208";a="295187371" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2022 19:43:20 -0700 X-IronPort-AV: E=Sophos;i="5.93,264,1654585200"; d="scan'208";a="671275231" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2022 19:43:18 -0700 From: Weiyuan Li To: dts@dpdk.org Cc: Weiyuan Li , Jiale Song Subject: [dts][PATCH V2 09/10] tests/tx_preparation: update dts code for dpdk csum change Date: Fri, 26 Aug 2022 10:43:07 +0800 Message-Id: <20220826024308.17447-9-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220826024308.17447-1-weiyuanx.li@intel.com> References: <20220826024308.17447-1-weiyuanx.li@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 According to dpdk commit 9b4ea7ae77fa(app/testpmd: revert MAC update in checksum forwarding) modify the script adapt to this chagne. 1. Modify VF case to enable promisc. 2. Modify PF case to send packet dst mac is random. Signed-off-by: Weiyuan Li --- Tested-by: Jiale Song < songx.jiale@intel.com> tests/TestSuite_tx_preparation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_tx_preparation.py b/tests/TestSuite_tx_preparation.py index 9b70699c..c3e90f72 100644 --- a/tests/TestSuite_tx_preparation.py +++ b/tests/TestSuite_tx_preparation.py @@ -73,7 +73,7 @@ class TestTX_preparation(TestCase): " --portmask=1 --port-topology=chained --max-pkt-len=%s --tx-offloads=0x8000" % Max_mtu, ) - self.dmac = self.dut_testpmd.get_port_mac(0) + self.dmac = "00:11:22:33:44:55" self.dut_testpmd.execute_cmd("set fwd csum") self.dut_testpmd.execute_cmd("set verbose 1") # enable ip/udp/tcp hardware checksum @@ -84,7 +84,7 @@ class TestTX_preparation(TestCase): def start_tcpdump(self, rxItf): # only sniff form dut packet and filter lldp packet - param = "ether[12:2]!=0x88cc and ether src %s" % self.dmac + param = "ether[12:2]!=0x88cc and ether dst %s -Q in" % self.dmac self.tester.send_expect("rm -rf ./getPackageByTcpdump.cap", "#") self.tester.send_expect( "tcpdump %s -i %s -n -e -vv -w\ -- 2.25.1