Herbert Xu
2eb783c43e
tun: Fix TUN_PKT_STRIP setting
...
We set the flag TUN_PKT_STRIP if the user buffer provided is too
small to contain the entire packet plus meta-data. However, this
has been broken ever since we added GSO meta-data. VLAN acceleration
also has the same problem.
This patch fixes this by taking both into account when setting the
TUN_PKT_STRIP flag.
The fact that this has been broken for six years without anyone
realising means that nobody actually uses this flag.
Fixes: f43798c27684 ("tun: Allow GSO using virtio_net_hdr")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-11-03 14:27:06 -05:00
..
2014-10-31 22:24:44 +01:00
2014-10-18 18:11:04 -07:00
2014-10-17 11:55:32 -04:00
2014-10-31 19:08:25 -07:00
2014-10-23 14:02:06 -04:00
2014-10-31 15:00:48 -07:00
2014-10-13 11:28:42 +02:00
2014-10-08 17:37:16 -04:00
2014-10-24 12:33:32 -07:00
2014-10-15 07:05:03 +02:00
2014-10-26 20:50:00 +01:00
2014-10-27 23:27:35 +01:00
2014-10-24 12:48:47 -07:00
2014-10-14 10:51:23 +02:00
2014-10-18 18:11:04 -07:00
2014-10-09 02:39:07 -04:00
2014-10-22 22:59:00 +02:00
2014-10-23 14:45:09 -07:00
2014-10-09 14:58:15 -04:00
2014-10-23 14:09:04 +10:00
2014-10-29 11:52:35 -07:00
2014-10-19 18:41:18 -07:00
2014-10-19 12:50:44 -07:00
2014-10-18 12:12:45 -07:00
2014-10-31 15:04:58 -07:00
2014-10-31 19:51:11 -07:00
2014-10-15 07:23:49 +02:00
2014-10-15 07:48:18 +02:00
2014-10-14 15:05:35 -04:00
2014-10-21 08:18:38 -07:00
2014-10-21 11:21:19 -07:00
2014-10-18 12:25:30 -07:00
2014-10-24 09:36:59 -02:00
2014-10-14 02:18:22 +02:00
2014-10-07 21:29:18 -04:00
2014-10-15 06:58:16 +02:00
2014-10-28 19:52:52 +11:00
2014-10-18 12:12:45 -07:00
2014-10-18 18:11:04 -07:00
2014-11-03 14:27:06 -05:00
2014-10-07 14:48:29 -04:00
2014-10-17 07:08:51 -04:00
2014-10-29 16:33:14 -07:00
2014-10-13 16:23:15 +02:00
2014-10-31 18:48:29 -07:00
2014-10-09 14:58:15 -04:00
2014-10-14 02:18:25 +02:00
2014-10-14 02:18:25 +02:00
2014-10-22 10:08:22 +02:00
2014-10-21 08:17:43 -07:00
2014-10-27 11:26:24 +00:00
2014-10-29 16:33:14 -07:00
2014-10-21 07:47:54 -07:00
2014-10-21 13:06:38 -07:00
2014-10-08 17:37:16 -04:00
2014-10-27 11:26:54 +00:00
2014-10-09 14:58:15 -04:00
2014-10-14 09:39:08 +02:00
2014-10-21 13:06:38 -07:00
2014-10-24 11:21:43 -07:00
2014-10-18 18:11:04 -07:00
2014-10-02 21:35:54 -07:00
2014-10-13 11:28:42 +02:00
2014-10-15 07:23:49 +02:00
2014-10-30 14:53:49 +02:00
2014-10-18 10:25:09 -07:00
2014-10-20 21:09:17 +02:00
2014-10-23 16:24:02 +01:00