[ovs-dev] [PATCH 2/5] dpif-netdev: Implement the API functions to allow multiple handler threads read upcall.

YAMAMOTO Takashi yamamoto at valinux.co.jp
Fri Feb 28 04:06:11 UTC 2014


> @@ -1452,32 +1507,18 @@ dpif_netdev_queue_to_priority(const struct dpif *dpif OVS_UNUSED,
>      return 0;
>  }
>  
> -static struct dp_netdev_queue *
> -find_nonempty_queue(struct dp_netdev *dp)
> -    OVS_REQUIRES(dp->queue_mutex)
> -{
> -    int i;
> -
> -    for (i = 0; i < N_QUEUES; i++) {
> -        struct dp_netdev_queue *q = &dp->queues[i];
> -        if (q->head != q->tail) {
> -            return q;
> -        }
> -    }
> -    return NULL;
> -}

what's the rationale to remove DPIF_UC_MISS's precedence over DPIF_UC_ACTION?
(just a curious question)

YAMAMOTO Takashi



More information about the dev mailing list