Skip to content

Commit e28dc48

Browse files
committed
vdpa_dpdk: Add delay between queries for accurate pps stats
Before, querying PPS statistics twice in quick succession caused the second query to return underestimated values. Adding a 2 second delay ensures that the reported PPS is more accurate. Signed-off-by: Wenli Quan <[email protected]>
1 parent a4408fc commit e28dc48

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

qemu/tests/vdpa_dpdk.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ def run_test(forward_mode, guest, host, dpdk_tool_path, queue, pkts, mac=None):
194194
dpdk_tool_path, guest["cpu"], guest["pci"], forward_mode, queue, pkts
195195
)
196196
testpmd_guest.show_port_stats_all()
197+
time.sleep(2)
197198
output = testpmd_guest.show_port_stats_all()
198199
pps_value = testpmd_guest.extract_pps_value(output, forward_mode)
199200

0 commit comments

Comments
 (0)