mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: netdev-bot+sashiko@kernel.org
To: littlesmilingcloud@gmail.com
Cc: netdev@vger.kernel.org, davem@davemloft.net, edumazet@google.com,
	kuba@kernel.org, pabeni@redhat.com, horms@kernel.org,
	dsahern@kernel.org, idosch@nvidia.com, andrew+netdev@lunn.ch,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next v5 07/14] ip_gre: add drop reasons to the RX path
Date: Sun, 04 Oct 2026 21:00:48 +0000	[thread overview]
Message-ID: <179114764827.434549.329518181253885582@kernel.org> (raw)
In-Reply-To: <20260930183910.3151873-8-littlesmilingcloud@gmail.com>

Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.

Low priority / nit picks for your consideration:

- [Low] Both concerns are resolved by the next patch in the series, so
  neither is a real problem.

--

ip_gre: add drop reasons to the RX path

This patch converts erspan_rcv(), __ipgre_rcv() and ipgre_rcv() in
net/ipv4/ip_gre.c so they return enum skb_drop_reason instead of the
PACKET_* codes. When no tunnel matches, the packet is now reported as
SKB_DROP_REASON_TUNNEL_NOT_FOUND, and the kernel-doc for that reason is
extended to cover GRE.

> diff --git a/include/net/dropreason-core.h b/include/net/dropreason-core.h
> index 0d963f18a21e1..6f5273e16548a 100644
> --- a/include/net/dropreason-core.h
> +++ b/include/net/dropreason-core.h
> @@ -550,7 +550,8 @@ enum skb_drop_reason {
>  	SKB_DROP_REASON_TUNNEL_INVALID_HDR,
>  	/**
>  	 * @SKB_DROP_REASON_TUNNEL_NOT_FOUND: no tunnel device found for the
> -	 * packet, e.g. no VXLAN device for its VNI
> +	 * packet, e.g. no VXLAN device for its VNI or no GRE tunnel for its
> +	 * endpoints and key

[Severity: Low]
At this revision, only the IPv4 GRE receive path reports this reason. Is
the new description a bit broader than what this patch covers?

In net/ipv6/ip6_gre.c, ip6gre_rcv() and ip6erspan_rcv() still return
PACKET_REJECT when the tunnel lookup fails:

net/ipv6/ip6_gre.c:ip6gre_rcv() {
    ...
	return PACKET_REJECT;
}

So gre_rcv() in ip6_gre still drops an IPv6 GRE or ERSPAN packet with no
matching tunnel as SKB_DROP_REASON_NOT_SPECIFIED. The same "no GRE tunnel"
event is therefore reported differently for IPv4 and IPv6 at this point.

The next patch in the series, "ip6_gre: add drop reasons to the RX path",
converts ip6gre_rcv() and ip6erspan_rcv() to return
SKB_DROP_REASON_TUNNEL_NOT_FOUND, so the mismatch only exists between
these two adjacent patches and is gone at the end of the series.

Would it make sense to move the kernel-doc update into the ip6_gre patch,
or to say in this commit message that IPv6 GRE is converted next?

>  	 */
>  	SKB_DROP_REASON_TUNNEL_NOT_FOUND,
>  	/** @SKB_DROP_REASON_MAC_INVALID_SOURCE: source mac is invalid */

[ ... ]

-- 
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260930183910.3151873-1-littlesmilingcloud%40gmail.com

  reply	other threads:[~2026-10-04 21:00 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-30 18:38 [PATCH net-next v5 00/14] tunnels: add core and gre drop reasons Anton Danilov
2026-09-30 18:38 ` [PATCH net-next v5 01/14] vxlan: rename the drop reasons for use by other tunnels Anton Danilov
2026-09-30 18:38 ` [PATCH net-next v5 02/14] ip_tunnel: make __iptunnel_pull_header() return a drop reason Anton Danilov
2026-10-04 21:00   ` netdev-bot+sashiko
2026-09-30 18:38 ` [PATCH net-next v5 03/14] vxlan: report the drop reason of __iptunnel_pull_header() Anton Danilov
2026-09-30 18:39 ` [PATCH net-next v5 04/14] ip_tunnel: add drop reasons to the generic RX path Anton Danilov
2026-10-04 16:06   ` Ido Schimmel
2026-09-30 18:39 ` [PATCH net-next v5 05/14] ip6_tunnel: add drop reasons to the receive path Anton Danilov
2026-10-04 16:47   ` Ido Schimmel
2026-10-04 21:00   ` netdev-bot+sashiko
2026-09-30 18:39 ` [PATCH net-next v5 06/14] gre: make gre_parse_header() report a drop reason Anton Danilov
2026-09-30 18:39 ` [PATCH net-next v5 07/14] ip_gre: add drop reasons to the RX path Anton Danilov
2026-10-04 21:00   ` netdev-bot+sashiko [this message]
2026-09-30 18:39 ` [PATCH net-next v5 08/14] ip6_gre: " Anton Danilov
2026-09-30 18:39 ` [PATCH net-next v5 09/14] ip_tunnel: add drop reasons to the transmit path Anton Danilov
2026-10-04 16:08   ` Ido Schimmel
2026-10-04 16:15     ` Ido Schimmel
2026-09-30 18:39 ` [PATCH net-next v5 10/14] ip_gre: " Anton Danilov
2026-09-30 18:39 ` [PATCH net-next v5 11/14] ip6_gre: make prepare_ip6gre_xmit_other() void Anton Danilov
2026-09-30 18:39 ` [PATCH net-next v5 12/14] ip6_tunnel: make ip6_tnl_xmit() return a drop reason Anton Danilov
2026-10-04 21:00   ` netdev-bot+sashiko
2026-09-30 18:39 ` [PATCH net-next v5 13/14] ip6_gre: add drop reasons to the transmit path Anton Danilov
2026-10-04 21:00   ` netdev-bot+sashiko
2026-09-30 18:39 ` [PATCH net-next v5 14/14] vxlan: report a circular route as SKB_DROP_REASON_RECURSION_LIMIT Anton Danilov
2026-10-04 16:50 ` [PATCH net-next v5 00/14] tunnels: add core and gre drop reasons Ido Schimmel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179114764827.434549.329518181253885582@kernel.org \
    --to=netdev-bot+sashiko@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=dsahern@kernel.org \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=idosch@nvidia.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=littlesmilingcloud@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®