ipv6: move csum_ipv6_magic() and udp6_csum_init() into static library
commitacb3e04119fbf9145eb6d6bb707f6fb662ab4d3b
authorCong Wang <amwang@redhat.com>
Mon, 7 Jan 2013 20:52:40 +0000 (7 20:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Jan 2013 01:56:10 +0000 (8 17:56 -0800)
tree16e6114957ce9d739dc3c0c63de3b7d52dd8812c
parentb7394d2429c198b1da3d46ac39192e891029ec0f
ipv6: move csum_ipv6_magic() and udp6_csum_init() into static library

As suggested by David, udp6_csum_init() is too big to be inlined,
move it to ipv6 static library, net/ipv6/ip6_checksum.c.

And the generic csum_ipv6_magic() too.

Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_checksum.h
net/ipv6/Makefile
net/ipv6/ip6_checksum.c [new file with mode: 0644]
net/ipv6/udp.c