]> Git Repo - qemu.git/blobdiff - net/tap.c
qtest: use synchronous I/O for char device
[qemu.git] / net / tap.c
index ce796997a35833343336b88f72376ec25b490de2..e7c84811ac37d4f2e12ef562e346f1473e1a362a 100644 (file)
--- a/net/tap.c
+++ b/net/tap.c
 
 #include "hw/vhost_net.h"
 
-/* Maximum GSO packet size (64k) plus plenty of room for
- * the ethernet and virtio_net headers
- */
-#define TAP_BUFSIZE (4096 + 65536)
-
 typedef struct TAPState {
     NetClientState nc;
     int fd;
     char down_script[1024];
     char down_script_arg[128];
-    uint8_t buf[TAP_BUFSIZE];
+    uint8_t buf[NET_BUFSIZE];
     bool read_poll;
     bool write_poll;
     bool using_vnet_hdr;
This page took 0.027618 seconds and 4 git commands to generate.