From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 3A04A2C66 for ; Mon, 28 Aug 2017 06:07:18 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Aug 2017 21:07:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,440,1498546800"; d="scan'208";a="1211232605" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by fmsmga002.fm.intel.com with ESMTP; 27 Aug 2017 21:07:13 -0700 From: Fangfang Wei To: dts@dpdk.org Cc: Fangfang Wei Date: Mon, 28 Aug 2017 12:08:29 +0800 Message-Id: <1503893309-94670-1-git-send-email-fangfangx.wei@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V2] 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 04:07:19 -0000 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 RX buffer is full on host when host receives too many packets if host only run testpmd without "start" command. RX buffer will be cleaned just when start forward packets. If we not run "start", rx buffer will be full, and can't receive new packets. In this case, we don't want pf forwarding packets, so we set fwd rxonly, and start forwarding on host. 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') -- 2.7.4