]> git.ipfire.org Git - thirdparty/linux.git/commit
RDMA/hns: Initialize bonding resources
authorJunxian Huang <huangjunxian6@hisilicon.com>
Wed, 12 Nov 2025 09:35:04 +0000 (17:35 +0800)
committerLeon Romanovsky <leon@kernel.org>
Mon, 24 Nov 2025 07:58:29 +0000 (02:58 -0500)
commitb37ad2e290fc52e575572b04803a4f93f584df6c
tree046097984ede53b252da52de0e6fc334274389a6
parentcdb3a6f1833ae4ab729d07dceee59e0fba213c24
RDMA/hns: Initialize bonding resources

Allocate bond_grp resources for each card when the first device in
this card is registered. Block the initialization of VF when its PF
is a bonded slave, as VF is not supported in this case due to HW
constraints.

Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://patch.msgid.link/20251112093510.3696363-3-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/hns/Makefile
drivers/infiniband/hw/hns/hns_roce_bond.c [new file with mode: 0644]
drivers/infiniband/hw/hns/hns_roce_bond.h [new file with mode: 0644]
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_main.c