Re: [PATCH RFC 1/4] virtio_net: pass vi around

2014-10-27 Thread Rusty Russell
"Michael S. Tsirkin" writes: > Too many places poke at [rs]q->vq->vdev->priv just to get > the the vi structure. Let's just pass the pointer around: seems > cleaner, and might even be faster. Agreed, it's neater. Acked-by: Rusty Russell Thanks, Rusty. > > Signed-off-by: Michael S. Tsirkin >

Re: [PATCH RFC 1/4] virtio_net: pass vi around

2014-10-24 Thread Michael S. Tsirkin
On Fri, Oct 24, 2014 at 10:02:15AM +, David Laight wrote: > From: Michael S. Tsirkin > > > Too many places poke at [rs]q->vq->vdev->priv just to get > > the the vi structure. Let's just pass the pointer around: seems > > cleaner, and might even be faster. > > > > Signed-off-by: Michael S. T

RE: [PATCH RFC 1/4] virtio_net: pass vi around

2014-10-24 Thread David Laight
From: Michael S. Tsirkin > Too many places poke at [rs]q->vq->vdev->priv just to get > the the vi structure. Let's just pass the pointer around: seems > cleaner, and might even be faster. > > Signed-off-by: Michael S. Tsirkin > --- > drivers/net/virtio_net.c | 36 +++--