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

RDMA/hns: Set IB port state depending on upper device for RoCE bonding

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



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

For RoCE bonding, the IB port state should depend on the link
status of upper device. When the upper device is link up, the
IB port state should be IB_PORT_ATIVE; otherwise, the state
should be IB_PORT_DOWN.

Particularly, when all slaves are link down, the upper device will become
link down automatically, and when at least one slave become link up, the
upper device will become link up. In these situations the IB port will
also change accordingly.

Signed-off-by: default avatarJunxian Huang <huangjunxian6@hisilicon.com>
parent e4ad37ea
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment