ipv6: Pass proto to csum_ipv6_magic as __u8 instead of unsigned short
authorAlexander Duyck <aduyck@mirantis.com>
Fri, 11 Mar 2016 22:05:41 +0000 (14:05 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Mar 2016 03:55:13 +0000 (23:55 -0400)
commit1e94082963747b551b129528714827f76a090e93
tree543178f26d73ba0a7c9307091200ba6856c9fd60
parent01cfbad79a5e2b835abf6a8154a341d75a6fc8cd
ipv6: Pass proto to csum_ipv6_magic as __u8 instead of unsigned short

This patch updates csum_ipv6_magic so that it correctly recognizes that
protocol is a unsigned 8 bit value.

This will allow us to better understand what limitations may or may not be
present in how we handle the data.  For example there are a number of
places that call htonl on the protocol value.  This is likely not necessary
and can be replaced with a multiplication by ntohl(1) which will be
converted to a shift by the compiler.

Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 files changed:
arch/alpha/include/asm/checksum.h
arch/arm/include/asm/checksum.h
arch/frv/include/asm/checksum.h
arch/ia64/include/asm/checksum.h
arch/m68k/include/asm/checksum.h
arch/mips/include/asm/checksum.h
arch/parisc/include/asm/checksum.h
arch/score/include/asm/checksum.h
arch/sh/include/asm/checksum_32.h
arch/sparc/include/asm/checksum_32.h
arch/sparc/include/asm/checksum_64.h
arch/x86/include/asm/checksum_32.h
arch/x86/include/asm/checksum_64.h
arch/x86/lib/csum-wrappers_64.c
arch/x86/um/asm/checksum_32.h
arch/xtensa/include/asm/checksum.h
include/net/ip6_checksum.h
net/ipv6/ip6_checksum.c
This page took 0.028475 seconds and 5 git commands to generate.