aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/perf.c
diff options
context:
space:
mode:
authorSonic Zhang <sonic.zhang@analog.com>2010-05-10 01:39:09 -0400
committerDavid S. Miller <davem@davemloft.net>2010-05-17 20:20:58 -0400
commitad2864d88718714d8b347b6209b07abb2ecd3a49 (patch)
treeb6381e4fb49436c3032d7e13f02416db047a67fb /tools/perf/perf.c
parentf6e1e4f3e511589dd0c47d42b870501659e7195f (diff)
netdev: bfin_mac: deduce Ethernet FCS from hardware IP payload checksum
IP checksum is based on 16-bit one's complement algorithm, so to deduce a value from checksum is equal to add its complement. Unfortunately, the Blackfin on-chip MAC checksum logic only works when the IP packet has a header length of 20 bytes. This is true for most IPv4 packets, but not for IPv6 packets or IPv4 packets which use header options. So only use the hardware checksum when appropriate. Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Jon Kowal <jon.kowal@dspecialists.de> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/perf.c')
0 files changed, 0 insertions, 0 deletions