.nf_match_addr = libcfs_num_match,
.nf_min_max = cfs_num_min_max,
.nf_expand_addrrange = libcfs_num_addr_range_expand
- }
+ },
+ {
+ .nf_type = BXI3LND,
+ .nf_name = "bxi3f",
+ .nf_modname = "kbxi3lnd",
+ .nf_addr2str = libcfs_decnum_addr2str,
+ .nf_str2addr = libcfs_num_str2addr,
+ .nf_parse_addrlist = libcfs_num_parse,
+ .nf_print_addrlist = libcfs_num_addr_range_print,
+ .nf_match_addr = libcfs_num_match,
+ .nf_min_max = cfs_num_min_max,
+ .nf_expand_addrrange = libcfs_num_addr_range_expand
+ },
};
static const size_t libcfs_nnetstrfns =
KFILND = 16, /* HPE Kernel Fabric Interface */
TOFULND = 17, /* Fujitsu Torus Fusion */
EFALND = 18, /* Amazon Elastic Fabric Adapter */
+ BXI3LND = 19, /* Bull BXIv3 Fabric Interface */
/* Please email adilger@whamcloud.com and lustre-devel@lists.lustre.org
* to reserve new LND numbers before they are used anywhere. This only
* takes a few minutes, and will save everyone a lot of grief later.
.nf_print_addrlist = libcfs_num_addr_range_print,
.nf_match_addr = libcfs_num_match
},
+ {
+ .nf_type = BXI3LND,
+ .nf_name = "bxi3f",
+ .nf_modname = "kbxi3lnd",
+ .nf_addr2str = libcfs_decnum_addr2str,
+ .nf_str2addr = libcfs_num_str2addr,
+ .nf_parse_addrlist = libcfs_num_parse,
+ .nf_print_addrlist = libcfs_num_addr_range_print,
+ .nf_match_addr = libcfs_num_match
+ },
};
static const size_t libcfs_nnetstrfns = ARRAY_SIZE(libcfs_netstrfns);
local num_re='[0-9]+'
- if [[ $net =~ (gni|kfi)[0-9]* ]]; then
+ if [[ $net =~ (gni|kfi|bxi3f)[0-9]* ]]; then
[[ $addr =~ ${num_re} ]] && rc=0
elif [[ $net =~ tcp[0-9]* ]]; then
if ip_is_v4 "$addr" || ip_is_v6 "$addr"; then
- nid: 10@gni
- nid: 6@kfi
- nid: 10@kfi
+ - nid: 6@bxi3f
+ - nid: 10@bxi3f
EOF
append_global_yaml
nid_expr+=",6.6.[1-4/2].[0-6/3]@o2ib"
nid_expr+=",[6-12/4]@gni"
nid_expr+=",[6-12/4]@kfi"
+ nid_expr+=",[6-12/4]@bxi3f"
compare_peer_add "6.6.6.6@tcp" "${nid_expr}"
}
error "Peer add failed $?"
compare_peer_del "7@kfi"
- echo "Delete peer that has tcp, o2ib, gni and kfi nids"
- do_lnetctl peer add --prim_nid 7@gni \
- --nid [8-12]@gni,7.7.7.[1-4]@tcp,7.7.7.[5-9]@o2ib,[1-5]@kfi ||
+ echo "Delete peer with single nid (bxi3f)"
+ do_lnetctl peer add --prim_nid 7@bxi3f || error "Peer add failed $?"
+ compare_peer_del "7@bxi3f"
+
+ echo "Delete peer that has multiple nids (bxi3f)"
+ do_lnetctl peer add --prim_nid 7@bxi3f --nid [8-12]@bxi3f ||
+ error "Peer add failed $?"
+ compare_peer_del "7@bxi3f"
+
+ echo "Delete peer that has tcp, o2ib, gni, kfi and bxi3f nids"
+ local nid_expr="[8-12]@gni"
+ nid_expr+=",7.7.7.[1-4]@tcp"
+ nid_expr+=",7.7.7.[5-9]@o2ib"
+ nid_expr+=",[1-5]@kfi"
+ nid_expr+=",[3-7]@bxi3f"
+ do_lnetctl peer add --prim_nid 7@gni --nid "${nid_expr}" ||
error "Peer add failed $?"
compare_peer_del "7@gni"
local num="$1"
local net="$2"
- if [[ $net =~ gni* ]] || [[ $net =~ kfi* ]]; then
+ if [[ $net =~ (gni|kfi|bxi3f) ]]; then
echo "${num}@${net}"
else
echo "${num}.${num}.${num}.${num}@${net}"