* [dts] [PATCH V1] vf_to_vf_nic_bridge: fix packets calculate error
@ 2017-01-17 2:14 Lijuan Tu
0 siblings, 0 replies; only message in thread
From: Lijuan Tu @ 2017-01-17 2:14 UTC (permalink / raw)
To: dts; +Cc: Lijuan Tu
Sender will send misc packets becuase of some protocol.
The misc packets is broadcast or multicast packets.
We can only calculate unicast packets to aviod this.
Clear qume when we destroy vfs.
Signed-off-by: Lijuan Tu <lijuanx.a.tu@intel.com>
---
tests/TestSuite_vf_to_vf_nic_bridge.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/tests/TestSuite_vf_to_vf_nic_bridge.py b/tests/TestSuite_vf_to_vf_nic_bridge.py
index 065038a..0080013 100644
--- a/tests/TestSuite_vf_to_vf_nic_bridge.py
+++ b/tests/TestSuite_vf_to_vf_nic_bridge.py
@@ -100,6 +100,10 @@ class TestVF2VFBridge(TestCase):
if self.vm1 is not None:
self.vm1.stop()
self.vm1 = None
+
+ self.dut.virt_exit()
+ time.sleep(3)
+
if self.pf_port_for_vfs is not None:
self.dut.destroy_sriov_vfs_by_port(self.pf_port_for_vfs)
port = self.dut.ports_info[self.pf_port_for_vfs]['port']
@@ -187,7 +191,7 @@ class TestVF2VFBridge(TestCase):
self.vm0_dut.restore_interfaces()
self.vm0_ports = self.vm0_dut.get_ports('any')
vf0_intf = self.vm0_dut.ports_info[self.vm0_ports[0]]['intf']
- self.vm0_dut.send_expect('tcpdump -i %s -s 1000 ' % vf0_intf, 'tcpdump', 30)
+# self.vm0_dut.send_expect('tcpdump -i %s -s 1000 "ether src %s and ether dst %s""' % (vf0_intf, src['ether'], dst['ether']), 'tcpdump', 30)
self.vm1_ports = self.vm1_dut.get_ports('any')
self.prepare_pktgen(self.vm1_dut)
@@ -201,6 +205,8 @@ class TestVF2VFBridge(TestCase):
load = {}
load['content'] = "'X'*46"
self.generate_pcap_pkt(dst, src, load)
+
+ self.vm0_dut.send_expect('tcpdump -i %s -s 1000 "ether src %s and ether dst %s"' % (vf0_intf, src['ether'], dst['ether']), 'tcpdump', 30)
self.send_stream_pktgen(self.vm1_dut)
self.stop_stream_pktgen(self.vm1_dut)
--
1.9.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-01-17 2:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-17 2:14 [dts] [PATCH V1] vf_to_vf_nic_bridge: fix packets calculate error Lijuan Tu
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).