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
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
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
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 jasow...@redhat.com
---
drivers/net/virtio_net.c | 43 +++
1 files
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 gaowanl...@cn.fujitsu.com
---
diff --git a/include/linux/virtio.h b/include/linux/virtio.h
index 25fa1a6..30fc3c9 100644
---
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 gaowanl...@cn.fujitsu.com
---
diff --git a/include/linux/virtio.h
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 gaowanl...@cn.fujitsu.com
IMHO a function would be slightly better.
---
drivers/virtio/virtio.c | 11 ---
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 gaowanl...@cn.fujitsu.com
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
Add drv_to_virtio wrapper to get virtio_driver from device_driver.
Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com
---
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
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 gaowanl...@cn.fujitsu.com
---
drivers/virtio/virtio.c | 24 ++--
include/linux/virtio.h | 1 -
2 files changed, 14 insertions(+), 11
From: Sjur Brændeland sjur.brandel...@stericsson.com
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
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
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
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
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 sjur.brandel...@stericsson.com
---
drivers/virtio/virtio_ring_host.c | 81
Attributes 'weak_barriers' and 'notify' are moved
from struct vring_virtqueue to struct virtqueue.
Signed-off-by: Sjur Brændeland sjur.brandel...@stericsson.com
---
drivers/virtio/virtio_ring.c | 20 +++-
include/linux/virtio.h |4
2 files changed, 11
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 sjur.brandel...@stericsson.com
---
drivers/virtio/virtio_ring.c | 21 -
include/linux/virtio_ring.h | 20
2 files changed, 20
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 sjur.brandel...@stericsson.com
---
drivers/virtio/virtio_ring_host.c | 195
From: Sjur Brændeland sjur.brandel...@stericsson.com
Add an inline function for vring_interrupt that can handle
host side virtio queues.
Signed-off-by: Sjur Brændeland sjur.brandel...@stericsson.com
---
drivers/virtio/virtio_ring.c |4 ++--
include/linux/virtio_ring.h | 13 -
From: Sjur Brændeland sjur.brandel...@stericsson.com
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
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 sjur.brandel...@stericsson.com
---
drivers/remoteproc/remoteproc_virtio.c | 15 ---
1 files changed, 12
From: Vikram ARV vikram@stericsson.com
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
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_RFS
On Wed, 5 Dec 2012 15:03:27 +0800
Wanlong Gao gaowanl...@cn.fujitsu.com wrote:
to_vp_device is worth changing to inlined definition.
Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com
---
drivers/virtio/virtio_pci.c | 6 +-
1 file changed, 1 insertion(+), 5 deletions(-)
diff
Wanlong Gao gaowanl...@cn.fujitsu.com writes:
to_vp_device is worth changing to inlined definition.
Why?
Thanks,
Rusty.
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
Stephen Hemminger shemmin...@vyatta.com writes:
On Wed, 5 Dec 2012 15:03:27 +0800
Wanlong Gao gaowanl...@cn.fujitsu.com wrote:
to_vp_device is worth changing to inlined definition.
Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com
---
drivers/virtio/virtio_pci.c | 6 +-
1 file
On 12/06/2012 07:21 AM, Rusty Russell wrote:
Wanlong Gao gaowanl...@cn.fujitsu.com 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.
27 matches
Mail list logo