🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #22047

Re: [PATCH net-next 10/15] batman-adv: tt: keep local entry unchanged when ADD can't be queued

#22047
From: Sven Eckelmann
Date: Tue, 24 Nov 2026 19:30
61 lines
10839 bytes
--nextPart10953751.nUPlyArG6x
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="utf-8"; protected-headers="v1"
From: Sven Eckelmann <sven@narfation.org>
To: sw@simonwunderlich.de, netdev-bot+sashiko@kernel.org
Date: Tue, 24 Nov 2026 20:30:40 +0100
Message-ID: <8764057.T7Z3S40VBb@sven-desktop>
In-Reply-To: <179554084314.3135.7493792255015362398@kernel.org>
MIME-Version: 1.0

On Tuesday, 24 November 2026 18:20:43 CET netdev-bot+sashiko@kernel.org wrote:
> > diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c
> > index 977f62c88da76..c94b292a1c4a8 100644
> > --- a/net/batman-adv/translation-table.c
> > +++ b/net/batman-adv/translation-table.c
> > @@ -653,10 +653,18 @@ static u16 batadv_tt_flags_get(struct batadv_tt_common_entry *common)
> >   * Only a single change per client is queued. It describes the latest state of
> >   * the client and a new event therefore replaces an already queued one.
> >   *
> > + * The other nodes only learn about the modification of a local entry through
> > + * the queued change. The caller must therefore not modify the entry in a way
> > + * which depends on this change (e.g. hash it as BATADV_TT_CLIENT_NEW or mark it
> > + * as BATADV_TT_CLIENT_PENDING) when the event could not be stored.
> > + *
> >   * The caller must hold the flags_lock of @common. The events of an entry are
> >   * then queued in the same order in which its flags were modified.
> > + *
> > + * Return: true if the event was stored, false if the memory for it could not
> > + * be allocated.
> >   */
> > -static void __batadv_tt_local_event(struct batadv_priv *bat_priv,
> > +static bool __batadv_tt_local_event(struct batadv_priv *bat_priv,
> >                                    const struct batadv_tt_common_entry *common,
> >                                    u8 flags)
> >        __must_hold(&common->flags_lock)
> 
> [Severity: Low]
> At this commit, batadv_tt_local_set_pending() in
> net/batman-adv/translation-table.c doesn't follow the new rule. It still
> ignores the return value and always sets the PENDING flag:

This prepares it for a later patch. I don't think it helps us here to discuss 
in which patch this comment is added.

Regards,
	Sven
--nextPart10953751.nUPlyArG6x
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit

-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQS81G/PswftH/OW8cVND3cr0xT1ywUCawXl4AAKCRBND3cr0xT1
y5yzAQDFrPw6mFWxgsmTLHTh/ggZG6w7rryMxKeiO54dfeOyvQEAt1IQ1iIY/fqW
eqLnt1OzHZWbYCIL3Acb+b0T9X37Aws=
=CMte
-----END PGP SIGNATURE-----

--nextPart10953751.nUPlyArG6x--
Technical Details
Message-ID: <8764057.T7Z3S40VBb@sven-desktop>
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370711-linux-kernel-netdev=dewy.ru
References: <20261123171827.3294525-11-sw@simonwunderlich.de> <179554084314.3135.7493792255015362398@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370711-linux-kernel-netdev=dewy.ru
From: sven@narfation.org (Sven Eckelmann)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next 10/15] batman-adv: tt: keep local entry unchanged when
 ADD can't be queued
Date: Tue, 24 Nov 2026 20:30:40 +0100
Organization: Usenet Network
Message-ID: <8764057.T7Z3S40VBb@sven-desktop>
References: <20261123171827.3294525-11-sw@simonwunderlich.de>
 <179554084314.3135.7493792255015362398@kernel.org>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="nextPart10953751.nUPlyArG6x";
 micalg="pgp-sha512"; protocol="application/pgp-signature"
Injection-Info: usenet.network;
	logging-data="22788"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:l0lUz4lbd2dqRRs0rYOjFnqhTpc= sha256:UR0KBjmLG8dQMTH/5GqaSwm8GUYfivXpNOwjxo+8Vj0=
	sha1:R06s6+v1sh1WEIZhrbt9y9vG5/U= sha256:WNQ+jzbl1DNwI/YugNv4m8mITKaNgrKESD9peCV+wgI=
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 EBB9A125E2B; Tue, 24 Nov 2026 22:31:03 +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 (1024-bit key)
	header.d=narfation.org
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 Xhs2smx4LDMO;
	Tue, 24 Nov 2026 22:31:00 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-370711-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=narfation.org
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id E5294125E29; Tue, 24 Nov 2026 22:30:51 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id E71E527099; Tue, 24 Nov 2026 19:30:48 +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=1795548646;
	b=ASpwnbrf7xgoa9ED767OtAdtFrwhBlAFsYLNR/ayUEnSwmC44yHUEijTfQvpvOfcyMto
	 jYlSRP489aN2OKm/ECBeaHZ8UuGv5EnB34C3wPc00cohOPD8Hv5GyvdDjvfwKaOAzlMKR
	 1zJ9uN6uDFkG7R/DrfgarvOND/7elzR3vuXY4xKEhBKhk3femz8oOdPDrAU2wk9Vnrb/x
	 8DB55Q1Ge2kgwrKDvGhPgXvWBGuzYjWQlHTLAIuvmHdoHqBC7oGlyGcIHLcEcaCAyv1Ug
	 +VZLebnAVzbNOvfFwd91TWWid+1bZZFwYw5zsdVM7POQev4sWWg4kXkkInc9WcCvwKA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795548646;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:From:To:
	 Cc:Subject:Date:Message-ID:In-Reply-To:References:X-Mailing-List:
	 List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
	 List-Owner:Precedence:MIME-Version:Content-Type;
	bh=C6LFLahScyEdnHNyHIpJYyhDCb17bkz1JmKjMkFMMbg=;
	b=VHdlB4mpSngH+n5nd7DiMmZgIrj46NyCJSuU2J/wPvlU9Jjdg69BT8+Wn2lRSY6QU1jb
	 LP7nZqFgHAco1t265ikuvmjEtOicQInQ76Wcpoxyf/F1asDP665pI6bT/dDbM/QJSPNDm
	 zrm4j/U6/YYPpm9zeSNw9buBh6jZLZrVLtu/83Dc9Q/0G7HygWnSNuxcu98XbPLpqkYas
	 j3ePkZKCAMeRYlUYVAknEfOatgvx51LOlfmMfm9QieVvCoqx22OH4vjJSx1/zJKpclkEE
	 m+c+RD5Hy9dww8oJ/qGLrtkcwkqnD8ie/O9PpKjtSla0MtXRXPXYweJcNK3zQ+3kQkQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=narfation.org header.i=@narfation.org header.a=rsa-sha256 header.s=20121 header.b=qN1cYuK4;
	dmarc=pass header.from=narfation.org;
	spf=pass smtp.mailfrom=narfation.org;
	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 ABAE4606A32C;
	Tue, 24 Nov 2026 19:30:46 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=narfation.org header.i=@narfation.org header.a=rsa-sha256 header.s=20121 header.b=qN1cYuK4
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=213.160.73.56
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795548645;
	b=14RHMudEtP73tm6LOfRXtWyGW8Oor8Mi1qkxccFEGzFW8wIClEzr3XiLq05UjngVcD1o
	 fsxcTyOmLBtYRWfp096sNv4TurKO2zYx8c+Y+6ZoQy0PSdyxXPCEP0+NAV2YpPJ/YViyn
	 qFMVVyl+qZtL092mUKP0p58hOaPEzJ9xuV7i4qmbemjsnK1/zMIgsjtY6jgALdd/AgnEl
	 tESjKXOmHY2zZjhWraEYmbw+cVl4FY3ILaIAd6oCtabMZjMydHH5uE4SamUq1ogjCU2gV
	 Htqg4TgH5idUMcKFJ88f1rhLHAMV7+kaKprICf+njrsypqbNn8RE6Kjbhw/usw9sKIg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795548645;
	h=DMARC-Filter:Received:DKIM-Signature:From:To:Cc:Subject:Date:
	 Message-ID:In-Reply-To:References:MIME-Version:Content-Type;
	bh=C6LFLahScyEdnHNyHIpJYyhDCb17bkz1JmKjMkFMMbg=;
	b=npdj9qvYUGN8260DqZGrbU2fjqZeV55JNltrXaC9HEIf1XMt7o4vhB3Ui4eoA5vre9Ti
	 RmwF5BM8cc2Ru7pJujhVZ2NwZclqpIIHE90M8cIAvYIv1kW1YSoVOqyG/gi94Pe+d+DJV
	 4tO287zW+IdiVJ0afkwB8LsdMAtq3N7UG/0d48fwaBWjAXnwLSRtBemS3M24f6fpPBQLu
	 AHP38lXP5ZG0ZdQHBZUDPIfWnUuzUkgBtXYF0PhJWnpdraBsHUGxzkpXkBkPuzcnQROD3
	 NjdmJsqwihrD99z5minphLK1jNCeZLzbjqK292k37VdWu48wWOzOThXm5OpZOQywUqg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=narfation.org;
	spf=pass smtp.mailfrom=narfation.org;
	dkim=pass header.d=narfation.org header.i=@narfation.org header.a=rsa-sha256 header.s=20121 header.b=qN1cYuK4;
	arc=none smtp.remote-ip=213.160.73.56
X-Received: from dvalin.narfation.org (dvalin.narfation.org [213.160.73.56])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 583D8606A31E
	for <netdev@vger.kernel.org>; Tue, 24 Nov 2026 19:30:45 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 583D8606A31E
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=narfation.org
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=narfation.org
X-Received: by dvalin.narfation.org (Postfix) id C0FB4203E2;
	Tue, 24 Nov 2026 19:30:42 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=narfation.org;
	s=20121; t=1795548643;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
	 in-reply-to:in-reply-to:references:references;
	bh=C6LFLahScyEdnHNyHIpJYyhDCb17bkz1JmKjMkFMMbg=;
	b=qN1cYuK498MOSJXUxYLSpZdQzxIJtE/3oMa8dgbowvVVdVJ+mWSBJ38hpTdCoCKLvKBREG
	a5WVQ6xhsfmmB6n7OZEbt79ZChCLpOIpYBZOjAdFAWAVAao9zql97BITbEfRYj2sx+QBdi
	QGMV0p9alIePFRA1EVW0LvY8HpQEMDI=
X-Cc: netdev@vger.kernel.org, davem@davemloft.net, edumazet@google.com,
 kuba@kernel.org, pabeni@redhat.com, horms@kernel.org,
 b.a.t.m.a.n@lists.open-mesh.org
X-In-Reply-To: <179554084314.3135.7493792255015362398@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