From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 4DEE7378E for ; Mon, 28 Aug 2017 03:05:03 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Aug 2017 18:05:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,439,1498546800"; d="scan'208";a="128800669" Received: from dpdk-test32.sh.intel.com (HELO [10.67.119.120]) ([10.67.119.120]) by orsmga002.jf.intel.com with ESMTP; 27 Aug 2017 18:05:01 -0700 Message-ID: <59A3E6E9.4090800@intel.com> Date: Mon, 28 Aug 2017 17:48:25 +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: Fangfang Wei , dts@dpdk.org References: <1503652743-92955-1-git-send-email-fangfangx.wei@intel.com> In-Reply-To: <1503652743-92955-1-git-send-email-fangfangx.wei@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dts] [PATCH V1] tests/sriov_kvm: fix can't receive packets failure 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, 28 Aug 2017 01:05:03 -0000 Fangfang, Please make your description more clear, which kind of buffer will be full in which kind of situation? Thanks, Marvin On 08/25/2017 05:19 PM, Fangfang Wei wrote: > Fix DPDK-3276: reopen set port 0 vf rxmode BAM on failed > > When reopen set port 0 vf rxmode BAM on, vm can't receive packets, because > buffer is full on host. > Set fwd rxonly and then start forward on host testpmd, buffer will not full. > > Signed-off-by: Fangfang Wei > --- > tests/TestSuite_sriov_kvm.py | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/tests/TestSuite_sriov_kvm.py b/tests/TestSuite_sriov_kvm.py > index b1c3db6..8424b22 100644 > --- a/tests/TestSuite_sriov_kvm.py > +++ b/tests/TestSuite_sriov_kvm.py > @@ -351,6 +351,8 @@ class TestSriovKvm(TestCase): > 'vf1': self.sriov_vfs_port[1].pci} > self.host_testpmd.start_testpmd( > "1S/2C/2T", "--rxq=4 --txq=4 --txqflags=0", eal_param=eal_param) > + self.host_testpmd.execute_cmd('set fwd rxonly') > + self.host_testpmd.execute_cmd('start') > > # set up VM0 ENV > self.vm0 = QEMUKvm(self.dut, 'vm0', 'sriov_kvm')