gre: Create common functions for transmit
authorTom Herbert <tom@herbertland.com>
Sat, 30 Apr 2016 00:12:19 +0000 (17:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 May 2016 23:23:31 +0000 (19:23 -0400)
commit182a352d2d5e0b435f7856c0cc23d467dcec55ef
treee523a1f200325dd0ec9d0b25b769f06920c65808
parent8eb30be0352d09165e94a41fef1c7b994dca0714
gre: Create common functions for transmit

Create common functions for both IPv4 and IPv6 GRE in transmit. These
are put into gre.h.

Common functions are for:
  - GRE checksum calculation. Move gre_checksum to gre.h.
  - Building a GRE header. Move GRE build_header and rename
    gre_build_header.

Signed-off-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/gre.h
net/ipv4/ip_gre.c