Files
linux/drivers
Herbert Xu b34fafa320 macvtap: Fix csum_start when VLAN tags are present
commit 3ce9b20f19 upstream.

When VLAN is in use in macvtap_put_user, 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 tags are
detected.

Fixes: f09e2249c4 ("macvtap: restore vlan header on user read")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-11-21 09:22:53 -08:00
..
2013-12-08 07:29:25 -08:00
2014-11-21 09:22:52 -08:00
2014-03-06 21:30:14 -08:00
2014-11-14 08:48:01 -08:00
2014-04-14 06:42:18 -07:00
2014-02-20 11:06:11 -08:00
2014-04-03 12:01:05 -07:00
2014-11-14 08:47:56 -08:00