summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/mana/mana_ib.h
diff options
context:
space:
mode:
authorLong Li <longli@microsoft.com>2025-03-12 16:15:32 -0700
committerLeon Romanovsky <leon@kernel.org>2025-03-13 08:03:03 -0400
commitbee35b7161aaaed9831e2f14876c374b9c566952 (patch)
treeb67bedacdebdf582ca8269a7df720ee089839f3e /drivers/infiniband/hw/mana/mana_ib.h
parenta8445cfec101c42e9d64cdb2dac13973b22c205c (diff)
RDMA/mana_ib: Handle net event for pointing to the current netdev
When running under Hyper-V, the master device to the RDMA device is always bonded to this RDMA device. This is not user-configurable. The master device can be unbind/bind from the kernel. During those events, the RDMA device should set to the current netdev to reflect the change of master device from those events. Signed-off-by: Long Li <longli@microsoft.com> Link: https://patch.msgid.link/1741821332-9392-2-git-send-email-longli@linuxonhyperv.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/infiniband/hw/mana/mana_ib.h')
-rw-r--r--drivers/infiniband/hw/mana/mana_ib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mana/mana_ib.h b/drivers/infiniband/hw/mana/mana_ib.h
index 81a7e7474462..6903946677e5 100644
--- a/drivers/infiniband/hw/mana/mana_ib.h
+++ b/drivers/infiniband/hw/mana/mana_ib.h
@@ -79,6 +79,7 @@ struct mana_ib_dev {
struct mana_ib_adapter_caps adapter_caps;
struct dma_pool *av_pool;
netdevice_tracker dev_tracker;
+ struct notifier_block nb;
};
struct mana_ib_wq {