[dpdk-dev] [PATCH v6 8/8] l3fwd-power: enable one-shot rx interrupt and polling/interrupt mode switch

Stephen Hemminger stephen at networkplumber.org
Sat Feb 28 23:57:12 CET 2015


On Fri, 27 Feb 2015 12:56:16 +0800
Cunming Liang <cunming.liang at intel.com> wrote:

> +	/* Enable one-shot rx interrupt */
> +	rte_spinlock_lock(&(locks[port_id]));
> +	rte_eth_dev_rx_intr_enable(port_id, queue_id);
> +	rte_spinlock_unlock(&(locks[port_id]));
> +

If always requires locks like this, then the API should
do the locking internally.


More information about the dev mailing list