Displaying 2 results from an estimated 2 matches for "tap_receive".
Did you mean:
can_receive
2007 Dec 21
2
[Virtio-for-kvm] [PATCH 7/7] userspace virtio
...nt 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)
+{
+ TAPState *s = opaque;
+ return (!s->no_poll);
+}
+
static void tap_receive(void *opaque, const uint8_t *buf, int size)
{
TAPState *s = opaque;
@@ -3930,9 +3948,10 @@ static TAPState *net_tap_fd_init(VLANState *vlan,
int fd)
if (!s)
return NULL;
s->fd = fd;
+ s->no_poll = 0;
enable_sigio_timer(fd);
s->vc = qemu_new_vlan_clien...
2007 Dec 21
2
[Virtio-for-kvm] [PATCH 7/7] userspace virtio
...nt 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)
+{
+ TAPState *s = opaque;
+ return (!s->no_poll);
+}
+
static void tap_receive(void *opaque, const uint8_t *buf, int size)
{
TAPState *s = opaque;
@@ -3930,9 +3948,10 @@ static TAPState *net_tap_fd_init(VLANState *vlan,
int fd)
if (!s)
return NULL;
s->fd = fd;
+ s->no_poll = 0;
enable_sigio_timer(fd);
s->vc = qemu_new_vlan_clien...