test suite reviews and discussions
 help / color / Atom feed
* [dts] [PATCH V1 0/1] framework/trex: ignore trex default dst mac setting
@ 2019-09-06  6:59 yufengmx
  2019-09-06  6:59 ` [dts] [PATCH V1 1/1] " yufengmx
  0 siblings, 1 reply; 3+ messages in thread
From: yufengmx @ 2019-09-06  6:59 UTC (permalink / raw)
  To: dts, yinan.wang, zhaoyan.chen, lihongx.ma; +Cc: yufengmx

set trex stream mac_dst_override_mode flag to be a STLStreamDstMAC_PKT status to avoid dst mac changed. 

yufengmx (1):
  framework/trex: ignore trex default dst mac setting

 framework/pktgen_trex.py | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

-- 
2.21.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [dts] [PATCH V1 1/1] framework/trex: ignore trex default dst mac setting
  2019-09-06  6:59 [dts] [PATCH V1 0/1] framework/trex: ignore trex default dst mac setting yufengmx
@ 2019-09-06  6:59 ` " yufengmx
  2019-09-18 10:27   ` Tu, Lijuan
  0 siblings, 1 reply; 3+ messages in thread
From: yufengmx @ 2019-09-06  6:59 UTC (permalink / raw)
  To: dts, yinan.wang, zhaoyan.chen, lihongx.ma; +Cc: yufengmx


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@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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dts] [PATCH V1 1/1] framework/trex: ignore trex default dst mac setting
  2019-09-06  6:59 ` [dts] [PATCH V1 1/1] " yufengmx
@ 2019-09-18 10:27   ` Tu, Lijuan
  0 siblings, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2019-09-18 10:27 UTC (permalink / raw)
  To: Mo, YufengX, dts, Wang, Yinan, Chen, Zhaoyan, Ma, LihongX; +Cc: Mo, YufengX

Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of yufengmx
> Sent: Friday, September 6, 2019 2:59 PM
> To: dts@dpdk.org; Wang, Yinan <yinan.wang@intel.com>; Chen, Zhaoyan
> <zhaoyan.chen@intel.com>; Ma, LihongX <lihongx.ma@intel.com>
> Cc: Mo, YufengX <yufengx.mo@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@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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-06  6:59 [dts] [PATCH V1 0/1] framework/trex: ignore trex default dst mac setting yufengmx
2019-09-06  6:59 ` [dts] [PATCH V1 1/1] " yufengmx
2019-09-18 10:27   ` Tu, Lijuan

test suite reviews and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/ public-inbox