Hi all:
This series is an update version of multiqueue virtio-net driver based on
Krishna Kumar's work to let virtio-net use multiple rx/tx queues to do the
packets reception and transmission. Please review and comments.
A protype implementation of qemu-kvm support could by found in
git://github.
To support multiqueue transmitq/receiveq, the first step is to separate queue
related structure from virtnet_info. This patch introduce send_queue and
receive_queue structure and use the pointer to them as the parameter in
functions handling sending/receiving.
Signed-off-by: Krishna Kumar
Signed-
This patch adds the multiqueue (VIRTIO_NET_F_RFS) support to virtio_net
driver. VIRTIO_NET_F_RFS capable device could allow the driver to do packet
transmission and reception through multiple queue pairs and does the packet
steering to get better performance. By default, one one queue pair is used,
This patch implements the ethtool_{set|get}_channels method of virtio-net to
allow user to change the number of queues when the device is running on demand.
Signed-off-by: Jason Wang
---
drivers/net/virtio_net.c | 43 +++
1 files changed, 43 insertions(+
On Wed, Dec 05, 2012 at 03:03:28PM +0800, Wanlong Gao wrote:
> Use dev_to_virtio wrapper in virtio to make code clearly.
>
> Signed-off-by: Wanlong Gao
> ---
> diff --git a/include/linux/virtio.h b/include/linux/virtio.h
> index 25fa1a6..30fc3c9 100644
> --- a/include/linux/virtio.h
> +++ b/inclu
On Wed, Dec 05, 2012 at 01:16:06PM +0200, Michael S. Tsirkin wrote:
> On Wed, Dec 05, 2012 at 03:03:28PM +0800, Wanlong Gao wrote:
> > Use dev_to_virtio wrapper in virtio to make code clearly.
> >
> > Signed-off-by: Wanlong Gao
> > ---
> > diff --git a/include/linux/virtio.h b/include/linux/virti
On Wed, Dec 05, 2012 at 03:03:29PM +0800, Wanlong Gao wrote:
> Add drv_to_virtio wrapper to get virtio_driver from device_driver.
>
> Signed-off-by: Wanlong Gao
IMHO a function would be slightly better.
> ---
> drivers/virtio/virtio.c | 11 ---
> include/linux/virtio.h | 1 +
> 2 fil
On Wed, Dec 05, 2012 at 03:03:27PM +0800, Wanlong Gao wrote:
> to_vp_device is worth changing to inlined definition.
>
> Signed-off-by: Wanlong Gao
I don't think it's worth it.
The oldest gcc I happened to have around is 4.3.3
which is already smart enough to generate
identical code before and a
Add drv_to_virtio wrapper to get virtio_driver from device_driver.
Signed-off-by: Wanlong Gao
---
drivers/virtio/virtio.c | 15 ---
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c
index ba24e87..43c1fb2 100644
--- a/driv
On 12/05/2012 07:16 PM, Michael S. Tsirkin wrote:
> On Wed, Dec 05, 2012 at 03:03:28PM +0800, Wanlong Gao wrote:
>> Use dev_to_virtio wrapper in virtio to make code clearly.
>>
>> Signed-off-by: Wanlong Gao
>> ---
>> diff --git a/include/linux/virtio.h b/include/linux/virtio.h
>> index 25fa1a6..30
Use dev_to_virtio wrapper in virtio to make code clearly.
Move dev_to_virtio from virtio.h to virtio.c.
Signed-off-by: Wanlong Gao
---
drivers/virtio/virtio.c | 24 ++--
include/linux/virtio.h | 1 -
2 files changed, 14 insertions(+), 11 deletions(-)
diff --git a/drivers/v
From: Sjur Brændeland
This patch-set introduces a host-side virtqueue implementation and
the CAIF Virtio Link layer. See http://lwn.net/Articles/522296/ for
background info on CAIF over Virtio.
After feedback from Rusty, I have re-factored vhost.c and
pulled out common functionality and data def
Pull out common vring attributes from vhost_virtqueue to a new
struct vring_host. This allows for reuse of data definitions
between vhost and virtio queue when host-side virtio queue is
introduced. Also unsigned long is replaced with ulong a couple
of places.
Signed-off-by: Sjur Brændeland
---
d
Prepare for moving virtio ring code out to a separate
file by isolating vring related functions. The function
vring_add_used_user() and vring_avail_desc_user() that
are handling virtio rings from user space are prepared
to be moved out.
Signed-off-by: Sjur Brændeland
---
drivers/vhost/vhost.c |
Move host-side virtio ring functions to file virtio_ring_host.c
The functions vring_avail_desc_user(), vring_add_used_user() and
vring_next_desc() are moved from vhost.c to the new file
virtio_ring_host.c. (The functions are copied as is without any changes)
Signed-off-by: Sjur Brændeland
---
dr
Isolate the access to user-memory in separate inline
functions. This open up for reuse from host-side virtioqueue
implementation accessing virtio-ring in kernel space.
Signed-off-by: Sjur Brændeland
---
drivers/virtio/virtio_ring_host.c | 81 ++---
1 files chang
Attributes 'weak_barriers' and 'notify' are moved
from struct vring_virtqueue to struct virtqueue.
Signed-off-by: Sjur Brændeland
---
drivers/virtio/virtio_ring.c | 20 +++-
include/linux/virtio.h |4
2 files changed, 11 insertions(+), 13 deletions(-)
diff --git
Move macros from virtio_ring.c to virtio_ring.h so that
they can be used outside the file.
Signed-off-by: Sjur Brændeland
---
drivers/virtio/virtio_ring.c | 21 -
include/linux/virtio_ring.h | 20
2 files changed, 20 insertions(+), 21 deletions(-)
d
Introduce a host-side virtio queue implementation. The function
vring_new_host_virtqueue(), virtqueue_add_buf_to_used()
virtqueue_next_avail_desc() are added to virtio_ring_host.c
Signed-off-by: Sjur Brændeland
---
drivers/virtio/virtio_ring_host.c | 195 +
i
From: Sjur Brændeland
Add an inline function for vring_interrupt that can handle
host side virtio queues.
Signed-off-by: Sjur Brændeland
---
drivers/virtio/virtio_ring.c |4 ++--
include/linux/virtio_ring.h | 13 -
2 files changed, 14 insertions(+), 3 deletions(-)
diff --gi
From: Sjur Brændeland
Add BUG_ON to ensure that the correct virtio queue type is
used for the virtqueue functions.
In addition the function virtqueue_kick_prepare() is changed so
that it always returns true if the virtio-ring is reversed.
Signed-off-by: Sjur Brændeland
---
drivers/virtio/virti
Add argument 'reversed' to function find_vqs() in order to
allow virtio devices to request host-side virtio-queues.
The argument 'reversed' may be NULL if reversed
virtio-queues are not requested.
Signed-off-by: Sjur Brændeland
---
drivers/char/virtio_console.c |3 ++-
drivers/lgues
Create a virtio-queue in reversed direction if requested
by the virtio device. This is done by calling the function
vring_new_host_virtqueue().
Signed-off-by: Sjur Brændeland
---
drivers/remoteproc/remoteproc_virtio.c | 15 ---
1 files changed, 12 insertions(+), 3 deletions(-)
dif
From: Vikram ARV
caif_virtio is using the remoteproc and virtio framework
for communicating with the modem. The CAIF link layer
device is registered as a network device.
CAIF over virtio uses the virtio rings in both "directions",
and request a reversed virtio queue in the RX direction.
Signed-
On Mon, 2012-12-03 at 12:58 +0200, Michael S. Tsirkin wrote:
> Add RFS support to virtio network device.
> Add a new feature flag VIRTIO_NET_F_RFS for this feature, a new
> configuration field max_virtqueue_pairs to detect supported number of
> virtqueues as well as a new command VIRTIO_NET_CTRL_RF
On Wed, 5 Dec 2012 15:03:27 +0800
Wanlong Gao wrote:
> to_vp_device is worth changing to inlined definition.
>
> Signed-off-by: Wanlong Gao
> ---
> drivers/virtio/virtio_pci.c | 6 +-
> 1 file changed, 1 insertion(+), 5 deletions(-)
>
> diff --git a/drivers/virtio/virtio_pci.c b/drivers/v
Wanlong Gao writes:
> to_vp_device is worth changing to inlined definition.
Why?
Thanks,
Rusty.
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Stephen Hemminger writes:
> On Wed, 5 Dec 2012 15:03:27 +0800
> Wanlong Gao wrote:
>
>> to_vp_device is worth changing to inlined definition.
>>
>> Signed-off-by: Wanlong Gao
>> ---
>> drivers/virtio/virtio_pci.c | 6 +-
>> 1 file changed, 1 insertion(+), 5 deletions(-)
>>
>> diff --git
On 12/06/2012 07:21 AM, Rusty Russell wrote:
> Wanlong Gao writes:
>
>> to_vp_device is worth changing to inlined definition.
>
> Why?
OK, I saw your comments, and I dropped this patch already.
Thanks,
Wanlong Gao
>
> Thanks,
> Rusty.
>
___
Virtu
29 matches
Mail list logo