test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/sriov_kvm: fix can't receive packets failure
@ 2017-08-25  9:19 Fangfang Wei
  2017-08-28  9:48 ` Liu, Yong
  0 siblings, 1 reply; 2+ messages in thread
From: Fangfang Wei @ 2017-08-25  9:19 UTC (permalink / raw)
  To: dts; +Cc: Fangfang Wei

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 <fangfangx.wei@intel.com>
---
 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dts] [PATCH V1] tests/sriov_kvm: fix can't receive packets failure
  2017-08-25  9:19 [dts] [PATCH V1] tests/sriov_kvm: fix can't receive packets failure Fangfang Wei
@ 2017-08-28  9:48 ` Liu, Yong
  0 siblings, 0 replies; 2+ messages in thread
From: Liu, Yong @ 2017-08-28  9:48 UTC (permalink / raw)
  To: Fangfang Wei, dts

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 <fangfangx.wei@intel.com>
> ---
>   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')

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-08-28  1:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-25  9:19 [dts] [PATCH V1] tests/sriov_kvm: fix can't receive packets failure Fangfang Wei
2017-08-28  9:48 ` Liu, Yong

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).