Commit 4c5c7875 authored by Junxian Huang's avatar Junxian Huang Committed by Juan Zhou
Browse files

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: default avatarJunxian Huang <huangjunxian6@hisilicon.com>
parent 3b95cf96
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment