test suite reviews and discussions
 help / color / Atom feed
* [dts] [PATCH V1] framework/pktgen_trex: reset traffic ports list when set new stream
@ 2019-12-24 19:08 lihong
  2019-12-25  7:56 ` Ma, LihongX
  2019-12-27  6:33 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: lihong @ 2019-12-24 19:08 UTC (permalink / raw)
  To: dts; +Cc: lihong

if use one port to transfer pkts after use multiple ports, the value
self._traffic_ports also have multiple port info in it, so reset the
value when add new stream to port.

Signed-off-by: lihong <lihongx.ma@intel.com>
---
 framework/pktgen_trex.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/framework/pktgen_trex.py b/framework/pktgen_trex.py
index 690d070..9e054f3 100644
--- a/framework/pktgen_trex.py
+++ b/framework/pktgen_trex.py
@@ -723,6 +723,7 @@ class TrexPacketGenerator(PacketGenerator):
     def _prepare_transmission(self, stream_ids=[], latency=False):
         ''' add one/multiple streams in one/multiple ports '''
         port_config = {}
+        self._traffic_ports = []
         for stream_id in stream_ids:
             stream = self._get_stream(stream_id)
             tx_port = stream['tx_port']
-- 
2.7.4


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

* Re: [dts] [PATCH V1] framework/pktgen_trex: reset traffic ports list when set new stream
  2019-12-24 19:08 [dts] [PATCH V1] framework/pktgen_trex: reset traffic ports list when set new stream lihong
@ 2019-12-25  7:56 ` Ma, LihongX
  2019-12-27  6:33 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Ma, LihongX @ 2019-12-25  7:56 UTC (permalink / raw)
  To: dts

Tested-by:ma,lihong<lihongx.ma@intel.com>

-----Original Message-----
From: Ma, LihongX 
Sent: Wednesday, December 25, 2019 3:09 AM
To: dts@dpdk.org
Cc: Ma, LihongX <lihongx.ma@intel.com>
Subject: [dts][PATCH V1] framework/pktgen_trex: reset traffic ports list when set new stream

if use one port to transfer pkts after use multiple ports, the value self._traffic_ports also have multiple port info in it, so reset the value when add new stream to port.

Signed-off-by: lihong <lihongx.ma@intel.com>
---
 framework/pktgen_trex.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/framework/pktgen_trex.py b/framework/pktgen_trex.py index 690d070..9e054f3 100644
--- a/framework/pktgen_trex.py
+++ b/framework/pktgen_trex.py
@@ -723,6 +723,7 @@ class TrexPacketGenerator(PacketGenerator):
     def _prepare_transmission(self, stream_ids=[], latency=False):
         ''' add one/multiple streams in one/multiple ports '''
         port_config = {}
+        self._traffic_ports = []
         for stream_id in stream_ids:
             stream = self._get_stream(stream_id)
             tx_port = stream['tx_port']
--
2.7.4


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

* Re: [dts] [PATCH V1] framework/pktgen_trex: reset traffic ports list when set new stream
  2019-12-24 19:08 [dts] [PATCH V1] framework/pktgen_trex: reset traffic ports list when set new stream lihong
  2019-12-25  7:56 ` Ma, LihongX
@ 2019-12-27  6:33 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2019-12-27  6:33 UTC (permalink / raw)
  To: Ma, LihongX, dts; +Cc: Ma, LihongX

Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lihong
> Sent: Wednesday, December 25, 2019 3:09 AM
> To: dts@dpdk.org
> Cc: Ma, LihongX <lihongx.ma@intel.com>
> Subject: [dts] [PATCH V1] framework/pktgen_trex: reset traffic ports list
> when set new stream
> 
> if use one port to transfer pkts after use multiple ports, the value
> self._traffic_ports also have multiple port info in it, so reset the value when
> add new stream to port.
> 
> Signed-off-by: lihong <lihongx.ma@intel.com>
> ---
>  framework/pktgen_trex.py | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/framework/pktgen_trex.py b/framework/pktgen_trex.py index
> 690d070..9e054f3 100644
> --- a/framework/pktgen_trex.py
> +++ b/framework/pktgen_trex.py
> @@ -723,6 +723,7 @@ class TrexPacketGenerator(PacketGenerator):
>      def _prepare_transmission(self, stream_ids=[], latency=False):
>          ''' add one/multiple streams in one/multiple ports '''
>          port_config = {}
> +        self._traffic_ports = []
>          for stream_id in stream_ids:
>              stream = self._get_stream(stream_id)
>              tx_port = stream['tx_port']
> --
> 2.7.4


^ 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-12-24 19:08 [dts] [PATCH V1] framework/pktgen_trex: reset traffic ports list when set new stream lihong
2019-12-25  7:56 ` Ma, LihongX
2019-12-27  6:33 ` 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