search for: virtio_net_num_queu

Displaying 6 results from an estimated 6 matches for "virtio_net_num_queu".

Did you mean: virtio_net_num_queues
2011 Nov 11
1
[RFC] kvm tools: Implement multiple VQ for virtio-net
...AX_VQ 16 #define VIRTIO_PCI_MAX_CONFIG 1 struct kvm; diff --git a/tools/kvm/virtio/net.c b/tools/kvm/virtio/net.c index cee2b5b..0754795 100644 --- a/tools/kvm/virtio/net.c +++ b/tools/kvm/virtio/net.c @@ -27,9 +27,8 @@ #include <sys/wait.h> #define VIRTIO_NET_QUEUE_SIZE 128 -#define VIRTIO_NET_NUM_QUEUES 2 -#define VIRTIO_NET_RX_QUEUE 0 -#define VIRTIO_NET_TX_QUEUE 1 +#define VIRTIO_NET_NUM_QUEUES 16 +#define VIRTIO_NET_IS_RX_QUEUE(x) (((x) % 2) == 0) struct net_dev; @@ -49,14 +48,13 @@ struct net_dev { struct virtio_net_config config; u32 features; - pthread_t io_rx_thread; -...
2011 Nov 11
1
[RFC] kvm tools: Implement multiple VQ for virtio-net
...AX_VQ 16 #define VIRTIO_PCI_MAX_CONFIG 1 struct kvm; diff --git a/tools/kvm/virtio/net.c b/tools/kvm/virtio/net.c index cee2b5b..0754795 100644 --- a/tools/kvm/virtio/net.c +++ b/tools/kvm/virtio/net.c @@ -27,9 +27,8 @@ #include <sys/wait.h> #define VIRTIO_NET_QUEUE_SIZE 128 -#define VIRTIO_NET_NUM_QUEUES 2 -#define VIRTIO_NET_RX_QUEUE 0 -#define VIRTIO_NET_TX_QUEUE 1 +#define VIRTIO_NET_NUM_QUEUES 16 +#define VIRTIO_NET_IS_RX_QUEUE(x) (((x) % 2) == 0) struct net_dev; @@ -49,14 +48,13 @@ struct net_dev { struct virtio_net_config config; u32 features; - pthread_t io_rx_thread; -...
2015 Nov 18
2
[RFC] kvmtool: add support for modern virtio-pci
...mio->dev, val, vmmio->hdr.host_features_sel); break; case VIRTIO_MMIO_GUEST_PAGE_SIZE: val = ioport__read32(data); diff --git a/virtio/net.c b/virtio/net.c index 6d1be65..061ca4e 100644 --- a/virtio/net.c +++ b/virtio/net.c @@ -43,7 +43,8 @@ struct net_dev { struct virt_queue vqs[VIRTIO_NET_NUM_QUEUES * 2 + 1]; struct virtio_net_config config; - u32 features, rx_vqs, tx_vqs, queue_pairs; + u64 features; + u32 rx_vqs, tx_vqs, queue_pairs; pthread_t io_thread[VIRTIO_NET_NUM_QUEUES * 2 + 1]; struct mutex io_lock[VIRTIO_NET_NUM_QUEUES * 2 + 1]; @@ -431,11 +432,10 @@ static u8...
2015 Nov 18
2
[RFC] kvmtool: add support for modern virtio-pci
...mio->dev, val, vmmio->hdr.host_features_sel); break; case VIRTIO_MMIO_GUEST_PAGE_SIZE: val = ioport__read32(data); diff --git a/virtio/net.c b/virtio/net.c index 6d1be65..061ca4e 100644 --- a/virtio/net.c +++ b/virtio/net.c @@ -43,7 +43,8 @@ struct net_dev { struct virt_queue vqs[VIRTIO_NET_NUM_QUEUES * 2 + 1]; struct virtio_net_config config; - u32 features, rx_vqs, tx_vqs, queue_pairs; + u64 features; + u32 rx_vqs, tx_vqs, queue_pairs; pthread_t io_thread[VIRTIO_NET_NUM_QUEUES * 2 + 1]; struct mutex io_lock[VIRTIO_NET_NUM_QUEUES * 2 + 1]; @@ -431,11 +432,10 @@ static u8...
2011 Nov 15
2
[RFC] kvm tools: Add support for virtio-mmio
...t a/tools/kvm/virtio/net.c b/tools/kvm/virtio/net.c index cee2b5b..cfaab8c 100644 --- a/tools/kvm/virtio/net.c +++ b/tools/kvm/virtio/net.c @@ -26,7 +26,7 @@ #include <sys/types.h> #include <sys/wait.h> -#define VIRTIO_NET_QUEUE_SIZE 128 +#define VIRTIO_NET_QUEUE_SIZE 256 #define VIRTIO_NET_NUM_QUEUES 2 #define VIRTIO_NET_RX_QUEUE 0 #define VIRTIO_NET_TX_QUEUE 1 @@ -410,7 +410,11 @@ void virtio_net__init(const struct virtio_net_params *params) ndev->ops = &uip_ops; } - virtio_trans_init(&ndev->vtrans, VIRTIO_PCI); + if (params->virtio_trans && + strcmp(par...
2011 Nov 15
2
[RFC] kvm tools: Add support for virtio-mmio
...t a/tools/kvm/virtio/net.c b/tools/kvm/virtio/net.c index cee2b5b..cfaab8c 100644 --- a/tools/kvm/virtio/net.c +++ b/tools/kvm/virtio/net.c @@ -26,7 +26,7 @@ #include <sys/types.h> #include <sys/wait.h> -#define VIRTIO_NET_QUEUE_SIZE 128 +#define VIRTIO_NET_QUEUE_SIZE 256 #define VIRTIO_NET_NUM_QUEUES 2 #define VIRTIO_NET_RX_QUEUE 0 #define VIRTIO_NET_TX_QUEUE 1 @@ -410,7 +410,11 @@ void virtio_net__init(const struct virtio_net_params *params) ndev->ops = &uip_ops; } - virtio_trans_init(&ndev->vtrans, VIRTIO_PCI); + if (params->virtio_trans && + strcmp(par...