From: Lijuan Tu <lijuan.tu@intel.com>
To: dts@dpdk.org
Cc: Lijuan Tu <lijuan.tu@intel.com>
Subject: [dts] [PATCH] framework/pktgen_ixia: enable mac continue from last value
Date: Sat, 15 Feb 2020 02:16:49 +0800 [thread overview]
Message-ID: <1581704209-163164-1-git-send-email-lijuan.tu@intel.com> (raw)
* enable dst/src mac continue from last value
because mac will always be start_mac if disable this option.
* fix the last stream judging condition.
Signed-off-by: Lijuan Tu <lijuan.tu@intel.com>
---
framework/pktgen_ixia.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/framework/pktgen_ixia.py b/framework/pktgen_ixia.py
index 937e219..80c5cb5 100644
--- a/framework/pktgen_ixia.py
+++ b/framework/pktgen_ixia.py
@@ -209,6 +209,11 @@ class Ixia(SSHConnection):
prefix, mac_start))
if step:
cmds.append('stream config -{0}Step {1}'.format(prefix, step))
+ # if not enable ContinueFromLastValue, the mac will always be start_mac
+ if prefix == 'sa':
+ cmds.append('stream config -enableSaContinueFromLastValue true')
+ elif prefix == 'da':
+ cmds.append('stream config -enableDaContinueFromLastValue true')
if action:
cmds.append('stream config -{0}RepeatCounter {1}'.format(
prefix, addr_mode.get(action)))
@@ -513,7 +518,7 @@ class Ixia(SSHConnection):
break
# set commands at last stream
- if stream_id > 1:
+ if stream_id >= self.stream_total[port_index]:
self.add_tcl_cmd("stream config -dma gotoFirst")
self.add_tcl_cmd("stream set %s %d" % (ixia_port, stream_id))
--
1.8.3.1
next reply other threads:[~2020-02-14 10:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-14 18:16 Lijuan Tu [this message]
2020-02-15 10:22 ` Tu, Lijuan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1581704209-163164-1-git-send-email-lijuan.tu@intel.com \
--to=lijuan.tu@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).