๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #20601

Re: [PATCH net-next v3 1/6] net: add netif_rx_mode_schedule_update()

#20601
From: netdev-bot+sashiko
Date: Mon, 23 Nov 2026 00:32
64 lines
10077 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.

Low priority / nit picks for your consideration:

- [Low] The concern: netif_rx_mode_schedule_update() is exported with
  EXPORT_SYMBOL_GPL and declared in include/linux/netdevice.h, butโ€ฆ

--

net: add netif_rx_mode_schedule_update()

This adds an exported helper that callers use to start a new receive-mode
update after a state transition. It cancels any pending retry timer and
resets the retry backoff, then queues an immediate update. Address-list
sync state is left as it is.

> diff --git a/net/core/dev_addr_lists.c b/net/core/dev_addr_lists.c
> index b6f25e487984b..89ae77360a0bb 100644
> --- a/net/core/dev_addr_lists.c
> +++ b/net/core/dev_addr_lists.c
> @@ -1568,6 +1568,27 @@ static void netif_rx_mode_queue(struct net_device *dev)
>  	__netdev_work_core_sched(dev, NETDEV_WORK_RX_MODE);
>  }
>  

[ ... ]

> +void netif_rx_mode_schedule_update(struct net_device *dev)
> +{
> +	might_sleep();
> +	netdev_assert_locked_ops_compat(dev);
> +	netif_rx_mode_cancel_retry(dev);
> +	netif_rx_mode_queue(dev);
> +}
> +EXPORT_SYMBOL_GPL(netif_rx_mode_schedule_update);

[Severity: Low]
This isn't a bug, but nothing in the tree calls
netif_rx_mode_schedule_update() at this commit. It is still exported
with EXPORT_SYMBOL_GPL and declared in include/linux/netdevice.h.

Later patches in the series add the callers in
drivers/net/ethernet/cisco/enic/enic_main.c:

  - the admin MAC notification
  - the V2 VF set-MAC path
  - the reopen in _enic_change_mtu()
  - the soft-reset reopen
  - the hang-reset reopen

enic can be built as a module, so the GPL export and the public
declaration both look right. The existing retry users in bnxt_init_chip()
and bnge are not converted, but the commit message does not say they
will be.

Would it be cleaner to fold this helper into the first enic patch that
uses it? Or could the commit message name the upcoming user, so the
export does not look orphaned when this patch is read on its own?

-- 
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261118-b4-enic-sriov-v2-vf-receive-control-v3-0-2cb25677aa8c%40cisco.com
Technical Details
Message-ID: <179539392528.3135.17519001770292308142@kernel.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder2.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368904-linux-kernel-netdev=dewy.ru
References: <20261118-b4-enic-sriov-v2-vf-receive-control-v3-1-2cb25677aa8c@cisco.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder2.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368904-linux-kernel-netdev=dewy.ru
From: netdev-bot+sashiko@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v3 1/6] net: add netif_rx_mode_schedule_update()
Date: Mon, 23 Nov 2026 00:32:05 +0000
Organization: Usenet Network
Message-ID: <179539392528.3135.17519001770292308142@kernel.org>
References: <20261118-b4-enic-sriov-v2-vf-receive-control-v3-1-2cb25677aa8c@cisco.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network; logging-data="3754805"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:sDucuhMknV7bGMF1R3XnvF95+IM= sha256:1T2aUB3PfId93nShcXgVRObDaOTX4vzDJX78vYLQ+TE= sha1:KLUSQty/MgoZfwdPP23bdSMbfqI= sha256:zmGMINpJsq48aLDkpZ+Qe4B+eYtwmVRk2sE26qulrpg=
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 66CFC125D8A; Mon, 23 Nov 2026 03:32:22 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.4
X-Spam-Status: No, score=-3.4 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, URIBL_BLOCKED=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 idpZEvq1LPRj; Mon, 23 Nov 2026 03:32:18 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-368904-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 07B57125D88; Mon, 23 Nov 2026 03:32:09 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 8D21F27FFC; Mon, 23 Nov 2026 00:32: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=1795393927; b=cjarh/SxImhEdXzchqv6B7zL5TnPJfIqnC7mPvyfEf61xHTT8pHPXc9Kt88YodyWRD44 R9u1kXZyXsotyQo01gl/Xc9xH1djOQ86BhodWgauB7JUi6WWnSjIc0D8hVcg6H9vU+KtV MG5uEPZPtV40dYbnQoiy6YHUtMt/02VpQ4vxntx4XQntGv/xT2tZhqokoyLqXApgj1b4k pJ4vzPEFEFcgvFlHdU4rCP5nDoT0xK4FEvlfMUwlG/APSkUnkO8g/z7QIkby05x1ty3K4 7REthD6H+ORxDGFN4IOMjjhGEmjxa4PABgNxJfjsbuRyPMaImlm/IrR0BT29SR60fQA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795393927; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=vosa4QmuJd4Ix68iLJg+EIXeXcBTIsay77hDA6Bu0nE=; b=1eOtjqMt8WwQgH4i/IXD3d1ofHxa+4OvNR1Bqv2P8m7JmDfyqcyX3ujQ96BCme6/M+60 89VbgbPvXlfxA19/dmJV4v7jm36b+nfPxlve8QyPvevIOiQJ3HUsSoG8Qqja1zwlQcFHo f8ps7bMB+rcymMAV/rKYCiB0Qtn2jFIBMr+AEWB+ZlUnprzRCfVQMgm2xbcPynkbeul9h AB+IfdKmdo/OcLX4mXFhezoDhSYreraOjciMuWVbq/JilTN5dwUJ3PPw1YN3xx2iuifBH 4hrs4eSayb9LTNY/0cvq0COQDzmCeEsh+5Y/0uVm7L+mxutZefRlqyFO7lotWkDd/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=XQfatdW7; 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 C96E6606A332; Mon, 23 Nov 2026 00:32: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=XQfatdW7
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=1795393927; b=jprFW5mVg5CTlI7DgxBzv5+gBSh4b083EkoFNSE9DbK6cxvZHAZFjYFB2Fcfb3LOBtQj Hr4RI6hfSAkvXG+cBYCy6Fm8shBkJ0cSpCbN/EjFN0r2jEQak9NC6i6mTxbX9+TEG7JTM jVUOrlXB8QJ/ATcQXQcx2pp6DLwd0rRp5v/pwPYwxv9bLTb4yCPwcELgEQBxz7qkEahW+ HbVAZY5DmyqTY3MjH09Mcv/ztPz+Z6w1cY7VN0JWiT0NrLhebWhebOGPl8Fynm7w4FM50 5d6U31k986a/CtdKxA0WV6v8FzRgYyBUQnbCplZIlHtHvpqTTlst8QGl5UUu9pxZU7w==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795393927; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=vosa4QmuJd4Ix68iLJg+EIXeXcBTIsay77hDA6Bu0nE=; b=ZiSfc2zQYqMzwZq1WiSP/9pCinj3HUp87i0Fb2x8rNy2hXqXzT2BNXLheEHKh8jSOYPc CBSQjmtjOdcZD6I1px5YLsS7UXHEg90uDzENuWqmPBWrJzxG2O3YKytjOedis0aczLqBp z/Iz8QljlBYaYQ1M3RiXyc+5R2nJ/T4GtQhEEg0RUJ+7WmQRWOQ+ttD/E38DfEBO7Lmcd RiRlmrnZTjctMTuhoZ6WC5c01nwwvVIQFQKtiHGdcpRqRYox6kX2s/aJCLBBzj2uRsMA4 Lf2aNkYPRRW+BF/5E2vuWseYS+vnOkyGE+Ofswfk0otI6oCXB4Y0d+42/F5Fh9OGPcg==
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=XQfatdW7; 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 E7D7E606A31A; Mon, 23 Nov 2026 00:32:06 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id B19F81F000C4; Mon, 23 Nov 2026 00:32:05 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795393926; bh=vosa4QmuJd4Ix68iLJg+EIXeXcBTIsay77hDA6Bu0nE=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=XQfatdW7oZzxBHdBlCEKPfS3cuBV9fdQKTC7qYzAE/y/5NaqIMK7bBKk/YasCUKyt EBplFjEMCHrpf7F4DNUgfukSFmCm3mvjCIRBgAgzj5pLCNxHcxstzpBDkPjmd30bpx GeORpY+9SAp+YfywJy02bo6jgu54Tji2srO+UmlkkHXFjKUlhQjg0WyI1nhJvUkFK4 WDx0Dd6ALtP0NutnJgiNJVm6IW+yeY0Bgrf17s9/huuF+3WszXw2O8EHelHNAf56/H //tCv8eoowEdv+oisuuF7bQhTbO31qn1ytEzmygRB/IuMkirnihbriNnK5ZnTjK/Fs qZxup5Am4FHKA==
X-Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, sebaddel@cisco.com, aradhana@cisco.com, rfaucett@cisco.com
X-In-Reply-To: <20261118-b4-enic-sriov-v2-vf-receive-control-v3-1-2cb25677aa8c@cisco.com>
X-sashiko-severity: Low
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