Netdev List
 help / color / mirror / Atom feed
From: netdev-bot+sashiko@kernel.org
To: satishkh@cisco.com
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
Subject: Re: [PATCH net-next v3 1/6] net: add netif_rx_mode_schedule_update()
Date: Mon, 23 Nov 2026 00:32:05 +0000	[thread overview]
Message-ID: <179539392528.3135.17519001770292308142@kernel.org> (raw)
In-Reply-To: <20261118-b4-enic-sriov-v2-vf-receive-control-v3-1-2cb25677aa8c@cisco.com>

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

  reply	other threads:[~2026-11-23  0:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-18 23:32 [PATCH net-next v3 0/6] enic: add V2 VF receive control over MBOX Satish Kharat
2026-11-18 23:32 ` [PATCH net-next v3 1/6] net: add netif_rx_mode_schedule_update() Satish Kharat
2026-11-23  0:32   ` netdev-bot+sashiko [this message]
2026-11-18 23:32 ` [PATCH net-next v3 2/6] enic: serialize V2 VF mailbox requests Satish Kharat
2026-11-18 23:32 ` [PATCH net-next v3 3/6] enic: recover V2 VF mailbox after request failure Satish Kharat
2026-11-23  0:32   ` netdev-bot+sashiko
2026-11-18 23:32 ` [PATCH net-next v3 4/6] enic: validate V2 VF configuration replies Satish Kharat
2026-11-23  0:32   ` netdev-bot+sashiko
2026-11-18 23:32 ` [PATCH net-next v3 5/6] enic: manage V2 VF station and administrative MAC Satish Kharat
2026-11-23  0:32   ` netdev-bot+sashiko
2026-11-18 23:32 ` [PATCH net-next v3 6/6] enic: configure V2 VF receive mode over mailbox Satish Kharat
2026-11-23  0:32   ` netdev-bot+sashiko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179539392528.3135.17519001770292308142@kernel.org \
    --to=netdev-bot+sashiko@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=aradhana@cisco.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=rfaucett@cisco.com \
    --cc=satishkh@cisco.com \
    --cc=sebaddel@cisco.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox