From: Haishuang Yan <hidden> Date: 2017-12-14 16:05:41
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")
Cc: William Tu <redacted>
Signed-off-by: Haishuang Yan <redacted>
---
net/ipv4/ip_gre.c | 2 ++
1 file changed, 2 insertions(+)
From: Haishuang Yan <hidden> Date: 2017-12-14 16:05:54
Same as ipv4 code, when ip6erspan_rcv call return PACKET_REJECT, we
should call icmpv6_send to send icmp unreachable message in error path.
Fixes: 5a963eb61b7c ("ip6_gre: Add ERSPAN native tunnel support")
Cc: William Tu <redacted>
Signed-off-by: Haishuang Yan <redacted>
---
net/ipv6/ip6_gre.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
From: William Tu <hidden> Date: 2017-12-14 18:26:08
On Thu, Dec 14, 2017 at 8:05 AM, Haishuang Yan
[off-list ref] wrote:
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")
Cc: William Tu <redacted>
Signed-off-by: Haishuang Yan <redacted>
---
Thanks for the patch.
Acked-by: William Tu <redacted>
From: William Tu <hidden> Date: 2017-12-14 18:27:58
On Thu, Dec 14, 2017 at 8:05 AM, Haishuang Yan
[off-list ref] wrote:
Same as ipv4 code, when ip6erspan_rcv call return PACKET_REJECT, we
should call icmpv6_send to send icmp unreachable message in error path.
Fixes: 5a963eb61b7c ("ip6_gre: Add ERSPAN native tunnel support")
Cc: William Tu <redacted>
Signed-off-by: Haishuang Yan <redacted>
---
Looks good to me. Thanks.
Acked-by: William Tu <redacted>