Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

eth: bnxt: request unconditional ops lock

netdev_lock_ops conditionally grabs instance lock when queue_mgmt_ops
is defined. However queue_mgmt_ops support is signaled via FW
so we can sometimes boot without queue_mgmt_ops being set.
This will result in bnxt running without instance lock which
the driver now heavily depends on. Set request_ops_lock to true
unconditionally to always request netdev instance lock.

Fixes: 004b5008016a ("eth: bnxt: remove most dependencies on RTNL")
Signed-off-by: Stanislav Fomichev <sdf@fomichev.me>
Link: https://patch.msgid.link/20250309215851.2003708-2-sdf@fomichev.me
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Stanislav Fomichev and committed by
Jakub Kicinski
eaca6e5d 110eff17

+1
+1
drivers/net/ethernet/broadcom/bnxt/bnxt.c
··· 16613 16613 bp->rss_cap |= BNXT_RSS_CAP_MULTI_RSS_CTX; 16614 16614 if (BNXT_SUPPORTS_QUEUE_API(bp)) 16615 16615 dev->queue_mgmt_ops = &bnxt_queue_mgmt_ops; 16616 + dev->request_ops_lock = true; 16616 16617 16617 16618 rc = register_netdev(dev); 16618 16619 if (rc)