๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
1 messages
1 total messages Started by netdev-bot+sashiko Mon, 23 Nov 2026 00:32
Re: [PATCH net-next v3 1/6] net: add netif_rx_mode_schedule_update()
#20601
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads