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 14E28A0547; Mon, 18 Jul 2022 04:55:13 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0C16B410E6; Mon, 18 Jul 2022 04:55:13 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 7F0044069F for ; Mon, 18 Jul 2022 04:55:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658112911; x=1689648911; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ruS5HvSMfIi1EMzUTSQ7K2t5Np+ORNKIw9rhvqdPRRM=; b=cIedPNuQQqeKlicCFHaRP3YHQ0Bt1lIjf0luDw/MRDntr7kDfX5HyCV/ GuwLRlJSsQSsIj9DaVGn0+CdNqH531DsegQP9+YawissuUjljFJgLAftP FXaQVqngzksgNh9Am4+xjP8syTgRrUcI+YE5k3X7ALVjQUHjXxqUoBopJ 2vbK9giN5vLthUD1exFd/Cfd6fvkeBJ1d7H2bgQrgw8qd1GsY4m6R/QFf CNfWN58OFyLrRfG2/jRlgCriyul8PU6+NvgIerROW6QnjEnHdzrixPAHL ULhux/UtbUb2hvInUU8YJWR3ilQc5SYIEI/7yXjDrhSXGYYaVdNJGlWkk g==; X-IronPort-AV: E=McAfee;i="6400,9594,10411"; a="286855704" X-IronPort-AV: E=Sophos;i="5.92,280,1650956400"; d="scan'208";a="286855704" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jul 2022 19:55:11 -0700 X-IronPort-AV: E=Sophos;i="5.92,280,1650956400"; d="scan'208";a="624542021" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jul 2022 19:55:09 -0700 From: Weiyuan Li To: dts@dpdk.org, yuan.peng@intel.com Cc: Weiyuan Li Subject: [dts][PATCH V1 07/12] tests/tx_preparation: update dts code for dpdk csum change Date: Mon, 18 Jul 2022 10:54:42 +0800 Message-Id: <20220718025447.13287-7-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220718025447.13287-1-weiyuanx.li@intel.com> References: <20220718025447.13287-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 --- 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..ac0680c6 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 = "23:00:00:00:00:00" 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.27.0