[dts] [PATCH V1 1/1] framework/trex: ignore trex default dst mac setting
Tu, Lijuan
lijuan.tu at intel.com
Wed Sep 18 12:27:40 CEST 2019
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of yufengmx
> Sent: Friday, September 6, 2019 2:59 PM
> To: dts at dpdk.org; Wang, Yinan <yinan.wang at intel.com>; Chen, Zhaoyan
> <zhaoyan.chen at intel.com>; Ma, LihongX <lihongx.ma at intel.com>
> Cc: Mo, YufengX <yufengx.mo at intel.com>
> Subject: [dts] [PATCH V1 1/1] framework/trex: ignore trex default dst mac
> setting
>
>
> set trex stream mac_dst_override_mode flag to be a STLStreamDstMAC_PKT
> status to avoid dst mac changed.
>
> Signed-off-by: yufengmx <yufengx.mo at intel.com>
> ---
> 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
More information about the dts
mailing list