test suite reviews and discussions
 help / color / Atom feed
* [dts] [PATCH V1] framework/pktgen_trex: set core_mask length same with ports list length
@ 2020-01-06  1:12 lihong
  2020-01-06  8:40 ` Ma, LihongX
  2020-01-06  8:57 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: lihong @ 2020-01-06  1:12 UTC (permalink / raw)
  To: dts; +Cc: lihong

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

diff --git a/framework/pktgen_trex.py b/framework/pktgen_trex.py
index 2ff5894..705d8f5 100644
--- a/framework/pktgen_trex.py
+++ b/framework/pktgen_trex.py
@@ -793,11 +793,13 @@ class TrexPacketGenerator(PacketGenerator):
         try:
             # clear the stats before injecting
             self._conn.clear_stats()
+            # 'core_mask' list must be the same length as 'ports' list
+            core_mask = self.core_mask[:len(self._traffic_ports)]
             # Start traffic on port(s)
             run_opt = {
                 'ports':    self._traffic_ports,
                 'mult':     rate_percent,
-                'core_mask': self.core_mask,
+                'core_mask': core_mask,
                 'force':    True,}
             self.logger.info("begin traffic ......")
             self.logger.debug(run_opt)
-- 
2.7.4


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

* Re: [dts] [PATCH V1] framework/pktgen_trex: set core_mask length same with ports list length
  2020-01-06  1:12 [dts] [PATCH V1] framework/pktgen_trex: set core_mask length same with ports list length lihong
@ 2020-01-06  8:40 ` Ma, LihongX
  2020-01-06  8:57 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Ma, LihongX @ 2020-01-06  8:40 UTC (permalink / raw)
  To: dts

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

-----Original Message-----
From: Ma, LihongX 
Sent: Monday, January 6, 2020 9:13 AM
To: dts@dpdk.org
Cc: Ma, LihongX <lihongx.ma@intel.com>
Subject: [dts][PATCH V1] framework/pktgen_trex: set core_mask length same with ports list length

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

diff --git a/framework/pktgen_trex.py b/framework/pktgen_trex.py index 2ff5894..705d8f5 100644
--- a/framework/pktgen_trex.py
+++ b/framework/pktgen_trex.py
@@ -793,11 +793,13 @@ class TrexPacketGenerator(PacketGenerator):
         try:
             # clear the stats before injecting
             self._conn.clear_stats()
+            # 'core_mask' list must be the same length as 'ports' list
+            core_mask = self.core_mask[:len(self._traffic_ports)]
             # Start traffic on port(s)
             run_opt = {
                 'ports':    self._traffic_ports,
                 'mult':     rate_percent,
-                'core_mask': self.core_mask,
+                'core_mask': core_mask,
                 'force':    True,}
             self.logger.info("begin traffic ......")
             self.logger.debug(run_opt)
--
2.7.4


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

* Re: [dts] [PATCH V1] framework/pktgen_trex: set core_mask length same with ports list length
  2020-01-06  1:12 [dts] [PATCH V1] framework/pktgen_trex: set core_mask length same with ports list length lihong
  2020-01-06  8:40 ` Ma, LihongX
@ 2020-01-06  8:57 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2020-01-06  8:57 UTC (permalink / raw)
  To: Ma, LihongX, dts; +Cc: Ma, LihongX

applied

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lihong
> Sent: Monday, January 6, 2020 9:13 AM
> To: dts@dpdk.org
> Cc: Ma, LihongX <lihongx.ma@intel.com>
> Subject: [dts] [PATCH V1] framework/pktgen_trex: set core_mask length
> same with ports list length
> 
> Signed-off-by: lihong <lihongx.ma@intel.com>
> ---
>  framework/pktgen_trex.py | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/framework/pktgen_trex.py b/framework/pktgen_trex.py index
> 2ff5894..705d8f5 100644
> --- a/framework/pktgen_trex.py
> +++ b/framework/pktgen_trex.py
> @@ -793,11 +793,13 @@ class TrexPacketGenerator(PacketGenerator):
>          try:
>              # clear the stats before injecting
>              self._conn.clear_stats()
> +            # 'core_mask' list must be the same length as 'ports' list
> +            core_mask = self.core_mask[:len(self._traffic_ports)]
>              # Start traffic on port(s)
>              run_opt = {
>                  'ports':    self._traffic_ports,
>                  'mult':     rate_percent,
> -                'core_mask': self.core_mask,
> +                'core_mask': core_mask,
>                  'force':    True,}
>              self.logger.info("begin traffic ......")
>              self.logger.debug(run_opt)
> --
> 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 --
2020-01-06  1:12 [dts] [PATCH V1] framework/pktgen_trex: set core_mask length same with ports list length lihong
2020-01-06  8:40 ` Ma, LihongX
2020-01-06  8:57 ` 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