🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #18900

Re: [PATCH net v2] net: hsr: clean up synced addresses and allmulti in hsr_del_port()

#18900
From: patchwork-bot+netdevbpf
Date: Thu, 19 Nov 2026 02:10
33 lines
9416 bytes
Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Thu, 12 Nov 2026 14:47:16 +0800 you wrote:
> hsr_set_rx_mode() syncs unicast and multicast addresses to slave A and
> slave B devices via dev_uc_sync_multiple() and dev_mc_sync_multiple(),
> and hsr_change_rx_flags() propagates IFF_ALLMULTI via
> dev_set_allmulti().
> 
> When an UP HSR device is deleted via hsr_dellink(), hsr_del_ports()
> removes all ports from hsr->ports before unregister_netdevice_queue()
> leads to hsr_dev_close(). Consequently, hsr_dev_close() iterates over an
> already-empty port list and cannot execute dev_uc_unsync() or
> dev_mc_unsync() on the detached slaves. Likewise, when a slave device is
> unregistered while the HSR master is UP, hsr_netdev_notify() calls
> hsr_del_port() directly without running hsr_dev_close(). In addition,
> hsr_dev_close() does not release IFF_ALLMULTI on slave devices either.
> As a result, detached slave devices can retain synced unicast/multicast
> addresses and an elevated allmulti reference count.
> 
> [...]

Here is the summary with links:
  - [net,v2] net: hsr: clean up synced addresses and allmulti in hsr_del_port()
    https://git.kernel.org/netdev/net-next/c/a02d05f6aff8

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179505420503.2716323.9284279349036950699.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366658-linux-kernel-netdev=dewy.ru
References: <20261112064716.85381-1-sunwenbo@cmss.chinamobile.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366658-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v2] net: hsr: clean up synced addresses and allmulti
 in
 hsr_del_port()
Date: Thu, 19 Nov 2026 02:10:05 +0000
Organization: Usenet Network
Message-ID: <179505420503.2716323.9284279349036950699.git-patchwork-notify@kernel.org>
References: <20261112064716.85381-1-sunwenbo@cmss.chinamobile.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2761028"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:tze41vC5QmBbsp1B8t6jWAl3NHY= sha256:LfMVtVRz5rr0Ap5nJPeq64eGyPB3NylNCyPwVg0ktRc=
	sha1:7MdsGx29X53lApavZrK+MJdf6b0= sha256:Tu22wv7gYq+c247gdl/PbbcPoJew1eo3LBlYXssAbxc=
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 8F2011154A2; Thu, 19 Nov 2026 05:10:25 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	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=kernel.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 xkOcu1w1noIB;
	Thu, 19 Nov 2026 05:10:21 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-366658-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 0BC4A114013; Thu, 19 Nov 2026 05:10:12 +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 2EF6F2E3C55; Thu, 19 Nov 2026 02:10:08 +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=1795054207;
	b=U3HB1UqBncEJfqc5NRZwD7MW41KpH+ldtU53W7eN6BbRaVYoZcanxbSYZmKfxJSznCfN
	 TGVS2R6DQJwkbTA0elvgTnJfRWZIy8OE0qFB7X6ypnDYO2ghr9bao0QmrAli2jTeH6XLn
	 eTZW5UKfDsK0X/oPQpTtDve20TrbQdpfcHseBkHNhoBFOTwaHfPufpj8kp9w2P93OfgxL
	 QUOv873ybYIrjWTTzUG3CwpgxD0hKTg74oKwfKXhB9MHOjAW4Cm8JiZEK2S7KI4AvRFB6
	 VPOzvarhnDGUj95tFn0p1nVnJzRUHSU3gklKNOfr7E1fogcSRoGDOk9fC4Ck2tT9piw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795054207;
	h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=UEjhzhCjQdaRhLGAQv+AyZZcdtMTWVkXBmp9NELmJzs=;
	b=km+Dnr8NnIp+fK98mOURTXWTTtWwLDtgioMXbdcLGQhuyyrTzImowsNAhUcM2FZaJ1vP
	 zvqE4GRxy1pL65H72JctFJLwk4GCsb7XDyyjrtvBm5BzoRxvYu67SXCKTblg35I56lX2L
	 qMQRmETafkfstXzQQ2T0IEUYja9SLg6bqzKYREUPyttbT04Ov3G/72noq8mRq+gR4expI
	 UOtLyxrGrzH5w3pdifzzXxhL4emCurZm4rn3aq+5GlOMOTvt9lch2cGRx0qjNOitgb4PA
	 ODrFasvXQMk3CN2y034z/EaLcv3Ox8fnS1XgXHeHIJfEoJWSQ7+0A6uhmyI6d+6f/aQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=BENrbtHc;
	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 65B37606A332;
	Thu, 19 Nov 2026 02:10:07 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=BENrbtHc
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795054206;
	b=yxzkwfCIdly1vzMx78y7kd2y5XwcjS6nhlB4Rpfs1AOOIk7OCovAgwRCtMuy9juTlzeG
	 mXuDIAfWVsCRpISYgU01t8ish6bTHGF+G7TQmkfB4SjqMFvFKpQDg21GBV95RlhSZWFk/
	 y6D/AyMHPrbWJ0g1G8cwLZEeJ7IxDx80ksPxirJRI0DuxUCvUIDLJFNB9n5muKcvqt86F
	 ilDyfZ5gnYtDwL3l9oGeHH/tIAmwGOj8QqQG9Ix+oSDbAlxDB90BC8zbPhTb1wJNcDBva
	 g+TvGS/494rDXW1zemEbKS+ZADPQ+KLurL+k1ye3oZvqsUn+mrTyiaheNBo/iW9VW+A==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795054206;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=UEjhzhCjQdaRhLGAQv+AyZZcdtMTWVkXBmp9NELmJzs=;
	b=5fM9Goo5GX2+mKV6iZHZipNCAlyT89ZosPvrW+qDXN9M5Ap9TiCLWMIzHveLMsvUXzgd
	 Vx5J/wYlywm+cO49XKqDblyEf2GIJ/Qry4CdttaAa9TylB08Tm2YkwnKFP9hnYHCuDaqR
	 9Ye9S0n0CUoRo3obnVQNL6u1UGL12aPz9bwQPWzXLaV+VN9C8OvOCsaVmQuqmSqg6txDq
	 z968J5aqTcW55iOLuMtCO9q+f7MAwM5gF1Cm200yefuplm9tY90bekEUi50c60TqCYXDN
	 Gc0QC2MIcUotqdCvFC6/fKtCiymRtFj8UO91vQGKf8HVwOm7jwZPTkLsD/4WfNTdSsA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=BENrbtHc;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(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 8244D606A32A;
	Thu, 19 Nov 2026 02:10:06 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4233B1F000C4;
	Thu, 19 Nov 2026 02:10:06 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795054206;
	bh=UEjhzhCjQdaRhLGAQv+AyZZcdtMTWVkXBmp9NELmJzs=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=BENrbtHcfeLmLZAUEZEdbOi+stF1n3MNYQxdS+9PUk9ONECL/kDh6aCGWEy4bltuh
	 oOU7pyneLH9u4WQ1VF8VeSCisY8oygcgAjMQTbGB/MsZZw+vVtcjdno7Mv/8Qa3sTa
	 o5ADQGUNSq1/6YUhHJNnrsn25DmOB02H18UBoPss+FcYSdprIEBsc3pozoAq+L8VnW
	 LhGwH9oW1Jc5rsjTzB9q+MWyX0nee2p3GhdI4pU2qCLm2psqK4yMKvIP9Xhg10hf4O
	 6XZ3ogVrsKiXQ0XIosDVD5z+wq9hHruM33owfcLepSYuuQ1JDllOvqa27HnrWkSOU1
	 IdParg3ZaNwBA==
X-Received: from [10.30.226.235] (localhost [IPv6:::1])
	by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 3A3393808210;
	Thu, 19 Nov 2026 02:10:06 +0000 (UTC)
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: <20261112064716.85381-1-sunwenbo@cmss.chinamobile.com>
X-Cc: davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
 pabeni@redhat.com, horms@kernel.org, hangbin.liu@linux.dev, fmancera@suse.de,
 danishanwar@ti.com, m-karicheri2@ti.com, wojciech.drewek@intel.com,
 r-gunasekaran@ti.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
 1342116488@qq.com, liuhangbin@kylinos.cn