ip_gre: fix error path when erspan_rcv failed
authorHaishuang Yan <yanhaishuang@cmss.chinamobile.com>
Wed, 20 Dec 2017 02:21:46 +0000 (10:21 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Dec 2017 18:51:46 +0000 (13:51 -0500)
commitdd8d5b8c5b22e31079b259b8bfb686f1fac1080a
tree2969897e4a103a9e3ddf3837a9b940f8905a8943
parent293a1991cf0d62d0a60b41af42f1dd601d5029fc
ip_gre: fix error path when erspan_rcv failed

When erspan_rcv call return PACKET_REJECT, we shoudn't call ipgre_rcv to
process packets again, instead send icmp unreachable message in error
path.

Fixes: 84e54fe0a5ea ("gre: introduce native tunnel support for ERSPAN")
Acked-by: William Tu <u9012063@gmail.com>
Cc: William Tu <u9012063@gmail.com>
Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_gre.c