test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Tu, Lijuan" <lijuan.tu@intel.com>
To: "dts@dpdk.org" <dts@dpdk.org>
Subject: Re: [dts] [PATCH] framework/pktgen_ixia: enable mac continue from last value
Date: Sat, 15 Feb 2020 10:22:06 +0000	[thread overview]
Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBC8549@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <1581704209-163164-1-git-send-email-lijuan.tu@intel.com>

Applied, thanks

> -----Original Message-----
> From: Tu, Lijuan
> Sent: Saturday, February 15, 2020 2:17 AM
> To: dts@dpdk.org
> Cc: Tu, Lijuan <lijuan.tu@intel.com>
> Subject: [dts] [PATCH] framework/pktgen_ixia: enable mac continue from
> last value
> 
> * 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


      reply	other threads:[~2020-02-15 10:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-14 18:16 Lijuan Tu
2020-02-15 10:22 ` Tu, Lijuan [this message]

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=8CE3E05A3F976642AAB0F4675D0AD20E0BBC8549@SHSMSX101.ccr.corp.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).