ip6_gre: only increase err_count for some certain type icmpv6 in ip6gre_err
authorXin Long <lucien.xin@gmail.com>
Thu, 26 Oct 2017 11:23:27 +0000 (19:23 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Oct 2017 14:45:12 +0000 (23:45 +0900)
commitf8d20b46ce55cf40afb30dcef6d9288f7ef46d9b
tree3386f19b48b6ce2594f2877fdb9419d15b96c016
parentf3594f0a7ea36661d7fd942facd7f31a64245f1a
ip6_gre: only increase err_count for some certain type icmpv6 in ip6gre_err

The similar fix in patch 'ipip: only increase err_count for some
certain type icmp in ipip_err' is needed for ip6gre_err.

In Jianlin's case, udp netperf broke even when receiving a TooBig
icmpv6 packet.

Fixes: c12b395a4664 ("gre: Support GRE over IPv6")
Reported-by: Jianlin Shi <jishi@redhat.com>
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_gre.c