gre6: Cleanup GREv6 receive path, call common GRE functions
authorTom Herbert <tom@herbertland.com>
Sat, 30 Apr 2016 00:12:17 +0000 (17:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 May 2016 23:23:31 +0000 (19:23 -0400)
commit308edfdf1563f78e93ebda9aee608279de1c5898
tree1173688bfd02d993acc31bc8b05788cb79d46e9f
parent95f5c64c3c13a609e137d35c4b452519e0b954df
gre6: Cleanup GREv6 receive path, call common GRE functions

- Create gre_rcv function. This calls gre_parse_header and ip6gre_rcv.
  - Call ip6_tnl_rcv. Doing this and using gre_parse_header eliminates
    most of the code in ip6gre_rcv.

Signed-off-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_gre.c