Commit 01c810c8 authored by Junxian Huang's avatar Junxian Huang Committed by ZhouJuan
Browse files

RDMA/hns: Fix the counting error of slave number

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6Z4E9



---------------------------------------------------------------

Currently, the driver will count the number of slave hr_dev,
but during bond clearing event and slave decreasing event, only
one slave has a corresponding hr_dev, and the number will always
be 1. It causes that all slave decrease events are redirected to
a bond clearing operation.

This patch fixes this problem by counting slave netdev directly instead
of getting its hr_dev during bond clearing event and slave decreasing
event.

Fixes: 646b97db ("RDMA/hns: adjust the structure of RoCE bonding driver")
Signed-off-by: default avatarJunxian Huang <huangjunxian6@hisilicon.com>
parent 8d3ee0ae
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment