From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.219.72 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795972122; b=4u9T38LC25kd8PQR//0K/BQZft8CeRhK57ettS5XIt+CPukCVcZfRVuFWqHA1wa/Cb8Z 9MiUlj62gvl8bQ3XjG6cQ9DLI+wTN1EbbydQ0NH/It7Pwa1zbLeFI56RFR+rShCW8BgZS 2OAqbO/WEijarvnprilwId7Z0pXgyQsHHB56NaAP492KTcV9lVSUtpVHv6yx2JII+k5Sq FhLnIRNg8A/1TDp+L/TtdW0l06gdoJ0ze/e7xWZU67pecN6Ncgz3NLMIxKjQGSjYM0udL p4xHCvfJ7KyBSVVbF2U+I1f+5+6qCz39380GZ3Ej+0Pa7BrJ56qb6a0J5bu1IPI7t3A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795972122; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:In-Reply-To: Mime-Version:References:Message-ID:Subject:From:To:Cc:Content-Type; bh=p6B8qMnc9/9Pi4KKGkKp0alNPDpy7Zj7RXTVbxfMtvg=; b=m+cORHT6S2PniVrpfB0fIvB+feZXq9uLU4VZcjWbdyUD/+XrvBw1a8FQ7xkBu9I2420r JO1s4wKsZKk+CgmUS48xRbw5qOuWX4ub0pAojytvbWXRruwrHODLnrYTpyOpIFaIqsmi+ 8v9rk1h2kqLqYe11hb1nKcHqqNtn+Xbq1mL85nYcOiawUecT5LkHr2ydGX7gPOl6E0fOa bJ1rDFXma/LvP57pl1J1lK3L5lMR3v2QF0vd+ABb2ywNoepaxuc+VEUpgyWiRX8JdEGcp u9IUoByPcxd8nuYD4X1T0y4e68GhctNvn7nmhijN1cr1hbjzPZN6HcaQK1cNwIAXsAQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--willemb.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=hAAr96iu; arc=none smtp.remote-ip=209.85.219.72 Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E6723606A323 for ; Sun, 29 Nov 2026 17:08:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E6723606A323 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--willemb.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=hAAr96iu Received: by mail-qv1-f72.google.com with SMTP id 6a1803df08f44-92126ecb4b8so155465596d6.3 for ; Sun, 29 Nov 2026 09:08:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1795972121; x=1796576921; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=p6B8qMnc9/9Pi4KKGkKp0alNPDpy7Zj7RXTVbxfMtvg=; b=hAAr96iuNyV/aM/x2HjKrzJIPP6M35ykR6DL0hgyHfwzQTGc07a9YxF9Ecye1DuliG hCrdUtP33llwi31fzYvJVV3prubVmlDCmfDwhG1EVUp0X11o5ITFHjoMruktnd5qmfmm US4QANQ9xeTEIF6n1ztKnhHgN1U7NKJIHnZO1705lznvhcvDLozdHay2orqdYf4nSUAt 0KT4U9YCu+FbOudNOJf2dtwk7kEMX/UHfjbE9cgRWVZuOgZxtNCYsuK4bPZOK1HOlS/H 5NOwEZg/RKVsyYCLpBiIUt+A8nVM69I74xoBtRLCXMMPmuebtNag2RXdkJeuhtL5+tSJ HTsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795972121; x=1796576921; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=p6B8qMnc9/9Pi4KKGkKp0alNPDpy7Zj7RXTVbxfMtvg=; b=LHKYYa7FVkZqu62lk+1k7X++7PMOxJkiozycbKa0au1iEnTJWg21DMHyeY96HPohkn WQ0lMbLySKsWx3IUQtHd8ff/9/h3YkjLXhtkEZeRYxHboI/rNOGOKtx4qVdcewHs765U GC4QYySBEgv8xRkBRigExnOj6yxDeu3+KS6nFSCndPova5kzD6TGlY+yOClY6fIAU2y0 FIzqDtb+GEufn0ihXirJ/QAJauuQ8UL5l60zRZk6WLGeafr7DuKBACriiCYt0qypphiI 6D1B42OSAI+WoQCeev5c6Z46bRZdgq8xGpOdLn9ED+oMaSQvdXchkfOVZbuOhWEBm/R1 sujw== X-Forwarded-Encrypted: i=1; AL+hErGVK6cDyMU9/Wy56lxu2NuGQVYlEs16uyGUtc/hpJP0rTvyjdfH8hgO+JYxlwBLHKci8MA=@vger.kernel.org X-Gm-Message-State: APuU4Z/CCm9j5x1deyvJHDzIeM71TPAkWo4iBo6J/GaLkRT7inP1j+k3 0WvQHS7763wDGaioZaYP7LFkYSXU9PQz4bvzcEvOpbxWnEl/QPGRAsVLQk2ID5XIF9u8gp0url1 bd5JSpHzJpQ== X-Received: from qvnu13.prod.google.com ([2002:a0c:f88d:0:b0:921:1046:1576]) (user=willemb job=prod-delivery.src-stubby-dispatcher) by 2002:ad4:5aa3:0:b0:921:3320:11d3 with SMTP id 6a1803df08f44-92134ab82a4mr572739776d6.14.1795972120320; Sun, 29 Nov 2026 09:08:40 -0800 (PST) Date: Sun, 29 Nov 2026 12:08:39 -0500 In-Reply-To: X-Mailing-List: bpf@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 References: Message-ID: Subject: Re: [PATCH net-next 1/1] net: neighbour: skip the stale dst lookup for a redirected skb From: willemb@google.com To: Alexei Starovoitov , Jamal Hadi Salim , netdev@vger.kernel.org Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , bpf@vger.kernel.org, Jiri Pirko , Victor Nogueira Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes Alexei Starovoitov wrote: > On Fri, Nov 20, 2026 at 07:42 AM Jamal Hadi Salim > wrote: > > Skip the lookup when skb->dev is already neigh->dev; the parking > neighbour > > is the top-level one in that case and can reinject the packet itself. A > > dst that is a route via another device, which is the sch_teql shape, > still > > takes the lookup. > It doesn't. The check never reads dst->dev: > if (dst && skb->dev != neigh->dev && Please resend with this revised. Also, typo in the reproducer: `10.10.0.2` should be `10.1.0.2`. Please do include a Fixes tag even if sending to net-next. No need for a series/cover-letter for a single line patch, and please do make explicit that this patch can be merged immediately, is not subject to the other patches that the cover letter refers to. -- pw-bot: cr