]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit959be30c32d22e80f6da2592a4346d6d5a706c83
tree2969897e4a103a9e3ddf3837a9b940f8905a8943
parent01054f57983c50ded80601d2e9b9964e4b682661
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: 468dae257e70 ("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