search for: virtnet_info

Displaying 20 results from an estimated 927 matches for "virtnet_info".

2012 Dec 04
3
[PATCH net-next 0/3] Multiqueue support for virtio-net
...12/10/30/127 - RFC V5: http://lwn.net/Articles/505388/ - RFC V4: https://lkml.org/lkml/2012/6/25/120 - RFC V2: http://lwn.net/Articles/467283/ Perf Numbers: Will do some basic test and post as a reply to this mail. Jason Wang (3): virtio-net: separate fields of sending/receiving queue from virtnet_info virtio_net: multiqueue support virtio-net: change the number of queues through ethtool drivers/net/virtio_net.c | 723 ++++++++++++++++++++++++++++----------- include/uapi/linux/virtio_net.h | 16 + 2 files changed, 546 insertions(+), 193 deletions(-)
2012 Dec 04
3
[PATCH net-next 0/3] Multiqueue support for virtio-net
...12/10/30/127 - RFC V5: http://lwn.net/Articles/505388/ - RFC V4: https://lkml.org/lkml/2012/6/25/120 - RFC V2: http://lwn.net/Articles/467283/ Perf Numbers: Will do some basic test and post as a reply to this mail. Jason Wang (3): virtio-net: separate fields of sending/receiving queue from virtnet_info virtio_net: multiqueue support virtio-net: change the number of queues through ethtool drivers/net/virtio_net.c | 723 ++++++++++++++++++++++++++++----------- include/uapi/linux/virtio_net.h | 16 + 2 files changed, 546 insertions(+), 193 deletions(-)
2012 Dec 05
3
[PATCH net-next v2 0/3] Multiqueue support in virtio-net
...12/10/30/127 - RFC V5: http://lwn.net/Articles/505388/ - RFC V4: https://lkml.org/lkml/2012/6/25/120 - RFC V2: http://lwn.net/Articles/467283/ Perf Numbers: Will do some basic test and post as a reply to this mail. Jason Wang (3): virtio-net: separate fields of sending/receiving queue from virtnet_info virtio_net: multiqueue support virtio-net: support changing the number of queue pairs through ethtool drivers/net/virtio_net.c | 726 +++++++++++++++++++++++++++++---------- include/uapi/linux/virtio_net.h | 27 ++ 2 files changed, 567 insertions(+), 186 deletions(-)
2012 Dec 05
3
[PATCH net-next v2 0/3] Multiqueue support in virtio-net
...12/10/30/127 - RFC V5: http://lwn.net/Articles/505388/ - RFC V4: https://lkml.org/lkml/2012/6/25/120 - RFC V2: http://lwn.net/Articles/467283/ Perf Numbers: Will do some basic test and post as a reply to this mail. Jason Wang (3): virtio-net: separate fields of sending/receiving queue from virtnet_info virtio_net: multiqueue support virtio-net: support changing the number of queue pairs through ethtool drivers/net/virtio_net.c | 726 +++++++++++++++++++++++++++++---------- include/uapi/linux/virtio_net.h | 27 ++ 2 files changed, 567 insertions(+), 186 deletions(-)
2012 Nov 27
4
[net-next rfc v7 0/3] Multiqueue virtio-net
...org/lkml/2012/10/30/127 - V5: http://lwn.net/Articles/505388/ - V4: https://lkml.org/lkml/2012/6/25/120 - V2: http://lwn.net/Articles/467283/ Perf Numbers: Will do some basic test and post as a reply to this mail. Jason Wang (3): virtio-net: separate fields of sending/receiving queue from virtnet_info virtio_net: multiqueue support virtio-net: change the number of queues through ethtool drivers/net/virtio_net.c | 716 ++++++++++++++++++++++++++++----------- include/uapi/linux/virtio_net.h | 16 + 2 files changed, 536 insertions(+), 196 deletions(-)
2012 Nov 27
4
[net-next rfc v7 0/3] Multiqueue virtio-net
...org/lkml/2012/10/30/127 - V5: http://lwn.net/Articles/505388/ - V4: https://lkml.org/lkml/2012/6/25/120 - V2: http://lwn.net/Articles/467283/ Perf Numbers: Will do some basic test and post as a reply to this mail. Jason Wang (3): virtio-net: separate fields of sending/receiving queue from virtnet_info virtio_net: multiqueue support virtio-net: change the number of queues through ethtool drivers/net/virtio_net.c | 716 ++++++++++++++++++++++++++++----------- include/uapi/linux/virtio_net.h | 16 + 2 files changed, 536 insertions(+), 196 deletions(-)
2014 Oct 23
6
[PATCH RFC 1/4] virtio_net: pass vi around
...vers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -241,11 +241,11 @@ static unsigned long mergeable_buf_to_ctx(void *buf, unsigned int truesize) } /* Called from bottom half context */ -static struct sk_buff *page_to_skb(struct receive_queue *rq, +static struct sk_buff *page_to_skb(struct virtnet_info *vi, + struct receive_queue *rq, struct page *page, unsigned int offset, unsigned int len, unsigned int truesize) { - struct virtnet_info *vi = rq->vq->vdev->priv; struct sk_buff *skb; struct skb_vnet_hdr *hdr; unsigned int copy, hdr_len, hdr_padded_len; @@ -32...
2014 Oct 23
6
[PATCH RFC 1/4] virtio_net: pass vi around
...vers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -241,11 +241,11 @@ static unsigned long mergeable_buf_to_ctx(void *buf, unsigned int truesize) } /* Called from bottom half context */ -static struct sk_buff *page_to_skb(struct receive_queue *rq, +static struct sk_buff *page_to_skb(struct virtnet_info *vi, + struct receive_queue *rq, struct page *page, unsigned int offset, unsigned int len, unsigned int truesize) { - struct virtnet_info *vi = rq->vq->vdev->priv; struct sk_buff *skb; struct skb_vnet_hdr *hdr; unsigned int copy, hdr_len, hdr_padded_len; @@ -32...
2012 Dec 07
6
[PATCH net-next v3 0/3] Multiqueue support in virtio-net
...uase there's no much cpu in host node 0, so we must pin all vhost threads in node 1 to get stable result. - Statistics shows much more packets were sent/received by guest which leads higher cpu utilization. Jason Wang (3): virtio-net: separate fields of sending/receiving queue from virtnet_info virtio_net: multiqueue support virtio-net: support changing the number of queue pairs through ethtool drivers/net/virtio_net.c | 726 +++++++++++++++++++++++++++++---------- include/uapi/linux/virtio_net.h | 27 ++ 2 files changed, 567 insertions(+), 186 deletions(-)
2012 Dec 07
6
[PATCH net-next v3 0/3] Multiqueue support in virtio-net
...uase there's no much cpu in host node 0, so we must pin all vhost threads in node 1 to get stable result. - Statistics shows much more packets were sent/received by guest which leads higher cpu utilization. Jason Wang (3): virtio-net: separate fields of sending/receiving queue from virtnet_info virtio_net: multiqueue support virtio-net: support changing the number of queue pairs through ethtool drivers/net/virtio_net.c | 726 +++++++++++++++++++++++++++++---------- include/uapi/linux/virtio_net.h | 27 ++ 2 files changed, 567 insertions(+), 186 deletions(-)
2013 Jan 18
3
[PATCH V5 1/2] virtio-net: fix the set affinity bug when CPU IDs are not consecutive
...lt;erdnetdev at gmail.com> Cc: virtualization at lists.linux-foundation.org Cc: netdev at vger.kernel.org Signed-off-by: Wanlong Gao <gaowanlong at cn.fujitsu.com> --- V4->V5: Add get/put_online_cpus to avoid CPUs go up and down during operations (Rusty) V3->V4: move vq_index into virtnet_info (Jason) change the mapping value when not setting affinity (Jason) address the comments about select_queue (Rusty) drivers/net/virtio_net.c | 60 +++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 49 insertions(+), 11 deletions(-) diff --git a/drivers/net/virtio_net.c b/drivers/n...
2013 Jan 18
3
[PATCH V5 1/2] virtio-net: fix the set affinity bug when CPU IDs are not consecutive
...lt;erdnetdev at gmail.com> Cc: virtualization at lists.linux-foundation.org Cc: netdev at vger.kernel.org Signed-off-by: Wanlong Gao <gaowanlong at cn.fujitsu.com> --- V4->V5: Add get/put_online_cpus to avoid CPUs go up and down during operations (Rusty) V3->V4: move vq_index into virtnet_info (Jason) change the mapping value when not setting affinity (Jason) address the comments about select_queue (Rusty) drivers/net/virtio_net.c | 60 +++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 49 insertions(+), 11 deletions(-) diff --git a/drivers/net/virtio_net.c b/drivers/n...
2016 Aug 12
0
[PATCH 6/6] net: virtio-net: Convert to hotplug state machine
...++++++---------- include/linux/cpuhotplug.h | 1 + 2 files changed, 87 insertions(+), 24 deletions(-) diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 1b5f531eeb25..e9be88cd76c1 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -138,8 +138,9 @@ struct virtnet_info { /* Does the affinity hint is set for virtqueues? */ bool affinity_hint_set; - /* CPU hot plug notifier */ - struct notifier_block nb; + /* CPU hotplug instances for online & dead */ + struct hlist_node node; + struct hlist_node node_dead; /* Control VQ buffers: protected by the rtnl...
2016 Aug 12
0
[PATCH 6/6] net: virtio-net: Convert to hotplug state machine
...++++++---------- include/linux/cpuhotplug.h | 1 + 2 files changed, 87 insertions(+), 24 deletions(-) diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 1b5f531eeb25..e9be88cd76c1 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -138,8 +138,9 @@ struct virtnet_info { /* Does the affinity hint is set for virtqueues? */ bool affinity_hint_set; - /* CPU hot plug notifier */ - struct notifier_block nb; + /* CPU hotplug instances for online & dead */ + struct hlist_node node; + struct hlist_node node_dead; /* Control VQ buffers: protected by the rtnl...
2018 Apr 19
1
[PATCH v2 net 1/3] virtio_net: split out ctrl buffer
...ruct receive_queue { struct xdp_rxq_info xdp_rxq; }; +/* Control VQ buffers: protected by the rtnl lock */ +struct control_buf { + struct virtio_net_ctrl_hdr hdr; + virtio_net_ctrl_ack status; + struct virtio_net_ctrl_mq mq; + u8 promisc; + u8 allmulti; + u16 vid; + u64 offloads; +}; + struct virtnet_info { struct virtio_device *vdev; struct virtqueue *cvq; @@ -192,14 +203,7 @@ struct virtnet_info { struct hlist_node node; struct hlist_node node_dead; - /* Control VQ buffers: protected by the rtnl lock */ - struct virtio_net_ctrl_hdr ctrl_hdr; - virtio_net_ctrl_ack ctrl_status; - struct vi...
2014 Nov 27
1
[PATCH v6 24/46] virtio_net: get rid of virtio_net_hdr/skb_vnet_hdr
...tio_net.c | 90 ++++++++++++++++++++++-------------------------- 1 file changed, 41 insertions(+), 49 deletions(-) diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 1630c21..516f2cb 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -123,6 +123,9 @@ struct virtnet_info { /* Host can handle any s/g split between our header and packet data */ bool any_header_sg; + /* Packet virtio header size */ + u8 hdr_len; + /* Active statistics */ struct virtnet_stats __percpu *stats; @@ -139,21 +142,14 @@ struct virtnet_info { struct notifier_block nb; }; -str...
2014 Nov 27
1
[PATCH v6 24/46] virtio_net: get rid of virtio_net_hdr/skb_vnet_hdr
...tio_net.c | 90 ++++++++++++++++++++++-------------------------- 1 file changed, 41 insertions(+), 49 deletions(-) diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 1630c21..516f2cb 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -123,6 +123,9 @@ struct virtnet_info { /* Host can handle any s/g split between our header and packet data */ bool any_header_sg; + /* Packet virtio header size */ + u8 hdr_len; + /* Active statistics */ struct virtnet_stats __percpu *stats; @@ -139,21 +142,14 @@ struct virtnet_info { struct notifier_block nb; }; -str...
2012 Jan 10
3
[PATCH v2 0/3] virtio_net: Better low memory handling.
The following series applies to net-next. The following series changes the low memory paths in virtio_net to not disable NAPI while waiting in the allocator in the slow path. It attempts to rectify some performance problems we've seen where the network performance drops significantly when memory is low. The working theory is that the disabling of NAPI while allocations are occuring in the
2012 Jan 10
3
[PATCH v2 0/3] virtio_net: Better low memory handling.
The following series applies to net-next. The following series changes the low memory paths in virtio_net to not disable NAPI while waiting in the allocator in the slow path. It attempts to rectify some performance problems we've seen where the network performance drops significantly when memory is low. The working theory is that the disabling of NAPI while allocations are occuring in the
2018 Apr 19
3
[PATCH net] virtio_net: split out ctrl buffer
...ruct receive_queue { struct xdp_rxq_info xdp_rxq; }; +/* Control VQ buffers: protected by the rtnl lock */ +struct control_buf { + struct virtio_net_ctrl_hdr hdr; + virtio_net_ctrl_ack status; + struct virtio_net_ctrl_mq mq; + u8 promisc; + u8 allmulti; + u16 vid; + u64 offloads; +}; + struct virtnet_info { struct virtio_device *vdev; struct virtqueue *cvq; @@ -192,14 +203,7 @@ struct virtnet_info { struct hlist_node node; struct hlist_node node_dead; - /* Control VQ buffers: protected by the rtnl lock */ - struct virtio_net_ctrl_hdr ctrl_hdr; - virtio_net_ctrl_ack ctrl_status; - struct vi...