summaryrefslogtreecommitdiff
path: root/examples/l3fwd-power/main.c
diff options
context:
space:
mode:
authorPablo de Lara <pablo.de.lara.guarch@intel.com>2017-04-26 12:29:52 +0100
committerThomas Monjalon <thomas@monjalon.net>2017-05-01 17:58:51 +0200
commit4175729d012914e1c10e5f54e5a59169be020124 (patch)
tree05d4378dda178536c86718ae97f561a9a61b0e83 /examples/l3fwd-power/main.c
parentddc554ad284eed63d6333c28d06b6b0b8e8e75d3 (diff)
downloaddpdk-4175729d012914e1c10e5f54e5a59169be020124.zip
dpdk-4175729d012914e1c10e5f54e5a59169be020124.tar.gz
dpdk-4175729d012914e1c10e5f54e5a59169be020124.tar.xz
examples/l3fwd-power: fix Rx descriptor size
L3fwd power app monitors the RX queues to see if the polling frequency should be adjusted (the busier the queue, the higher the frequency). The app uses several thresholds in the ring to determine the frequency, being 96 the highest one, when frequency should be highest. The problem is that the difference between this value and the ring size is not big enough (128 - 96 = 32 descriptors), which means that if the descriptors are not replenished quick enough, queue might not be busy, but the app would think that it is, because 96th descriptor is set. Therefore, by increasing this gap (increasing the RX ring size), we make sure that this false measurement will not happen. Fixes: b451aa39db31 ("examples/l3fwd-power: use DD bit rather than RX queue count") Cc: stable@dpdk.org Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com> Tested-by: Lei Yao <lei.a.yao@intel.com>
Diffstat (limited to 'examples/l3fwd-power/main.c')
-rw-r--r--examples/l3fwd-power/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c
index 57636e9..9d57fde 100644
--- a/examples/l3fwd-power/main.c
+++ b/examples/l3fwd-power/main.c
@@ -147,7 +147,7 @@
/*
* Configurable number of RX/TX ring descriptors
*/
-#define RTE_TEST_RX_DESC_DEFAULT 128
+#define RTE_TEST_RX_DESC_DEFAULT 512
#define RTE_TEST_TX_DESC_DEFAULT 512
static uint16_t nb_rxd = RTE_TEST_RX_DESC_DEFAULT;
static uint16_t nb_txd = RTE_TEST_TX_DESC_DEFAULT;