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.