diff options
| author | Ben Hutchings <bhutchings@solarflare.com> | 2010-10-22 08:12:19 +0400 | 
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2010-10-27 22:37:29 +0400 | 
| commit | af1905dbec44445d75851996819ac2203670bd0f (patch) | |
| tree | 0b34c62feeda057f5cb7233875b2b14b4228b2f1 /tools/perf/scripts/python/sched-migration.py | |
| parent | cd0ea2419544cfc4ccbf8ee0087d0d9f109852d2 (diff) | |
| download | linux-af1905dbec44445d75851996819ac2203670bd0f.tar.xz | |
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>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions
