rxe_cfg_small: Remove unused function
link_up_rxes() is not used anywhere so remove it. That said, make sure that link_up() is called while adding the rxe device(s). Change-Id: Ic0f9573b911d83d58b42f62d104ef916aa010e4e Signed-off-by: Michal Berger <michalx.berger@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3824 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
0b4d8bf59e
commit
8e43a261ea
@ -217,6 +217,7 @@ add_rxe() {
|
|||||||
for dev in "${net_devs[@]}"; do
|
for dev in "${net_devs[@]}"; do
|
||||||
(($(< "$dev/type") != 1)) && continue
|
(($(< "$dev/type") != 1)) && continue
|
||||||
echo "${dev##*/}" > "$rdma_rxe_add"
|
echo "${dev##*/}" > "$rdma_rxe_add"
|
||||||
|
link_up "${dev##*/}"
|
||||||
done 2> /dev/null
|
done 2> /dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -224,15 +225,6 @@ remove_rxe() {
|
|||||||
[[ -e $infiniband/${1##*/} ]] && echo "${1##*/}" > "$rdma_rxe_rm"
|
[[ -e $infiniband/${1##*/} ]] && echo "${1##*/}" > "$rdma_rxe_rm"
|
||||||
}
|
}
|
||||||
|
|
||||||
link_up_rxes() {
|
|
||||||
local rxe parent
|
|
||||||
|
|
||||||
for rxe in "$infiniband/rxe"+([0-9]); do
|
|
||||||
parent=$(< /"$rxe/parent")
|
|
||||||
link_up "$parent"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
link_up() {
|
link_up() {
|
||||||
[[ -e $net/$1 ]] || return 0
|
[[ -e $net/$1 ]] || return 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user