Re: [PATCH net-next v5 05/14] ip6_tunnel: add drop reasons to the receive path

From: Ido Schimmel

Date: Sun Oct 04 2026 - 12:54:22 EST


On Wed, Sep 30, 2026 at 09:39:01PM +0300, Anton Danilov wrote:

[...]

> ip6_tnl_rcv_ctl() refuses when the outer destination is not a usable
> local address, such as a tentative one, when the outer source belongs
> to this host, and when the tunnel cannot receive with the addresses of
> the packet. It returns only 0 or 1, so DEV_READY stands for all three,
> as it does for ip6_tnl_xmit_ctl() on the transmit side later in the
> series, although it describes only the first. Telling them apart needs
> both helpers to return a reason, which is left for a follow-up.

DEV_READY doesn't seem appropriate here. If you plan to annotate
ip6_tnl_rcv_ctl() and ip6_tnl_xmit_ctl() later, then keep their drops as
NOT_SPECIFIED for now.