From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5611BA2EDB for ; Fri, 6 Sep 2019 08:57:52 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3E0971F15B; Fri, 6 Sep 2019 08:57:52 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 233351F04E for ; Fri, 6 Sep 2019 08:57:50 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Sep 2019 23:57:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,472,1559545200"; d="scan'208";a="183059647" Received: from dpdk-moyufen06.sh.intel.com ([10.67.117.220]) by fmsmga008.fm.intel.com with ESMTP; 05 Sep 2019 23:57:49 -0700 From: yufengmx To: dts@dpdk.org, yinan.wang@intel.com, zhaoyan.chen@intel.com, lihongx.ma@intel.com Cc: yufengmx Date: Fri, 6 Sep 2019 14:59:09 +0800 Message-Id: <20190906065909.11717-2-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190906065909.11717-1-yufengx.mo@intel.com> References: <20190906065909.11717-1-yufengx.mo@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1 1/1] framework/trex: ignore trex default dst mac setting X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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" set trex stream mac_dst_override_mode flag to be a STLStreamDstMAC_PKT status to avoid dst mac changed. Signed-off-by: yufengmx --- framework/pktgen_trex.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/framework/pktgen_trex.py b/framework/pktgen_trex.py index 159750e..c6c904b 100644 --- a/framework/pktgen_trex.py +++ b/framework/pktgen_trex.py @@ -221,7 +221,8 @@ class TrexConfigStream(object): from trex_stl_lib.api import ( STLTXCont, STLTXSingleBurst, STLTXMultiBurst, STLPktBuilder, STLProfile, STLVM, - STLStream, STLFlowLatencyStats) + STLStream, STLStreamDstMAC_PKT, + STLFlowLatencyStats) # set trex class self.STLStream = STLStream @@ -232,6 +233,7 @@ class TrexConfigStream(object): self.STLTXSingleBurst = STLTXSingleBurst self.STLTXMultiBurst = STLTXMultiBurst self.STLFlowLatencyStats = STLFlowLatencyStats + self.STLStreamDstMAC_PKT = STLStreamDstMAC_PKT def _set_var_default_value(self, config): default = { @@ -332,8 +334,10 @@ class TrexConfigStream(object): raise Exception(msg) pkt = self.STLPktBuilder(pkt=_pkt, vm=vm) - _stream = self.STLStream(packet=pkt, mode=mode_inst, isg=isg, - flow_stats=flow_stats) + _stream = self.STLStream( + packet=pkt, mode=mode_inst, isg=isg, + flow_stats=flow_stats, + mac_dst_override_mode=self.STLStreamDstMAC_PKT) return _stream -- 2.21.0