Ben Hutchings af1905dbec net: Fix some corner cases in dev_can_checksum()
dev_can_checksum() incorrectly returns true in these cases:

1. The skb has both out-of-band and in-band VLAN tags and the device
   supports checksum offload for the encapsulated protocol but only with
   one layer of encapsulation.
2. The skb has a VLAN tag and the device supports generic checksumming
   but not in conjunction with VLAN encapsulation.

Rearrange the VLAN tag checks to avoid these.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-10-27 11:37:29 -07:00
..
2010-10-20 03:02:23 -07:00
2010-10-26 11:42:38 -07:00
2010-09-23 14:33:39 -07:00
2010-07-12 12:57:55 -07:00
2010-07-12 12:57:55 -07:00
2010-10-25 14:18:27 -07:00
2010-10-25 14:18:27 -07:00
2010-07-12 12:57:55 -07:00
2010-10-21 03:09:45 -07:00
2010-07-12 12:57:55 -07:00
2010-10-25 14:18:28 -07:00
2010-10-25 14:18:27 -07:00
2010-09-23 14:33:39 -07:00