diff options
| author | Herbert Xu <herbert@gondor.apana.org.au> | 2014-11-03 04:30:14 +0800 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2017-06-17 16:05:21 +0200 |
| commit | 2ba16eaa90613f12f1342cd7a92eaec284ef07c3 (patch) | |
| tree | 73979e02474e95bf37e7ae4c361edb16044c0fc5 /include/linux/vcodec | |
| parent | 5be8fcc6f68d260ee3116ba4bc0a618858b6be96 (diff) | |
tun: Fix TUN_PKT_STRIP setting
commit 2eb783c43e7cf807a45899c10ed556b6dc116625 upstream.
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>
[wt: no tuntap VLAN offloading in 3.10]
Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'include/linux/vcodec')
0 files changed, 0 insertions, 0 deletions
