search for: tapstat

Displaying 12 results from an estimated 12 matches for "tapstat".

Did you mean: tapstate
2007 Dec 21
2
[Virtio-for-kvm] [PATCH 7/7] userspace virtio
...n32_init(VLANState *vlan, const char *ifname); +/* virtio hack for zero copy receive */ +int get_tap_fd(void *opaque); + /* SLIRP */ void do_info_slirp(void); diff --git a/qemu/vl.c b/qemu/vl.c index 26055a4..eef602a 100644 --- a/qemu/vl.c +++ b/qemu/vl.c @@ -3885,8 +3885,26 @@ typedef struct TAPState { VLANClientState *vc; int fd; char down_script[1024]; + int no_poll; } TAPState; +int get_tap_fd(void *opaque) +{ + TAPState *s = opaque; + + if (s) { + s->no_poll = 1; + return s->fd; + } + return -1; +} + +static int tap_read_poll(void *opaque)...
2007 Dec 21
2
[Virtio-for-kvm] [PATCH 7/7] userspace virtio
...n32_init(VLANState *vlan, const char *ifname); +/* virtio hack for zero copy receive */ +int get_tap_fd(void *opaque); + /* SLIRP */ void do_info_slirp(void); diff --git a/qemu/vl.c b/qemu/vl.c index 26055a4..eef602a 100644 --- a/qemu/vl.c +++ b/qemu/vl.c @@ -3885,8 +3885,26 @@ typedef struct TAPState { VLANClientState *vc; int fd; char down_script[1024]; + int no_poll; } TAPState; +int get_tap_fd(void *opaque) +{ + TAPState *s = opaque; + + if (s) { + s->no_poll = 1; + return s->fd; + } + return -1; +} + +static int tap_read_poll(void *opaque)...
2015 May 06
9
[PATCH RFC 0/7] vhost: cross-endian support (vhost-net only)
Hi, This series allows QEMU to use vhost with legacy virtio devices when host and target don't have the same endianness. Only network devices are covered for the moment. I had already posted a series some monthes ago but it never got reviewed. Moreover, the underlying kernel support was entirely re-written and is still waiting to be applied by Michael. I hence post as RFC. The corresponding
2015 May 06
9
[PATCH RFC 0/7] vhost: cross-endian support (vhost-net only)
Hi, This series allows QEMU to use vhost with legacy virtio devices when host and target don't have the same endianness. Only network devices are covered for the moment. I had already posted a series some monthes ago but it never got reviewed. Moreover, the underlying kernel support was entirely re-written and is still waiting to be applied by Michael. I hence post as RFC. The corresponding
2012 Jun 25
4
[RFC V2 PATCH 0/4] Multiqueue support for tap and virtio-net/vhost
Hello all: This seires is an update of last version of multiqueue support to add multiqueue capability to both tap and virtio-net. Some kinds of tap backends has (macvatp in linux) or would (tap) support multiqueue. In such kind of tap backend, each file descriptor of a tap is a qeueu and ioctls were prodived to attach an exist tap file descriptor to the tun/tap device. So the patch let qemu to
2012 Jun 25
4
[RFC V2 PATCH 0/4] Multiqueue support for tap and virtio-net/vhost
Hello all: This seires is an update of last version of multiqueue support to add multiqueue capability to both tap and virtio-net. Some kinds of tap backends has (macvatp in linux) or would (tap) support multiqueue. In such kind of tap backend, each file descriptor of a tap is a qeueu and ioctls were prodived to attach an exist tap file descriptor to the tun/tap device. So the patch let qemu to
2012 Jul 06
5
[RFC V3 0/5] Multiqueue support for tap and virtio-net/vhost
Hello all: This seires is an update of last version of multiqueue support to add multiqueue capability to both tap and virtio-net. Some kinds of tap backends has (macvatp in linux) or would (tap) support multiqueue. In such kind of tap backend, each file descriptor of a tap is a qeueu and ioctls were prodived to attach an exist tap file descriptor to the tun/tap device. So the patch let qemu to
2012 Jul 06
5
[RFC V3 0/5] Multiqueue support for tap and virtio-net/vhost
Hello all: This seires is an update of last version of multiqueue support to add multiqueue capability to both tap and virtio-net. Some kinds of tap backends has (macvatp in linux) or would (tap) support multiqueue. In such kind of tap backend, each file descriptor of a tap is a qeueu and ioctls were prodived to attach an exist tap file descriptor to the tun/tap device. So the patch let qemu to
2009 Nov 02
0
[PATCHv4 3/6] qemu/net: add raw backend
...xit(1); } diff --git a/net.c b/net.c index 8ac639b..1fb2f2f 100644 --- a/net.c +++ b/net.c @@ -93,6 +93,9 @@ #endif #endif +#include <netpacket/packet.h> +#include <net/ethernet.h> + #if defined(__OpenBSD__) #include <util.h> #endif @@ -1870,6 +1873,158 @@ static TAPState *net_tap_init(VLANState *vlan, const char *model, #endif /* !_WIN32 */ +typedef struct RAWState { + VLANClientState *vc; + int fd; + uint8_t buf[4096]; + int promisc; +} RAWState; + +static int net_raw_fd_init(Monitor *mon, const char *ifname, int promisc) +{ + int fd, ret; + stru...
2009 Nov 02
0
[PATCHv4 3/6] qemu/net: add raw backend
...xit(1); } diff --git a/net.c b/net.c index 8ac639b..1fb2f2f 100644 --- a/net.c +++ b/net.c @@ -93,6 +93,9 @@ #endif #endif +#include <netpacket/packet.h> +#include <net/ethernet.h> + #if defined(__OpenBSD__) #include <util.h> #endif @@ -1870,6 +1873,158 @@ static TAPState *net_tap_init(VLANState *vlan, const char *model, #endif /* !_WIN32 */ +typedef struct RAWState { + VLANClientState *vc; + int fd; + uint8_t buf[4096]; + int promisc; +} RAWState; + +static int net_raw_fd_init(Monitor *mon, const char *ifname, int promisc) +{ + int fd, ret; + stru...
2009 Aug 10
0
[PATCH 3/3] qemu-kvm: vhost-net implementation
...onst uint8_t *config); void (*reset)(VirtIODevice *vdev); + void (*driver_ok)(VirtIODevice *vdev); VirtQueue *vq; const VirtIOBindings *binding; void *binding_opaque; diff --git a/net.c b/net.c index 9965da3..d976123 100644 --- a/net.c +++ b/net.c @@ -1903,7 +1903,7 @@ static TAPState *net_tap_init(VLANState *vlan, const char *model, typedef struct RAWState { VLANClientState *vc; int fd; - uint8_t buf[4096]; + uint8_t buf[65000]; int promisc; } RAWState; @@ -2745,7 +2745,8 @@ int net_client_init(Monitor *mon, const char *device, const char *p) }...
2009 Aug 10
0
[PATCH 3/3] qemu-kvm: vhost-net implementation
...onst uint8_t *config); void (*reset)(VirtIODevice *vdev); + void (*driver_ok)(VirtIODevice *vdev); VirtQueue *vq; const VirtIOBindings *binding; void *binding_opaque; diff --git a/net.c b/net.c index 9965da3..d976123 100644 --- a/net.c +++ b/net.c @@ -1903,7 +1903,7 @@ static TAPState *net_tap_init(VLANState *vlan, const char *model, typedef struct RAWState { VLANClientState *vc; int fd; - uint8_t buf[4096]; + uint8_t buf[65000]; int promisc; } RAWState; @@ -2745,7 +2745,8 @@ int net_client_init(Monitor *mon, const char *device, const char *p) }...