RDMA/hns: Fix init check of VFs on RoCE bonding slaves
driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8QLD3 ---------------------------------------------------------------------- This patch makes 2 changes for check_vf_support(): 1. add check of RDMA over UBLink VFs before check_vf_support(), since VFs in this case will never be of RoCE bonding slaves. 2. since RDMA over UBLink VFs won't enter check_vf_support() anymore, the return value is changed to false when the PF doesn't have a corresponding hr_dev so that VFs init can be correctly blocked on those non-main_hr_dev slaves. Fixes: 67fc1055 ("RDMA/hns: Add support for RDMA VF over UBL") Signed-off-by:Junxian Huang <huangjunxian6@hisilicon.com>
Loading
Please sign in to comment