Article View: linux.kernel.netdev
Article #8963Re: [PATCH v2 net] udp: restore hlist_nulls for primary and secondary hash tables
From: "Alexei Starovoitov"
Date: Fri, 30 Oct 2026 16:21
Date: Fri, 30 Oct 2026 16:21
18 lines
11702 bytes
11702 bytes
On Fri, Oct 30, 2026 at 05:20 AM Eric Dumazet <edumazet@kernel.org> wrote:
> @@ -3431,12 +3477,12 @@ static struct sock *bpf_iter_udp_batch(struct seq_file *seq)
> for (; state->bucket <= udptable->mask; state->bucket++) {
> struct udp_hslot *hslot2 = &udptable->hash2[state->bucket].hslot;
>
> - if (hlist_empty(&hslot2->head))
> + if (hlist_nulls_empty(&hslot2->head))
> goto next_bucket;
>
> spin_lock_bh(&hslot2->lock);
> - sk = hlist_entry_safe(hslot2->head.first, struct sock,
> - __sk_common.skc_portaddr_node);
> + sk = hlist_nulls_entry_safe(hslot2->head.first, struct sock,
> + __sk_common.skc_portaddr_node);
For bpf bits:
Acked-by: Alexei Starovoitov <ast@kernel.org>
Technical Details
Message-ID:
<DMIB6JXDLTPX.15EVLOCXRDOOO@gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-353841-linux-kernel-netdev=dewy.ruReferences:
<20261030122045.3035709-1-edumazet@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-353841-linux-kernel-netdev=dewy.ru
From: alexei.starovoitov@gmail.com ("Alexei Starovoitov")
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH v2 net] udp: restore hlist_nulls for primary and
secondary hash tables
Date: Fri, 30 Oct 2026 16:21:00 +0000
Organization: Usenet Network
Message-ID: <DMIB6JXDLTPX.15EVLOCXRDOOO@gmail.com>
References: <20261030122045.3035709-1-edumazet@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="2273683"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:aFKIZYcGogBHcRJabGpv620isSw= sha256:Saq8GWmnfbB7gtjPYMMwr66DpxAhuydXu44Cuk1XPIw=
sha1:X1YNIaRUVJ14ehfVVt/l7t9BVtA= sha256:vtJCLLCjKDqHB1E7XsYDOGZleWObmkrRS1JwI0Gchgg=
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 3317E125CA3; Fri, 30 Oct 2026 19:24:46 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.048
X-Spam-Status: No, score=-3.048 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, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
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=gmail.com
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 DFzei9dbaqS8;
Fri, 30 Oct 2026 19:24:43 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-353841-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id F0093125CA0; Fri, 30 Oct 2026 19:24:33 +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 65F722F631; Fri, 30 Oct 2026 16:21:04 +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=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1793377264;
b=TT2OwfRjCBtsAiPm4eMYYEgY7C7WjbAhnMFy5QN+JJpmuow4n0Nn3BGIunGwTvexbC0v
24M8PjTq+3AYksCRVJPY0hghW+lMVH9g/zJNUBfIUg2YkZNrlf+ohs4g+sVReCp4+Nei2
nE+WZfFUEqHeVD/QER5098jsUMfWHpZyrTsv6hMvcKDJUYMlZ6XzQYxWefVImfF2Rk0Td
a2lrDwymG1xWYZUNARElBQ3B5RevdUc9Yn4BhBADcl8c0H3hxX1zOO+P/pLYIEVdAuBqo
ZOVS5JwqVbDcoFPJzNZ4OaFU52/cNduSmB1HA3lYeYe/Zg5NNAB2UrWpzrwrE520/NA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793377264;
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:Received:Content-Type:Date:Message-Id:Cc:Subject:
From:To:In-Reply-To:References:Content-Transfer-Encoding:
X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:MIME-Version;
bh=zyOsXApbsMPDzz9xbQc9j82HAbVZYrZjlFKRD4aZyn8=;
b=vdu18aIZx9sJ8Wq3GkHg09zEcT70SbowPEB1KsP8PZWhvnIyQ4ShzO3NF0B4f5Yr716M
K3gMiyzdnJ3kael7gRq5UbdVOlZ0jHzwLRVYT2zIecJ2bUgaCTgfq4mFpye6PnMhPbhL/
Xs6Nrd4Jq82FFE/natmNIzbtybMA6cNeudorJ/UtOFH2AmFsYB0Pjdo+el6UzdSZDcEIc
AC7Ai1Gz1QIJLXpBQoKoQy+8cNt4k91Fn1PhxJPRAUPfSVFb3feH0gLcykRqlCSlg0cJp
4D2zmWa9lIZKHO7btug1RW0wJcUOcWDKW0hrbSX3+kvelrJv4P5t/jE4qXVO8YeXzhg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=I9CHq1vD;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
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 3DD39606A327;
Fri, 30 Oct 2026 16:21:04 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=I9CHq1vD
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.216.41
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1793377263;
b=aI2CC3qkyWD+KrGVBE3yPKp3QwpMYqkKYj+f3vk8w7KaZ4vqBiSOxKFSfqoK1zzruXpL
itt1/bZh7iK9oJ1cpjPPVyOmBscTYBY0I9Y8KKjh3z6fwRY/bBuohWbEFQAG3l8QEW19W
XjVOace1fJ0TPe28IPCXZGBheUHs3iBKNk61DQwJUy0COVwqW8FkjUVVWiDbx+6qYAtiX
IbXAf0DzN28oyWnW3PrryeC6uoRbLKdhz3bjDdit5Tl/W1LftjrGy5PQr8flLyaqKghec
rBey9FH08DDZkcZe+zBlNGsaeeAK45A1EEXMuP7oSwyjnYv+x+zsX3A23R2WOZHIUJQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793377263;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
Content-Type:Date:Message-Id:Cc:Subject:From:To:In-Reply-To:
References:Content-Transfer-Encoding:MIME-Version;
bh=zyOsXApbsMPDzz9xbQc9j82HAbVZYrZjlFKRD4aZyn8=;
b=iXXb0IM1idN94D/iSAHzdckZXAQmhEZ1IAJPzscQTVGLfPIzyM+M026fTfYxgY6vKeMy
HpZH9Rye9Wq+p5c0Wano9X03WX+/oZa7rbKetYCYROD2yXVZHr0jM/wDpLf7Arb7SJtMA
BnRWdYUIG66SsXyWkR4RdrwopwcG/9Z0W9pkrf0kE1+BZcc9Q63O3Rrpyz9E1SGuiALO6
AkFm9WiZZDMB1ZbQoKuKzaerzdTGTLsKmTVZPFVFBg76dK2o+4l+L7vug0J9jRXe+r5iV
WWTsM/ayAYm2IjVsP9caGeUZnIW8rod5/qVvAO6+64a+fFl6Q1A2IY5D4F+WQg+C/Tw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=I9CHq1vD;
arc=none smtp.remote-ip=209.85.216.41
X-Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41])
(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 13128606A31C
for <netdev@vger.kernel.org>; Fri, 30 Oct 2026 16:21:02 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 13128606A31C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-pj1-f41.google.com with SMTP id 98e67ed59e1d1-3adac5b29ebso597915a91.2
for <netdev@vger.kernel.org>; Fri, 30 Oct 2026 09:21:02 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1793377262; x=1793982062; darn=vger.kernel.org;
h=mime-version:content-transfer-encoding:references:in-reply-to:to
:from:subject:cc:message-id:date:content-type:from:to:cc:subject
:date:message-id:reply-to:content-type;
bh=zyOsXApbsMPDzz9xbQc9j82HAbVZYrZjlFKRD4aZyn8=;
b=I9CHq1vDLmpX5qnXoIUx7W4ASxXg58bg4CoxZea/IQTYf+7FRm2u6GrNy3Qn3j3nlg
UJxqEUcKYHBqkycHpSJcauvmDbezNNIllKp/XE3mSKVZ1zgOp2R3GynGHy595JJsgYXu
hE/0w2yfpfnz/FuJ4laOfNGSfBgSf3Af0drgGx+doom5rGA2n63qXsZfse1dFKmexB4d
To4Rf9D1Pj20zXCgKf3MXZM867DNGx+EYScp2mpe5vNh0rzFMQNTx1r4XQ6MSFSoTXFq
vYtAgD+txcxlyZvBVQxCZEP0gQXdtLXIV951fIg3IBC0ABpQSpyZudtRS+0isv9Jh83f
H3ew==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1793377262; x=1793982062;
h=mime-version:content-transfer-encoding:references:in-reply-to:to
:from:subject:cc:message-id:date:content-type:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=zyOsXApbsMPDzz9xbQc9j82HAbVZYrZjlFKRD4aZyn8=;
b=fl+MiiSWK9NcJBHkj8vgfT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+dfzjne8GWhh2DIGwt
EO9mq8sbzeAMKpbQC/Du/+cdn2a3FTxDrbjyeAfAL6i/GEnXgxX5vgfx61UzCcFv1nS1bBWz7Pm
5i7CT8CWetdPU0G5jVKs0GsfNfmM7DYqTfNYgPnx/GrefKrQUGtj+ULkUd08U9ITNvysYPpwTjF
Nj5GFf+XFP51xzm/AP122KE55kTBAqIRIzA==
X-Received: by 2002:a17:90b:1f92:b0:3ad:4a8b:c701 with SMTP id 98e67ed59e1d1-3ae897b51a8mr2370584a91.45.1793377262057;
Fri, 30 Oct 2026 09:21:02 -0700 (PDT)
X-Received: from localhost ([153.61.198.255])
by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ae880b1f71sm2113239a91.4.2026.10.30.09.21.00
(version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
Fri, 30 Oct 2026 09:21:01 -0700 (PDT)
X-Cc: "Willem de Bruijn" <willemb@google.com>, "Simon Horman"
<horms@kernel.org>, <netdev@vger.kernel.org>, <bpf@vger.kernel.org>, "David
Laight" <david.laight.linux@gmail.com>, "Willem de Bruijn"
<willemdebruijn.kernel@gmail.com>
X-In-Reply-To: <20261030122045.3035709-1-edumazet@kernel.org>
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