linux/drivers/infiniband/ulp
Cosmin Ratiu fd07ba1680 IB/IPoIB: Allow using netdevs that require the instance lock
After the last patch removing vlan_rwsem, it is an incremental step to
allow ipoib to work with netdevs that require the instance lock.
In several places, netdev_lock() is changed to netdev_lock_ops_to_full()
which takes care of not acquiring the lock again when the netdev is
already locked.

In ipoib_ib_tx_timeout_work() and __ipoib_ib_dev_flush() for HEAVY
flushes, the netdev lock is acquired/released. This is needed because
these functions end up calling .ndo_stop()/.ndo_open() on subinterfaces,
and the device may expect the netdev instance lock to be held.

ipoib_set_mode() now explicitly acquires ops lock while manipulating the
features, mtu and tx queues.

Finally, ipoib_napi_enable()/ipoib_napi_disable() now use the *_locked
variants of the napi_enable()/napi_disable() calls and optionally
acquire the netdev lock themselves depending on the dev they operate on.

Signed-off-by: Cosmin Ratiu <cratiu@nvidia.com>
Reviewed-by: Carolina Jubran <cjubran@nvidia.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/1747829342-1018757-4-git-send-email-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-05-22 09:15:04 -07:00
..
ipoib IB/IPoIB: Allow using netdevs that require the instance lock 2025-05-22 09:15:04 -07:00
iser IB/iser: fix typos in iscsi_iser.c comments 2025-02-18 14:52:55 -05:00
isert IB/isert: remove the handling of last WQE reached event 2024-06-26 10:53:29 -03:00
opa_vnic RDMA: Use ethtool string helpers 2024-10-30 11:28:57 +02:00
rtrs RDMA v6.14 merge window pull request 2025-01-24 12:21:28 -08:00
srp SCSI misc on 20250126 2025-01-26 16:12:44 -08:00
srpt RDMA/srpt: Make slab cache names unique 2024-10-11 14:07:33 -03:00
Makefile