Displaying 12 results from an estimated 12 matches for "vlanstat".
Did you mean:
vlanstate
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
2009 Nov 02
0
[PATCHv4 3/6] qemu/net: add raw backend
...ff --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;
+ struct ifreq req;
+ struct s...
2009 Nov 02
0
[PATCHv4 3/6] qemu/net: add raw backend
...ff --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;
+ struct ifreq req;
+ struct s...
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
2007 Dec 21
2
[Virtio-for-kvm] [PATCH 7/7] userspace virtio
...VirtIONetHead = n;
return &n->vdev;
}
diff --git a/qemu/sysemu.h b/qemu/sysemu.h
index e20159d..4bedd11 100644
--- a/qemu/sysemu.h
+++ b/qemu/sysemu.h
@@ -66,6 +66,9 @@ void qemu_del_wait_object(HANDLE handle,
WaitObjectFunc *func, void *opaque);
/* TAP win32 */
int tap_win32_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 {
V...
2007 Dec 21
2
[Virtio-for-kvm] [PATCH 7/7] userspace virtio
...VirtIONetHead = n;
return &n->vdev;
}
diff --git a/qemu/sysemu.h b/qemu/sysemu.h
index e20159d..4bedd11 100644
--- a/qemu/sysemu.h
+++ b/qemu/sysemu.h
@@ -66,6 +66,9 @@ void qemu_del_wait_object(HANDLE handle,
WaitObjectFunc *func, void *opaque);
/* TAP win32 */
int tap_win32_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 {
V...
2009 Jun 21
0
[PATCHv6 12/12] qemu/net: flag to control the number of vectors a nic has
...6..f8b9eac 100644
--- a/net.h
+++ b/net.h
@@ -83,6 +83,9 @@ int do_set_link(Monitor *mon, const char *name, const char *up_or_down);
/* NIC info */
#define MAX_NICS 8
+enum {
+ NIC_NVECTORS_UNSPECIFIED = -1
+};
struct NICInfo {
uint8_t macaddr[6];
@@ -91,6 +94,7 @@ struct NICInfo {
VLANState *vlan;
void *private;
int used;
+ int nvectors;
};
extern int nb_nics;
diff --git a/qemu-options.hx b/qemu-options.hx
index 9d5e05a..a8a1db4 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -733,7 +733,7 @@ STEXI
ETEXI
DEF("net", HAS_ARG, QEMU_OPTION_net,
- &...
2009 Jun 21
0
[PATCHv6 12/12] qemu/net: flag to control the number of vectors a nic has
...6..f8b9eac 100644
--- a/net.h
+++ b/net.h
@@ -83,6 +83,9 @@ int do_set_link(Monitor *mon, const char *name, const char *up_or_down);
/* NIC info */
#define MAX_NICS 8
+enum {
+ NIC_NVECTORS_UNSPECIFIED = -1
+};
struct NICInfo {
uint8_t macaddr[6];
@@ -91,6 +94,7 @@ struct NICInfo {
VLANState *vlan;
void *private;
int used;
+ int nvectors;
};
extern int nb_nics;
diff --git a/qemu-options.hx b/qemu-options.hx
index 9d5e05a..a8a1db4 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -733,7 +733,7 @@ STEXI
ETEXI
DEF("net", HAS_ARG, QEMU_OPTION_net,
- &...
2009 Aug 10
0
[PATCH 3/3] qemu-kvm: vhost-net implementation
...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)
}
if (!strcmp(device, &...
2009 Aug 10
0
[PATCH 3/3] qemu-kvm: vhost-net implementation
...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)
}
if (!strcmp(device, &...