From bee35b7161aaaed9831e2f14876c374b9c566952 Mon Sep 17 00:00:00 2001 From: Long Li Date: Wed, 12 Mar 2025 16:15:32 -0700 Subject: 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 Link: https://patch.msgid.link/1741821332-9392-2-git-send-email-longli@linuxonhyperv.com Signed-off-by: Leon Romanovsky --- drivers/infiniband/hw/mana/mana_ib.h | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/infiniband/hw/mana/mana_ib.h') 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 { -- cgit v1.2.3