From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id A03F22BB1 for ; Mon, 27 Feb 2017 02:12:33 +0100 (CET) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Feb 2017 17:12:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,211,1484035200"; d="scan'208";a="69854371" Received: from stv-crb-56.sh.intel.com (HELO [10.239.128.116]) ([10.239.128.116]) by fmsmga005.fm.intel.com with ESMTP; 26 Feb 2017 17:12:31 -0800 Message-ID: <58B37B41.4090902@intel.com> Date: Mon, 27 Feb 2017 09:05:05 +0800 From: "Liu, Yong" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Xueqin Lin , dts@dpdk.org References: <1487734450-23872-1-git-send-email-xueqin.lin@intel.com> In-Reply-To: <1487734450-23872-1-git-send-email-xueqin.lin@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dts] [PATCH] VF daemon DPDK PF+DPDK VF test suite X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Feb 2017 01:12:34 -0000 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()