Re: [rfc net-next v6 2/3] virtio_net: multiqueue support

2012-11-19 Thread Ben Hutchings
On Sun, 2012-11-18 at 11:13 +0200, Michael S. Tsirkin wrote: > On Sat, Nov 17, 2012 at 12:35:29AM +, Ben Hutchings wrote: > > On Tue, 2012-11-13 at 08:40 +0200, Michael S. Tsirkin wrote: > > > On Mon, Nov 05, 2012 at 11:38:39AM +1030, Rusty Russell wrote: > > > > > @@ -924,11 +1032,10 @@ static

Re: [rfc net-next v6 2/3] virtio_net: multiqueue support

2012-11-18 Thread Jason Wang
On 11/05/2012 09:08 AM, Rusty Russell wrote: Jason Wang writes: +struct virtnet_info { + u16 num_queue_pairs;/* # of RX/TX vq pairs */ + u16 total_queue_pairs; + + struct send_queue *sq; + struct receive_queue *rq; + struct virtqueue *cvq; + + str

Re: [rfc net-next v6 2/3] virtio_net: multiqueue support

2012-11-18 Thread Jason Wang
On 11/05/2012 07:16 AM, Rusty Russell wrote: Jason Wang writes: This addes multiqueue support to virtio_net driver. There's two mode supported: single queue pair mode and multiple queue pairs mode. An obvious difference compared with a physical mq card is that virtio-net reserve first two virtq

Re: [rfc net-next v6 2/3] virtio_net: multiqueue support

2012-11-18 Thread Michael S. Tsirkin
On Sat, Nov 17, 2012 at 12:35:29AM +, Ben Hutchings wrote: > On Tue, 2012-11-13 at 08:40 +0200, Michael S. Tsirkin wrote: > > On Mon, Nov 05, 2012 at 11:38:39AM +1030, Rusty Russell wrote: > > > > @@ -924,11 +1032,10 @@ static void virtnet_get_ringparam(struct > > > > net_device *dev, > > > >

Re: [rfc net-next v6 2/3] virtio_net: multiqueue support

2012-11-16 Thread Ben Hutchings
On Tue, 2012-11-13 at 08:40 +0200, Michael S. Tsirkin wrote: > On Mon, Nov 05, 2012 at 11:38:39AM +1030, Rusty Russell wrote: > > > @@ -924,11 +1032,10 @@ static void virtnet_get_ringparam(struct > > > net_device *dev, > > > { > > > struct virtnet_info *vi = netdev_priv(dev); > > > > > > - ri

Re: [rfc net-next v6 2/3] virtio_net: multiqueue support

2012-11-12 Thread Michael S. Tsirkin
On Mon, Nov 05, 2012 at 11:38:39AM +1030, Rusty Russell wrote: > > @@ -924,11 +1032,10 @@ static void virtnet_get_ringparam(struct net_device > > *dev, > > { > > struct virtnet_info *vi = netdev_priv(dev); > > > > - ring->rx_max_pending = virtqueue_get_vring_size(vi->rvq); > > - ring->t

Re: [rfc net-next v6 2/3] virtio_net: multiqueue support

2012-11-04 Thread Rusty Russell
Jason Wang writes: > +struct virtnet_info { > + u16 num_queue_pairs;/* # of RX/TX vq pairs */ > + u16 total_queue_pairs; > + > + struct send_queue *sq; > + struct receive_queue *rq; > + struct virtqueue *cvq; > + > + struct virtio_device *vdev; > + struct ne

Re: [rfc net-next v6 2/3] virtio_net: multiqueue support

2012-11-04 Thread Rusty Russell
Jason Wang writes: > This addes multiqueue support to virtio_net driver. There's two mode > supported: > single queue pair mode and multiple queue pairs mode. An obvious > difference compared with a physical mq card is that virtio-net reserve > first two virtqueues when it is working in multiqueu

[rfc net-next v6 2/3] virtio_net: multiqueue support

2012-10-30 Thread Jason Wang
This addes multiqueue support to virtio_net driver. There's two mode supported: single queue pair mode and multiple queue pairs mode. An obvious difference compared with a physical mq card is that virtio-net reserve first two virtqueues when it is working in multiqueue mode, this is used for implem