search for: curr_queue

Displaying 20 results from an estimated 52 matches for "curr_queue".

2017 Oct 16
2
[PATCH net-next] virtio_net: implement VIRTIO_CONFIG_S_NEEDS_RESET
...gt; >> + if (ret) >> >> + goto err; >> >> + >> >> + ret = virtnet_restore_up(dev); >> >> + if (ret) >> >> + goto err; >> >> + >> >> + ret = virtnet_set_queues(vi, vi->curr_queue_pairs); >> >> + if (ret) >> >> + goto err; >> >> + >> >> + virtio_add_status(dev, VIRTIO_CONFIG_S_DRIVER_OK); >> >> + virtio_config_enable(dev); >> >> + return 0; >> >> + >> >&gt...
2017 Oct 16
2
[PATCH net-next] virtio_net: implement VIRTIO_CONFIG_S_NEEDS_RESET
...gt; >> + if (ret) >> >> + goto err; >> >> + >> >> + ret = virtnet_restore_up(dev); >> >> + if (ret) >> >> + goto err; >> >> + >> >> + ret = virtnet_set_queues(vi, vi->curr_queue_pairs); >> >> + if (ret) >> >> + goto err; >> >> + >> >> + virtio_add_status(dev, VIRTIO_CONFIG_S_DRIVER_OK); >> >> + virtio_config_enable(dev); >> >> + return 0; >> >> + >> >&gt...
2017 Oct 16
2
[PATCH net-next] virtio_net: implement VIRTIO_CONFIG_S_NEEDS_RESET
...goto err; >> >> >> + >> >> >> + ret = virtnet_restore_up(dev); >> >> >> + if (ret) >> >> >> + goto err; >> >> >> + >> >> >> + ret = virtnet_set_queues(vi, vi->curr_queue_pairs); >> >> >> + if (ret) >> >> >> + goto err; >> >> >> + >> >> >> + virtio_add_status(dev, VIRTIO_CONFIG_S_DRIVER_OK); >> >> >> + virtio_config_enable(dev); >> >> >&gt...
2017 Oct 16
2
[PATCH net-next] virtio_net: implement VIRTIO_CONFIG_S_NEEDS_RESET
...goto err; >> >> >> + >> >> >> + ret = virtnet_restore_up(dev); >> >> >> + if (ret) >> >> >> + goto err; >> >> >> + >> >> >> + ret = virtnet_set_queues(vi, vi->curr_queue_pairs); >> >> >> + if (ret) >> >> >> + goto err; >> >> >> + >> >> >> + virtio_add_status(dev, VIRTIO_CONFIG_S_DRIVER_OK); >> >> >> + virtio_config_enable(dev); >> >> >&gt...
2017 Oct 17
2
[PATCH net-next] virtio_net: implement VIRTIO_CONFIG_S_NEEDS_RESET
...> > > > + ret = virtnet_restore_up(dev); > > > > > > > > + if (ret) > > > > > > > > + goto err; > > > > > > > > + > > > > > > > > + ret = virtnet_set_queues(vi, vi->curr_queue_pairs); > > > > > > > > + if (ret) > > > > > > > > + goto err; > > > > > > > > + > > > > > > > > + virtio_add_status(dev, VIRTIO_CONFIG_S_DRIVER_OK); > > > > > > &gt...
2017 Oct 16
2
[PATCH net-next] virtio_net: implement VIRTIO_CONFIG_S_NEEDS_RESET
...R); >> + >> + ret = virtio_finalize_features(dev); >> + if (ret) >> + goto err; >> + >> + ret = virtnet_restore_up(dev); >> + if (ret) >> + goto err; >> + >> + ret = virtnet_set_queues(vi, vi->curr_queue_pairs); >> + if (ret) >> + goto err; >> + >> + virtio_add_status(dev, VIRTIO_CONFIG_S_DRIVER_OK); >> + virtio_config_enable(dev); >> + return 0; >> + >> +err: >> + virtio_add_status(dev, VIRTIO_CONFIG_S_FAILED); &...
2017 Oct 16
2
[PATCH net-next] virtio_net: implement VIRTIO_CONFIG_S_NEEDS_RESET
...R); >> + >> + ret = virtio_finalize_features(dev); >> + if (ret) >> + goto err; >> + >> + ret = virtnet_restore_up(dev); >> + if (ret) >> + goto err; >> + >> + ret = virtnet_set_queues(vi, vi->curr_queue_pairs); >> + if (ret) >> + goto err; >> + >> + virtio_add_status(dev, VIRTIO_CONFIG_S_DRIVER_OK); >> + virtio_config_enable(dev); >> + return 0; >> + >> +err: >> + virtio_add_status(dev, VIRTIO_CONFIG_S_FAILED); &...
2017 Oct 16
0
[PATCH net-next] virtio_net: implement VIRTIO_CONFIG_S_NEEDS_RESET
...io_finalize_features(dev); > >> + if (ret) > >> + goto err; > >> + > >> + ret = virtnet_restore_up(dev); > >> + if (ret) > >> + goto err; > >> + > >> + ret = virtnet_set_queues(vi, vi->curr_queue_pairs); > >> + if (ret) > >> + goto err; > >> + > >> + virtio_add_status(dev, VIRTIO_CONFIG_S_DRIVER_OK); > >> + virtio_config_enable(dev); > >> + return 0; > >> + > >> +err: > >> + virt...
2017 Oct 17
0
[PATCH net-next] virtio_net: implement VIRTIO_CONFIG_S_NEEDS_RESET
...rr; >>>>>>> + >>>>>>> + ret = virtnet_restore_up(dev); >>>>>>> + if (ret) >>>>>>> + goto err; >>>>>>> + >>>>>>> + ret = virtnet_set_queues(vi, vi->curr_queue_pairs); >>>>>>> + if (ret) >>>>>>> + goto err; >>>>>>> + >>>>>>> + virtio_add_status(dev, VIRTIO_CONFIG_S_DRIVER_OK); >>>>>>> + virtio_config_enable(dev); >>>&gt...
2017 Oct 16
0
[PATCH net-next] virtio_net: implement VIRTIO_CONFIG_S_NEEDS_RESET
...t;> >> + goto err; > >> >> + > >> >> + ret = virtnet_restore_up(dev); > >> >> + if (ret) > >> >> + goto err; > >> >> + > >> >> + ret = virtnet_set_queues(vi, vi->curr_queue_pairs); > >> >> + if (ret) > >> >> + goto err; > >> >> + > >> >> + virtio_add_status(dev, VIRTIO_CONFIG_S_DRIVER_OK); > >> >> + virtio_config_enable(dev); > >> >> + return 0; > &...
2017 Dec 28
0
[PATCH net-next] virtio_net: implement VIRTIO_CONFIG_S_NEEDS_RESET
...gt; + ret = virtnet_restore_up(dev); >> > > > > > > > + if (ret) >> > > > > > > > + goto err; >> > > > > > > > + >> > > > > > > > + ret = virtnet_set_queues(vi, vi->curr_queue_pairs); >> > > > > > > > + if (ret) >> > > > > > > > + goto err; >> > > > > > > > + >> > > > > > > > + virtio_add_status(dev, VIRTIO_CONFIG_S_DRIVER_OK); >> > &gt...
2016 Nov 27
2
[PATCH v2 2/2] crypto: add virtio-crypto driver
...ypto *vi) > +{ > + int i; > + int cpu; > + > + /* > + * In multiqueue mode, when the number of cpu is equal to the number > + * of queue, we let the queue to be private to one cpu by > + * setting the affinity hint to eliminate the contention. > + */ > + if (vi->curr_queue == 1 || > + vi->max_data_queues != num_online_cpus()) { > + virtcrypto_clean_affinity(vi, -1); > + return; > + } > + So how can you handle cpu hotplug then? I would imagine making max_data_queues > num_online_cpus and initializing just the required number would be a sane...
2016 Nov 27
2
[PATCH v2 2/2] crypto: add virtio-crypto driver
...ypto *vi) > +{ > + int i; > + int cpu; > + > + /* > + * In multiqueue mode, when the number of cpu is equal to the number > + * of queue, we let the queue to be private to one cpu by > + * setting the affinity hint to eliminate the contention. > + */ > + if (vi->curr_queue == 1 || > + vi->max_data_queues != num_online_cpus()) { > + virtcrypto_clean_affinity(vi, -1); > + return; > + } > + So how can you handle cpu hotplug then? I would imagine making max_data_queues > num_online_cpus and initializing just the required number would be a sane...
2016 Nov 28
0
[virtio-dev] Re: [PATCH v2 2/2] crypto: add virtio-crypto driver
...; + int cpu; > > + > > + /* > > + * In multiqueue mode, when the number of cpu is equal to the number > > + * of queue, we let the queue to be private to one cpu by > > + * setting the affinity hint to eliminate the contention. > > + */ > > + if (vi->curr_queue == 1 || > > + vi->max_data_queues != num_online_cpus()) { > > + virtcrypto_clean_affinity(vi, -1); > > + return; > > + } > > + > > So how can you handle cpu hotplug then? > I would imagine making max_data_queues > num_online_cpus > and initiali...
2013 Mar 27
3
[PATCH 0/2] virtio-spec: dynamic network offloads configuration
From: Dmitry Fleytman <dfleytma at redhat.com> One of recently introduced Windows features (RSC) requires network driver to be able to enable and disable HW LRO offload on the fly without device reinitialization. Current Virtio specification doesn't support this requirement. The solution proposed by following spec patch is to add a new control command for this purpose. The same
2013 Mar 27
3
[PATCH 0/2] virtio-spec: dynamic network offloads configuration
From: Dmitry Fleytman <dfleytma at redhat.com> One of recently introduced Windows features (RSC) requires network driver to be able to enable and disable HW LRO offload on the fly without device reinitialization. Current Virtio specification doesn't support this requirement. The solution proposed by following spec patch is to add a new control command for this purpose. The same
2016 Nov 22
0
[PATCH v2 2/2] crypto: add virtio-crypto driver
...atic void virtcrypto_set_affinity(struct virtio_crypto *vi) +{ + int i; + int cpu; + + /* + * In multiqueue mode, when the number of cpu is equal to the number + * of queue, we let the queue to be private to one cpu by + * setting the affinity hint to eliminate the contention. + */ + if (vi->curr_queue == 1 || + vi->max_data_queues != num_online_cpus()) { + virtcrypto_clean_affinity(vi, -1); + return; + } + + i = 0; + for_each_online_cpu(cpu) { + virtqueue_set_affinity(vi->data_vq[i].vq, cpu); + i++; + } + + vi->affinity_hint_set = true; +} + +static void virtcrypto_free_queues(s...
2016 Nov 28
0
[PATCH v3] crypto: add virtio-crypto driver
...ues; i++) + virtqueue_set_affinity(vi->data_vq[i].vq, -1); + + vi->affinity_hint_set = false; + } +} + +static void virtcrypto_set_affinity(struct virtio_crypto *vcrypto) +{ + int i = 0; + int cpu; + + /* + * In single queue mode, we don't set the cpu affinity. + */ + if (vcrypto->curr_queue == 1 || vcrypto->max_data_queues == 1) { + virtcrypto_clean_affinity(vcrypto, -1); + return; + } + + /* + * In multiqueue mode, we let the queue to be private to one cpu + * by setting the affinity hint to eliminate the contention. + * + * TODO: adds cpu hotplug support by register cpu not...
2016 Nov 29
0
[PATCH v4 1/1] crypto: add virtio-crypto driver
...ta_vq; + + /* To protect the vq operations for the dataq */ + spinlock_t lock; + + /* To protect the vq operations for the controlq */ + spinlock_t ctrl_lock; + + /* Maximum of data queues supported by the device */ + u32 max_data_queues; + + /* Number of queue currently used by the driver */ + u32 curr_queue; + + /* Maximum length of cipher key */ + u32 max_cipher_key_len; + /* Maximum length of authenticated key */ + u32 max_auth_key_len; + /* Maximum size of per request */ + u64 max_size; + + /* Control VQ buffers: protected by the ctrl_lock */ + struct virtio_crypto_op_ctrl_req ctrl; + struct virtio...
2013 Apr 02
3
[PATCH 0/2 V3] virtio-spec/net: dynamic network offloads configuration
From: Dmitry Fleytman <dfleytma at redhat.com> V3 changes: 1. Compat macro added 2. Feature name beautification V2 changes: 1. _GUEST_ added to command and feature names 2. Live migration logic fixed Reported-by: Michael S. Tsirkin <mst at redhat.com> One of recently introduced Windows features (RSC) requires network driver to be able to enable and disable HW LRO offload on