-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Medium
-
None
-
Affects Version/s: None
-
None
-
3
-
9223372036854775807
A UDSP rule that pairs local NIs with a peer NI has no effect when the source is given as a bare network:
# lnetctl udsp add --src tcp --dst 192.168.100.201@tcp
# lnetctl udsp show
udsp:
- idx: 0
src: tcp
dst: 192.168.100.201@tcp
lnetctl accepts the rule and udsp show lists it, but no local NI is added to the preferred list of the peer NI. With debug=+net, the "add nid ... as preferred for peer ..." message from lnet_udsp_apply_ni_list() never appears, and every send logs lpni_is_preferred = 0. Sends to the peer keep spreading over all of its NIDs.
The same rule written as --src ...@tcp works.
Cause: lnet_udsp_apply_ni_list() matches each local NI with cfs_match_nid_net(), which returns no match when the address list is empty:
if (!addr || list_empty(addr) || !net_num_list) return 0;