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

Thomas Monjalon thomas.monjalon at 6wind.com
Mon Jul 27 18:50:41 CEST 2015


2015-07-20 11:02, Cunming Liang:
> +static int turn_on_intr(struct lcore_conf *qconf)
> +{
> +       int i;
> +       struct lcore_rx_queue *rx_queue;
> +       uint8_t port_id, queue_id;
> +
> +       for (i = 0; i < qconf->n_rx_queue; ++i) {
> +               rx_queue = &(qconf->rx_queue_list[i]);
> +               port_id = rx_queue->port_id;
> +               queue_id = rx_queue->queue_id;
> +
> +               rte_spinlock_lock(&(locks[port_id]));
> +               rte_eth_dev_rx_intr_enable(port_id, queue_id);
> +               rte_spinlock_unlock(&(locks[port_id]));
> +       }
> +}

examples/l3fwd-power/main.c:836:1: error: control reaches end of non-void
      function [-Werror,-Wreturn-type]


More information about the dev mailing list