ip6_gre: simplify gre header parsing in ip6gre_err
authorHaishuang Yan <yanhaishuang@cmss.chinamobile.com>
Fri, 14 Sep 2018 04:26:48 +0000 (12:26 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Sep 2018 22:32:59 +0000 (15:32 -0700)
commita82738adff167593bbb9df90b4201ce4b3407d21
tree1b7ca441e21895ba2b2cd5765360a7a9e37ff075
parentb0350d51f001e6edc13ee4f253b98b50b05dd401
ip6_gre: simplify gre header parsing in ip6gre_err

Same as ip_gre, use gre_parse_header to parse gre header in gre error
handler code.

Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_gre.c