Michael S. Tsirkin
d9d52b5178
tun: add ioctl to modify vnet header size
...
virtio added mergeable buffers mode where 2 bytes of extra info is put
after vnet header but before actual data (tun does not need this data).
In hindsight, it would have been better to add the new info *before* the
packet: as it is, users need a lot of tricky code to skip the extra 2
bytes in the middle of the iovec, and in fact applications seem to get
it wrong, and only work with specific iovec layout. The fact we might
need to split iovec also means we might in theory overflow iovec max
size.
This patch adds a simpler way for applications to handle this,
and future proofs the interface against further extensions,
by making the size of the virtio net header configurable
from userspace. As a result, tun driver will simply
skip the extra 2 bytes on both input and output.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
Acked-by: David S. Miller <davem@davemloft.net >
2010-05-03 12:33:13 +03:00
..
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-04-11 14:53:53 -07:00
2010-04-11 14:53:53 -07:00
2010-04-14 16:11:33 -07:00
2010-04-14 16:11:33 -07:00
2010-04-14 16:11:33 -07:00
2010-04-06 23:53:30 -07:00
2010-04-28 12:55:10 -07:00
2010-04-27 12:49:13 -07:00
2010-04-14 16:11:33 -07:00
2010-04-11 14:53:53 -07:00
2010-04-27 12:49:13 -07:00
2010-04-27 16:22:42 -07:00
2010-04-27 17:05:03 -07:00
2010-05-02 22:02:06 -07:00
2010-04-21 22:32:44 -07:00
2010-04-11 14:53:53 -07:00
2010-04-11 14:53:53 -07:00
2010-04-11 14:53:53 -07:00
2010-04-11 14:53:53 -07:00
2010-04-28 14:24:51 -07:00
2010-04-27 16:29:51 -07:00
2010-04-11 14:53:53 -07:00
2010-04-27 16:29:51 -07:00
2010-04-27 19:47:49 -07:00
2010-04-27 16:29:52 -07:00
2010-03-30 22:02:32 +09:00
2010-04-11 14:53:53 -07:00
2010-04-14 16:11:33 -07:00
2010-04-11 14:53:53 -07:00
2010-04-13 03:32:43 -07:00
2010-05-02 22:02:06 -07:00
2010-04-13 03:29:36 -07:00
2010-04-22 15:28:32 -07:00
2010-04-13 02:54:19 -07:00
2010-05-02 22:02:06 -07:00
2010-04-11 14:53:53 -07:00
2010-04-14 04:49:53 -07:00
2010-04-11 14:53:53 -07:00
2010-04-11 14:53:53 -07:00
2010-05-02 22:02:06 -07:00
2010-04-13 03:32:43 -07:00
2010-04-11 14:53:53 -07:00
2010-04-22 16:12:51 -07:00
2010-04-11 14:53:53 -07:00
2010-05-02 22:02:06 -07:00
2010-04-14 16:11:33 -07:00
2010-03-30 22:02:32 +09:00
2010-04-07 20:55:47 -07:00
2010-04-11 14:53:53 -07:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-04-11 14:53:53 -07:00
2010-04-03 14:22:15 -07:00
2010-04-11 14:53:53 -07:00
2010-04-11 14:53:53 -07:00
2010-04-21 01:14:25 -07:00
2010-04-11 14:53:53 -07:00
2010-04-11 14:53:53 -07:00
2010-04-11 14:53:53 -07:00
2010-04-01 18:38:33 -07:00
2010-04-11 14:53:53 -07:00
2010-02-22 15:45:51 -08:00
2010-03-30 22:02:32 +09:00
2009-12-04 15:39:55 +01:00
2010-04-11 14:53:53 -07:00
2010-03-30 22:02:32 +09:00
2010-04-11 14:53:53 -07:00
2010-04-07 02:07:50 -07:00
2010-04-07 02:07:49 -07:00
2010-03-30 22:02:32 +09:00
2010-04-11 14:53:53 -07:00
2010-04-13 03:32:43 -07:00
2009-09-17 20:07:53 +02:00
2010-04-03 14:22:15 -07:00
2010-04-11 14:53:53 -07:00
2010-05-02 22:02:06 -07:00
2010-04-07 21:05:35 -07:00
2010-02-17 13:35:44 -08:00
2010-02-17 13:35:44 -08:00
2010-02-17 13:35:44 -08:00
2010-03-24 14:10:38 -07:00
2009-11-05 20:00:29 -08:00
2010-04-28 09:54:36 -07:00
2010-04-19 13:17:05 -07:00
2010-04-23 00:10:52 -07:00
2010-04-03 14:22:15 -07:00
2010-02-26 02:10:14 -08:00
2010-02-26 02:10:14 -08:00
2010-04-07 20:53:54 -07:00
2010-02-26 02:10:14 -08:00
2010-04-03 14:22:15 -07:00
2010-03-30 22:02:32 +09:00
2010-04-03 14:22:15 -07:00
2010-02-12 11:38:58 -08:00
2010-04-03 14:22:15 -07:00
2010-04-03 14:22:15 -07:00
2010-04-03 14:22:15 -07:00
2010-04-03 14:22:15 -07:00
2010-01-07 23:54:26 -08:00
2010-04-11 14:53:53 -07:00
2009-11-11 19:22:21 -08:00
2010-03-24 14:10:38 -07:00
2010-04-27 12:49:13 -07:00
2009-12-03 13:18:01 -08:00
2010-04-11 14:53:53 -07:00
2010-04-11 14:53:53 -07:00
2010-03-30 22:02:32 +09:00
2010-04-11 14:53:53 -07:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-04-11 14:53:53 -07:00
2010-04-03 14:22:15 -07:00
2010-04-11 14:53:53 -07:00
2010-03-30 22:02:32 +09:00
2010-04-11 14:53:53 -07:00
2010-04-03 14:22:15 -07:00
2010-04-30 16:15:38 -07:00
2010-04-23 16:20:25 -07:00
2009-11-02 23:40:57 -08:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-05-02 22:02:06 -07:00
2010-04-13 01:41:31 -07:00
2010-04-11 14:53:53 -07:00
2010-02-17 15:59:40 -08:00
2010-04-11 14:53:53 -07:00
2010-04-11 14:53:53 -07:00
2009-12-03 13:18:01 -08:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-04-11 14:53:53 -07:00
2010-04-11 14:53:53 -07:00
2009-11-20 15:35:04 -08:00
2010-04-11 14:53:53 -07:00
2010-04-11 14:53:53 -07:00
2010-03-30 23:42:26 -07:00
2010-04-11 14:53:53 -07:00
2010-03-30 22:02:32 +09:00
2010-04-11 14:53:53 -07:00
2010-03-18 21:14:00 -07:00
2010-04-13 01:33:44 -07:00
2010-04-03 14:22:15 -07:00
2010-04-21 16:33:29 -07:00
2010-04-11 14:53:53 -07:00
2010-04-27 12:49:13 -07:00
2009-10-20 19:11:06 -07:00
2010-04-14 16:11:33 -07:00
2010-02-12 11:38:58 -08:00
2010-03-30 22:02:32 +09:00
2010-04-21 16:23:30 -07:00
2010-04-11 14:53:53 -07:00
2010-04-13 01:33:44 -07:00
2010-03-30 22:02:32 +09:00
2010-04-13 01:33:44 -07:00
2010-02-16 23:05:38 -08:00
2010-04-03 14:22:15 -07:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-04-07 21:53:41 -07:00
2010-04-11 14:53:53 -07:00
2010-04-11 14:53:53 -07:00
2010-03-30 22:02:32 +09:00
2010-04-03 14:22:11 -07:00
2010-05-01 15:00:15 -07:00
2010-04-27 12:49:13 -07:00
2009-10-12 23:59:08 -07:00
2010-01-28 06:01:35 -08:00
2009-09-03 20:02:11 -07:00
2009-11-18 23:29:17 -08:00
2010-04-11 14:53:53 -07:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-04-03 14:22:15 -07:00
2010-03-30 22:02:32 +09:00
2010-01-07 23:54:26 -08:00
2010-03-16 14:15:42 -07:00
2010-03-30 22:02:32 +09:00
2009-11-18 23:29:17 -08:00
2010-04-11 14:53:53 -07:00
2010-02-12 11:38:58 -08:00
2010-03-30 22:02:32 +09:00
2010-04-22 15:48:17 -07:00
2010-04-22 15:48:17 -07:00
2010-03-30 22:02:32 +09:00
2009-10-12 13:26:39 -07:00
2010-03-30 22:02:32 +09:00
2010-04-03 14:22:15 -07:00
2010-04-03 14:22:15 -07:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2009-12-03 13:18:01 -08:00
2010-04-11 14:53:53 -07:00
2009-12-03 13:18:01 -08:00
2010-03-30 22:02:32 +09:00
2010-04-26 11:18:44 -07:00
2010-03-30 22:02:32 +09:00
2010-04-11 14:53:53 -07:00
2009-12-02 00:52:31 -08:00
2010-04-11 14:53:53 -07:00
2009-11-09 09:40:57 +01:00
2010-04-13 02:54:17 -07:00
2010-04-13 02:54:17 -07:00
2010-04-13 01:29:41 -07:00
2010-04-30 16:20:39 -07:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-04-14 16:11:33 -07:00
2010-03-30 23:51:10 -07:00
2010-03-30 22:02:32 +09:00
2010-05-02 22:02:06 -07:00
2010-04-03 14:22:15 -07:00
2010-03-30 22:02:32 +09:00
2010-04-06 08:34:06 -07:00
2010-03-30 22:02:32 +09:00
2009-10-13 03:44:05 -07:00
2010-04-11 14:53:53 -07:00
2010-04-03 14:22:15 -07:00
2010-04-11 14:53:53 -07:00
2009-10-01 15:14:54 -07:00
2010-04-28 10:07:44 -07:00
2010-04-28 10:07:44 -07:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-04-11 14:53:53 -07:00
2010-03-10 07:37:06 -08:00
2010-04-11 14:53:53 -07:00
2010-02-15 09:27:02 -08:00
2010-04-11 14:53:53 -07:00
2009-12-03 13:18:01 -08:00
2010-04-11 14:53:53 -07:00
2009-12-04 15:39:55 +01:00
2010-04-11 14:53:53 -07:00
2010-03-30 22:02:32 +09:00
2010-04-03 14:22:15 -07:00
2010-04-11 14:53:53 -07:00
2010-04-03 14:22:15 -07:00
2010-04-11 14:53:53 -07:00
2010-03-30 22:02:32 +09:00
2010-04-11 14:53:53 -07:00
2010-04-11 14:53:53 -07:00
2010-04-11 14:53:53 -07:00
2009-12-03 13:18:01 -08:00
2010-04-03 14:22:15 -07:00
2010-04-11 14:53:53 -07:00
2010-04-03 14:22:15 -07:00
2010-04-03 14:22:15 -07:00
2010-04-03 14:22:15 -07:00
2010-04-14 16:11:33 -07:00
2010-03-30 22:02:32 +09:00
2010-04-27 12:49:13 -07:00
2010-04-13 02:54:16 -07:00
2010-04-03 14:22:15 -07:00
2010-01-13 20:37:01 -08:00
2010-04-14 16:11:33 -07:00
2010-05-03 12:33:13 +03:00
2010-04-11 14:53:53 -07:00
2010-03-30 22:02:32 +09:00
2010-04-03 14:22:15 -07:00
2010-01-06 20:32:38 -08:00
2010-03-30 22:02:32 +09:00
2010-04-11 14:53:53 -07:00
2010-04-06 23:53:30 -07:00
2010-04-06 14:24:53 -07:00
2010-04-14 06:45:44 -07:00
2010-03-30 22:02:32 +09:00
2010-04-11 14:53:53 -07:00
2010-03-30 22:02:32 +09:00
2010-04-11 14:53:53 -07:00
2010-03-30 22:02:32 +09:00