test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Liu, Yong" <yong.liu@intel.com>
To: Lijuan Tu <lijuanx.a.tu@intel.com>, dts@dpdk.org
Subject: Re: [dts] [PATCH V2]framework/tester.py: create packets length with protocol type
Date: Tue, 19 Jan 2016 09:49:25 +0800	[thread overview]
Message-ID: <569D9625.6020309@intel.com> (raw)
In-Reply-To: <1453166867-21674-1-git-send-email-lijuanx.a.tu@intel.com>

Applied. Thanks.

On 01/19/2016 09:27 AM, Lijuan Tu wrote:
> Signed-off-by: Lijuan Tu <lijuanx.a.tu@intel.com>
> ---
>   framework/tester.py | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/framework/tester.py b/framework/tester.py
> index c8cebd6..9906532 100644
> --- a/framework/tester.py
> +++ b/framework/tester.py
> @@ -485,6 +485,7 @@ class Tester(Crb):
>           pkts = []
>           # packet type random between tcp/udp/ipv6
>           random_type = ['TCP', 'UDP', 'IPv6_TCP', 'IPv6_UDP']
> +        pkt_minlen = {'TCP': 64, 'UDP': 64, 'IPv6_TCP': 74, 'IPv6_UDP': 64}
>           # at least wait 2 seconds
>           timeout = int(pktnum * (interval + 0.01)) + 2
>           for txport, rxport in portList:
> @@ -494,7 +495,7 @@ class Tester(Crb):
>                   # chose random packet
>                   pkt_type = random.choice(random_type)
>                   pkt = pkt_c(pkt_type=pkt_type,
> -                            pkt_len=random.randint(64, 1514),
> +                            pkt_len=random.randint(pkt_minlen[pkt_type], 1514),
>                               ran_payload=True)
>                   # config packet if has parameters
>                   if params and len(portList) == len(params):

      reply	other threads:[~2016-01-19  1:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-19  1:27 Lijuan Tu
2016-01-19  1:49 ` Liu, Yong [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=569D9625.6020309@intel.com \
    --to=yong.liu@intel.com \
    --cc=dts@dpdk.org \
    --cc=lijuanx.a.tu@intel.com \
    /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).