test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Liu, Yong" <yong.liu@intel.com>
To: Xueqin Lin <xueqin.lin@intel.com>, dts@dpdk.org
Subject: Re: [dts] [PATCH] VF daemon DPDK PF+DPDK VF test suite
Date: Mon, 27 Feb 2017 09:05:05 +0800	[thread overview]
Message-ID: <58B37B41.4090902@intel.com> (raw)
In-Reply-To: <1487734450-23872-1-git-send-email-xueqin.lin@intel.com>

Xueqin, could you try transmit and sniff function in packet module? It 
will be helpful in parallel mode.

Thanks,
Marvin

On 02/22/2017 11:34 AM, Xueqin Lin wrote:
> +    def vlan_send_packet(self, dst_mac, vlan_id = 0, length = 'default', num = 1):
> +        """
> +        Send packet to portid
> +        """
> +        self.start_tcpdump(self.tester_intf)
> +        vlanString = 'p = [Ether(dst="%s")/' % dst_mac
> +        if vlan_id != 0:
> +            vlanString += "Dot1Q(id=0x8100,vlan=%s)/" % vlan_id
> +        if length == 'default':
> +            vlanString += 'IP(len=46)]'
> +        else:
> +            vlanString += 'IP(len=46)/Raw(load="P"*%s)]' %length
> +        self.tester.scapy_append(vlanString)
> +        SendString = 'sendp(p, iface="%s", count=%s)'% (self.tester_intf, num)
> +        self.tester.scapy_append(SendString)
> +        self.tester.scapy_execute()

  reply	other threads:[~2017-02-27  1:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <yong.liu@intel.com>
2017-02-22  3:34 ` Xueqin Lin
2017-02-27  1:05   ` Liu, Yong [this message]
2017-03-09  0:14 [dts] [PATCH] VF daemon DPDK PF + DPDK " Xueqin Lin
2017-03-09  6:41 ` Liu, Yong

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=58B37B41.4090902@intel.com \
    --to=yong.liu@intel.com \
    --cc=dts@dpdk.org \
    --cc=xueqin.lin@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).