]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RDMA/hns: Add delayed work for bonding
authorJunxian Huang <huangjunxian6@hisilicon.com>
Wed, 12 Nov 2025 09:35:08 +0000 (17:35 +0800)
committerLeon Romanovsky <leon@kernel.org>
Mon, 24 Nov 2025 07:58:30 +0000 (02:58 -0500)
commit5d91677bbb6435761b51a7154f59dc70af333f4b
tree7e7df8d515b6462500ca3aab411b0dfa7d58b2e8
parentd9023e461b73e2918c689e09b2ecf72389632da3
RDMA/hns: Add delayed work for bonding

When conditions are met, schedule a delayed work in bond event handler
to perform bonding operation according to the bond state. In the case
of changing slave number or link state, re-set the netdev for the bond
ibdev after the modification is complete, since these two operations
may not call hns_roce_set_bond_netdev() in hns_roce_init().

The delayed work will be paused when there is a driver reset or exit
to avoid concurrency.

Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://patch.msgid.link/20251112093510.3696363-7-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/hns/hns_roce_bond.c
drivers/infiniband/hw/hns/hns_roce_bond.h
drivers/infiniband/hw/hns/hns_roce_hw_v2.c