summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2014-11-03 04:30:13 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-21 09:23:01 -0800
commit6b037909d30a064f382abbaf789b82a1b141ad0f (patch)
tree71f3707df4025d8d8cb9c118ae65fcd154e3bd39 /usr
parentfe658f87001374b48fb63c33948ce440215ba23c (diff)
tun: Fix csum_start with VLAN acceleration
commit a8f9bfdf982e2b1fb9f094e4de9ab08c57f3d2fd upstream. When VLAN acceleration is in use on the xmit path, we end up setting csum_start to the wrong place. The result is that the whoever ends up doing the checksum setting will corrupt the packet instead of writing the checksum to the expected location, usually this means writing the checksum with an offset of -4. This patch fixes this by adjusting csum_start when VLAN acceleration is detected. Fixes: 6680ec68eff4 ("tuntap: hardware vlan tx support") Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions