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 610C4A0564; Fri, 12 Mar 2021 03:17:37 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 367C24067E; Fri, 12 Mar 2021 03:17:37 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id DD5434014D for ; Fri, 12 Mar 2021 03:17:35 +0100 (CET) IronPort-SDR: gUgAF6+qiWZIZ0UtBjVHl2CkfQWEqHuxltAE5wQk+FnWWeWJeJnITjzKdH5a44LXbE1jMgHbcg ykSk+WQAmekQ== X-IronPort-AV: E=McAfee;i="6000,8403,9920"; a="188135274" X-IronPort-AV: E=Sophos;i="5.81,241,1610438400"; d="scan'208";a="188135274" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Mar 2021 18:17:32 -0800 IronPort-SDR: ZuTN9az/zbumhwtJGEPYbiZ0UixC84e7RTW9m8bNGr/I7uIl+UXuzHyd9o0bfS1iOiMUgtqqKq wUMtjjKFMNgA== X-IronPort-AV: E=Sophos;i="5.81,241,1610438400"; d="scan'208";a="410840757" Received: from unknown (HELO cvl_100g_103.icx.intel.com) ([10.240.183.103]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Mar 2021 18:17:30 -0800 From: xiewei To: dts@dpdk.org Cc: xiewei Date: Fri, 12 Mar 2021 18:43:16 +0800 Message-Id: <20210312104316.16332-1-weix.xie@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] tests/softnic: set mac mode for CVL nic 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 Sender: "dts" if don't set fwd mode, it is io fwd by default. but for CVL nic, if the dst mac of send packet is its own, the packet cannot be forwarded, so the packet can't be captured by tcpdump. so set mac mode for CVL nic. Signed-off-by: xiewei --- tests/TestSuite_softnic.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/TestSuite_softnic.py b/tests/TestSuite_softnic.py index 0795b45c..e4934ffe 100644 --- a/tests/TestSuite_softnic.py +++ b/tests/TestSuite_softnic.py @@ -174,6 +174,8 @@ class TestSoftnic(TestCase): self.pmdout.start_testpmd(list(range(3)), "--forward-mode=softnic --portmask=0x2", eal_param="-s 0x4 %s --vdev 'net_softnic0,firmware=/tmp/%s,cpu_id=1,conn_port=8086'" % ( self.eal_param, 'nat_firmware.cli')) + if self.nic in ["columbiaville_100g", "columbiaville_25g", "columbiaville_25gx2"]: + self.dut.send_expect("set fwd mac", "testpmd>") self.dut.send_expect("start", "testpmd>") # src ip tcp for j in range(2): -- 2.17.1