Messages in this thread Patch in this message | | | From | menglong8.dong@gmail ... | Subject | [PATCH net-next 2/3] net: ipgre: make erspan_rcv() return PACKET_NEXT | Date | Mon, 14 Mar 2022 21:33:11 +0800 |
| |
From: Menglong Dong <imagedong@tencent.com>
PACKET_NEXT is returned in ipgre_rcv() when no tunnel device found. To report skb drop reasons, we make erspan_rcv() the same way. Therefore, we can know that skb is dropped out of tunnel device's absence when PACKET_NEXT is returned.
Reviewed-by: Hao Peng <flyingpeng@tencent.com> Reviewed-by: Biao Jiang <benbjiang@tencent.com> Signed-off-by: Menglong Dong <imagedong@tencent.com> --- net/ipv4/ip_gre.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c index 99db2e41ed10..b1579d8374fd 100644 --- a/net/ipv4/ip_gre.c +++ b/net/ipv4/ip_gre.c @@ -341,7 +341,7 @@ static int erspan_rcv(struct sk_buff *skb, struct tnl_ptk_info *tpi, ip_tunnel_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); return PACKET_RCVD; } - return PACKET_REJECT; + return PACKET_NEXT; drop: kfree_skb(skb); -- 2.35.1
| |