summaryrefslogtreecommitdiff
path: root/examples/l3fwd-power/main.c
diff options
context:
space:
mode:
authorNikhil Agarwal <nikhil.agarwal@linaro.org>2017-12-12 15:38:23 +0530
committerThomas Monjalon <thomas@monjalon.net>2018-01-15 18:40:10 +0100
commit4ffc0a883b233969ba6ce38b8c21c62153751a45 (patch)
treef7a374d733d6be54eac99f5bcc7c9b5d7d745cf2 /examples/l3fwd-power/main.c
parentc53a5faf7e337ab562157b238c004e00516a09f4 (diff)
downloaddpdk-4ffc0a883b233969ba6ce38b8c21c62153751a45.zip
dpdk-4ffc0a883b233969ba6ce38b8c21c62153751a45.tar.gz
dpdk-4ffc0a883b233969ba6ce38b8c21c62153751a45.tar.xz
examples/l3fwd-power: fix Rx without interrupt
This existing code cause the platform to start receiving packet immediately irrespective of interrupts available or not. If the platform does not support Rx interrupt, it shall not start receiving packets immediately. It shall let the timer management work. Fixes: aee3bc79cc34 ("examples/l3fwd-power: enable one-shot Rx interrupt and polling switch") Cc: stable@dpdk.org Signed-off-by: Nikhil Agarwal <nikhil.agarwal@linaro.org> Acked-by: David Hunt <david.hunt@intel.com>
Diffstat (limited to 'examples/l3fwd-power/main.c')
-rw-r--r--examples/l3fwd-power/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c
index ad8fd7b..0896427 100644
--- a/examples/l3fwd-power/main.c
+++ b/examples/l3fwd-power/main.c
@@ -1022,9 +1022,11 @@ start_rx:
turn_on_intr(qconf);
sleep_until_rx_interrupt(
qconf->n_rx_queue);
+ /**
+ * start receiving packets immediately
+ */
+ goto start_rx;
}
- /* start receiving packets immediately */
- goto start_rx;
}
stats[lcore_id].sleep_time += lcore_idle_hint;
}