performance-metrics: Be consistent with num_queues

Don't treat it as the number of pairs. Instead calculate the number of
pairs later when necessary.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2022-02-25 10:46:10 +00:00
parent 70a3564a5e
commit 18d51d3bd1
2 changed files with 8 additions and 11 deletions
+4 -4
View File
@@ -228,7 +228,7 @@ const TEST_LIST: [PerformanceTest; 15] = [
name: "performance_virtio_net_throughput_bps_single_queue_rx_bps",
func_ptr: performance_net_throughput,
control: PerformanceTestControl {
num_queues: Some(1), // used as 'queue_pairs'
num_queues: Some(2),
queue_size: Some(256),
net_rx: Some(true),
..PerformanceTestControl::default()
@@ -238,7 +238,7 @@ const TEST_LIST: [PerformanceTest; 15] = [
name: "performance_virtio_net_throughput_single_queue_tx_bps",
func_ptr: performance_net_throughput,
control: PerformanceTestControl {
num_queues: Some(1), // used as 'queue_pairs'
num_queues: Some(2),
queue_size: Some(256),
net_rx: Some(false),
..PerformanceTestControl::default()
@@ -248,7 +248,7 @@ const TEST_LIST: [PerformanceTest; 15] = [
name: "performance_virtio_net_throughput_multi_queue_rx_bps",
func_ptr: performance_net_throughput,
control: PerformanceTestControl {
num_queues: Some(2), // used as 'queue_pairs'
num_queues: Some(4),
queue_size: Some(1024),
net_rx: Some(true),
..PerformanceTestControl::default()
@@ -258,7 +258,7 @@ const TEST_LIST: [PerformanceTest; 15] = [
name: "performance_virtio_net_throughput_multi_queue_tx_bps",
func_ptr: performance_net_throughput,
control: PerformanceTestControl {
num_queues: Some(2), // used as 'queue_pairs'
num_queues: Some(4),
queue_size: Some(1024),
net_rx: Some(false),
..PerformanceTestControl::default()