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>
This commit is contained in:
parent
c53a5faf7e
commit
4ffc0a883b
@ -1022,9 +1022,11 @@ start_rx:
|
|||||||
turn_on_intr(qconf);
|
turn_on_intr(qconf);
|
||||||
sleep_until_rx_interrupt(
|
sleep_until_rx_interrupt(
|
||||||
qconf->n_rx_queue);
|
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;
|
stats[lcore_id].sleep_time += lcore_idle_hint;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user