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-21 04:26:39 -07:00
2010-10-25 13:09:44 -07:00
2010-10-25 13:09:43 -07:00
2010-09-23 14:33:39 -07:00
2010-09-23 14:33:39 -07:00
2010-10-21 15:44:13 +02:00
2010-06-03 03:21:52 -07:00
2010-09-23 14:33:39 -07:00
2010-04-20 16:37:13 -07:00
2010-08-09 11:25:17 +02:00
2010-10-21 03:09:46 -07:00
2010-10-15 15:53:27 +02:00