Re: [ovs-dev] [PATCH 3/3] dpif-netdev: batch packet processing

2014-06-04 Thread Daniele Di Proietto
On Jun 3, 2014, at 6:05 PM, Ethan Jackson wrote: > Couple of questions. > > First, this patch adds a bit of code which extends beyond 79 characters. > Sorry, fixed those. > dp_netdev_input() does this rather interesting stuff with two keys > that mfk switches between. This is definitely not

Re: [ovs-dev] [PATCH 3/3] dpif-netdev: batch packet processing

2014-06-03 Thread Ethan Jackson
Oh, also I'm getting these errors when compiling with clang's thread saftey analysis. ../lib/dpif-netdev.c:2115:12: error: reading variable 'head' requires locking any mutex [-Werror,-Wthread-safety-analysis] if (q->head - q->tail < MAX_QUEUE_LEN) { ^ ../lib/dpif-netdev.c:2115:22: e

Re: [ovs-dev] [PATCH 3/3] dpif-netdev: batch packet processing

2014-06-03 Thread Ethan Jackson
Couple of questions. First, this patch adds a bit of code which extends beyond 79 characters. dp_netdev_input() does this rather interesting stuff with two keys that mfk switches between. This is definitely not obvious when first looking at it. Minimally it needs a comment explaining why. That