Article View: linux.kernel.netdev
Article #23742Re: [PATCH net-next v2 1/2] tcp: add net.ipv4.tcp_l3mdev_exempt_ports sysctl
From: Kalash Nainwal
Date: Fri, 27 Nov 2026 22:14
Date: Fri, 27 Nov 2026 22:14
26 lines
13035 bytes
13035 bytes
> [Severity: Medium] > Could the commit message explain why a new UAPI knob was chosen instead > of fixing the selection order in inet_lhash2_lookup() and > inet6_lhash2_lookup()? Yes, v3 adds that to the commit message. With both listeners present, existing setups get a stable result that depends on creation order and address family, and making the bound listener always win would change that for every tcp_l3mdev_accept user. So the new behavior is opt-in per port. The SO_BINDTODEVICE case without a VRF is a fair point. The same early return applies there, and this sysctl does not cover it, since it is scoped to l3mdev traffic. A change to the lookup itself would cover both cases. Maintainers: if you would rather fix the selection order in inet_lhash2_lookup() and inet6_lhash2_lookup() so that a matching device-bound listener always wins, I am happy to rework the series that way and drop the sysctl. > [Severity: Low] > Should the document leave the fast path columns empty for this field? Yes, fixed in v3.
Technical Details
Message-ID:
<CAAv61uQA=z5i7OB3O55jvcZP+wVt5907oPUnhuO-zyjn2-P-SA@mail.gmail.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372953-linux-kernel-netdev=dewy.ruReferences:
<20261125-tcp-l3mdev-exempt-ports-v2-1-b920f3ff8f5e@nexthop.ai> <179572802536.3135.6305865608768923950@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372953-linux-kernel-netdev=dewy.ru
From: kalash@nexthop.ai (Kalash Nainwal)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v2 1/2] tcp: add net.ipv4.tcp_l3mdev_exempt_ports sysctl
Date: Fri, 27 Nov 2026 15:14:14 -0700
Organization: Usenet Network
Message-ID: <CAAv61uQA=z5i7OB3O55jvcZP+wVt5907oPUnhuO-zyjn2-P-SA@mail.gmail.com>
References: <20261125-tcp-l3mdev-exempt-ports-v2-1-b920f3ff8f5e@nexthop.ai> <179572802536.3135.6305865608768923950@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Injection-Info: usenet.network;
logging-data="831022"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:w01K7YT6LO06xVDfyH5vSfKm2MQ= sha256:9ehdefxbfZwb7Psv4ugZzpT3KUSgvoHKDDOhST/JEos=
sha1:SK7eYXR4xwBBZS629PpMfUzbXLw= sha256:dcVcnHHFpX6BXOxYc+wyvfr5qGE0X2ejr2EpOrttIuI=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id AD6B2125F69; Sat, 28 Nov 2026 01:14:48 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=nexthop.ai
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id vOmxStwnBSl0;
Sat, 28 Nov 2026 01:14:45 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-372953-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=nexthop.ai
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 68435125F68; Sat, 28 Nov 2026 01:14:37 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sea.lore.kernel.org (Postfix) with ESMTP id 14C612D3CA; Fri, 27 Nov 2026 22:14:34 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1795817673;
b=NPRCbCbVBOEvWXsDzO4bA5Ovy/9PyVSwIr/1JZUMnEfWsDM3EGzx08/vIOO3dLpfINRO
D9bE2f9tDrCrDX/fxBdtbGEQ6bv6bU5fNV0D9TrMtR86AfVULGcwM5xyrZTDSw2/dvsMq
yhUSBeZx+COe12HFPtbU3WzKxaOmt93swjwwsch4bi8SRnJ3EMFrksOk4y5CDd2xiq5hP
TIdXbu4JL4i1v3FPsKLqQfUsKoR8F+egE1PuRFX4tRXvAJSYX6bJ593N9LIuYSL6uYq8R
0asnNTxqcPXxFkP9lhs4Yh4BotVIpbuad27pd8eZ1fqJIorAYyOPeR1qMQJOprc1plQ==
X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795817673;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
X-Gm-Gg:X-Received:X-Mailing-List:List-Id:List-Post:List-Help:
List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
References:In-Reply-To:From:Date:X-Gm-Features:Message-ID:Subject:To:
Cc:Content-Type;
bh=R+GWEKhj5g2p+5aZiSD1FIPN8G34y6oXiGP97Svh0ns=;
b=guABQstI6zobQJCvc2gimV2yxoP2SUPeqdnLxG6sCGiLVtXJSW0YoyDSzSockW/Tb/kV
F6QGh7qYV4tviZSIhiLWtgYSkJevMkPmGr1p14ZNrp1zREWuh5z+8yRTiNzX6us3PKOxf
Af5jSbM0LSHVrG9HKxvMRDw0YS3Q7PiQtxO0nzp4eA2HZPH9OdwslBY+qhoZRYhivt9nB
s406VdWGRJ4IjM9FfRqHk/5NeedvQoCDdLdPRr/yUqC4zHplbIHd20ZCgm/iz0aT3QVhD
dWMBeqsQOjCcTMwQ/ubEuEeeHck5puDYswHApAXY4YoF+C6iC3DPve/B5VoCXJ/5taA==
X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org;
dkim=pass header.d=nexthop.ai header.i=@nexthop.ai header.a=rsa-sha256 header.s=google header.b=JwXKkOiA;
dmarc=pass header.from=nexthop.ai;
spf=pass smtp.mailfrom=nexthop.ai;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 90655606A32D;
Fri, 27 Nov 2026 22:14:33 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=nexthop.ai header.i=@nexthop.ai header.a=rsa-sha256 header.s=google header.b=JwXKkOiA
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=209.85.128.179
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1795817667;
b=UuZhtroV9IMgUPuNAYvp1lke+j9cc8zhi7OUq+NeoDRK2mTIfacepV+2NwVL7zXxXirE
YgPEW9bHHyeZNUdcyEEOmr5VXwYcvo15iBGUEy/aLCRyyjlb4xYFzKelTqezScowZaftz
5kNXyznItBSQUr0SEd2jA9btZYN12IpPKidyYBfAsppJ3JRkrHlMT1o0uyT4Itt8/ADy4
g2wWKn8abebEjQloa+fjyaZ7kCAsNXiMOMnN1kcVixjOO/WW4qD+rGPKkHo0hdwBHUckH
K+KVmpVmWj+OIMKMgFLX6esolnHiLlv+N3DRxwo6cPt3LGS2XNcYZ1tzeNAsv6O6XNA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795817667;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:
MIME-Version:References:In-Reply-To:From:Date:X-Gm-Features:
Message-ID:Subject:To:Cc:Content-Type;
bh=R+GWEKhj5g2p+5aZiSD1FIPN8G34y6oXiGP97Svh0ns=;
b=E1E5msSO8rpYKIT2Y8vN4J+KZjlxLHAJ3btYj/Ea2sYIig4pWPNS6zDnQU8+xX9/P7Ng
mqZEM4miBAo3bWQDkrRH3nL/v2iNkEbcg9cd6qMtnRdl5qPWLUS0csb1e94CqLqMqcdn/
+ilUMh3MfRiMuztuyZyuxutIESoXk/Kznh7TuVo5lfGa3Si3zKwmKC9KvFE30keP4FB3z
FOg9yF0WZPtE+I067wlhzYGu0qBE+HlirR2nWxV7Q/gFjCZZbs6j2gtQwO/0PT+TPRvQ7
y7COms4UOVZPcFlZiXIDaGfwYloWvz4lBwLdwI57TTKJnDcGDXN5CWIE03KfQFF+iNA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dmarc=pass header.from=nexthop.ai;
spf=pass smtp.mailfrom=nexthop.ai;
dkim=pass header.d=nexthop.ai header.i=@nexthop.ai header.a=rsa-sha256 header.s=google header.b=JwXKkOiA;
arc=pass header.oldest-pass=0 smtp.remote-ip=209.85.128.179
X-Received: from mail-yw1-f179.google.com (mail-yw1-f179.google.com [209.85.128.179])
(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 67196606A31C
for <netdev@vger.kernel.org>; Fri, 27 Nov 2026 22:14:27 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 67196606A31C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nexthop.ai
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nexthop.ai
X-Received: by mail-yw1-f179.google.com with SMTP id 00721157ae682-8b32daac9d7so47211307b3.0
for <netdev@vger.kernel.org>; Fri, 27 Nov 2026 14:14:27 -0800 (PST)
X-ARC-Seal: i=1; a=rsa-sha256; t=1795817666; cv=none;
d=google.com; s=arc-20260327;
b=TXX6LzdLz966xyF2C3ZvwqaRoEzy7SVnhy0vtVuqlFMSEsD+6u5FAFEHouDlQvHMmm
nIYuBWqU6nWSFAF/9Iqn344zUfr3F0/Xw3fc85iwXMlv0yp4W9ilYjNGl9LJzXPqg2N5
H5LD4jhaWTFh2ju/3C2J+Bt7N1n9PZtE9pTddY+CVljvBtQfWYjkcz9DgylVEh7Syohq
+aGNAk5MImrboosO1GbI/oi4vQgurM/jhhmeIcLDWXrXssmtCyQUvE7L0AqbS9DTuM6h
mpQxyiZvv5RDdeqqnho71Rdu4y49igrZNatrnEVO7keqUIeYJo9eNQtvKtSRnWD/pgrT
U+vw==
X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:dkim-signature;
bh=R+GWEKhj5g2p+5aZiSD1FIPN8G34y6oXiGP97Svh0ns=;
fh=3N97AgZAkrcLca1qpZ5/G3UkbyZnR0Eysky5hHbxDZA=;
b=Rx8pNy/8GrX112d5PZN4TrrNiGlHG3ejVsCaCsBe0lOgaIH3gFWgVzz5SgN71iDihz
NdPNC09OlZNAoH2zyqwwG64wXAITeyVxR1+OLCtjyKT25n17+8IxhHGJ8XfTQ6eGekT2
eV3JsN5xekdlJY1GKxbNmRZK8UIWNyxyMqFpsTgY2gMHfoF0Q/Xu8zqRvFMfnG/KwSwy
PDxsI/gSi0TlXNvq3jMIwgXDdiGnVTlf1ve+dmTwu3Maft0SAIIndemAHWDr4a1ZN6Pc
JwEmkEW9VGKpSze8vNjQCZFpgrjmx5CJABJ1WBKrJqlPZ2iHj/3lDpAMF3OvH7B898WK
A5Bw==;
darn=vger.kernel.org
X-ARC-Authentication-Results: i=1; mx.google.com; arc=none
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=nexthop.ai; s=google; t=1795817666; x=1796422466; darn=vger.kernel.org;
h=content-type:cc:to:subject:message-id:date:from:in-reply-to
:references:mime-version:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=R+GWEKhj5g2p+5aZiSD1FIPN8G34y6oXiGP97Svh0ns=;
b=JwXKkOiA1hHPevvY6KlGz0H49ngjn7RSbuIh1YPq3ZNFaYUe1nazCmKX2br5ZXNy4J
lrV768348Q3U79vKmJySW2rQ/MkbDivy3dmUMfBNwTYOAPAbhoTrWGG85bRhMU+mxDin
Q4jcdvzBp30jHmZqt0LjihCvbPF3x7iSxL4xEcataneXHFNDE2OARzMZQw8C/x/OLs4E
LSe4CdBiFOxtxXIA6bELFzV2YiTbFfJtbz1i4xQtMCPC5/g7joS4/uxbvwPx90zjmTTM
CE36Ip4C4zEdmHSCsHw+iyU9lpY7XuHS3y/YQZpYEZUXtfn6/OBY8NePBmmoQXkwJn72
L+2g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1795817666; x=1796422466;
h=content-type:cc:to:subject:message-id:date:from:in-reply-to
:references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to:content-type;
bh=R+GWEKhj5g2p+5aZiSD1FIPN8G34y6oXiGP97Svh0ns=;
b=1mcbWu9c45sYdMGPpD5X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iUA9
X-Received: by 2002:a05:690c:290:b0:895:8474:3c6f with SMTP id
00721157ae682-8b5201eff64mr106815777b3.0.1795817666463; Fri, 27 Nov 2026
14:14:26 -0800 (PST)
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <179572802536.3135.6305865608768923950@kernel.org>
X-Gm-Features: Aa3M54oqRaxMY7_UWPQgj5lUHHUmW8MGZPBMkR5eyixxsYNc4OEEliipG1r_sDM
X-Cc: davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
pabeni@redhat.com, horms@kernel.org, corbet@lwn.net,
skhan@linuxfoundation.org, rdunlap@infradead.org, dsahern@kernel.org,
idosch@nvidia.com, ncardwell@google.com, kuniyu@google.com, shuah@kernel.org,
joel.granados@kernel.org, netdev@vger.kernel.org, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org