[LU-5849] DLC: parse networks function needs to return the number of parsed networks Created: 03/Nov/14  Updated: 09/Jan/15  Resolved: 09/Jan/15

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.7.0
Fix Version/s: Lustre 2.7.0

Type: Bug Priority: Critical
Reporter: Amir Shehata (Inactive) Assignee: Amir Shehata (Inactive)
Resolution: Fixed Votes: 0
Labels: MB

Issue Links:
Related
is related to LU-5734 LNet dynamic control: lnet_dyn_add_ni... Resolved
is related to LU-2456 Dynamic LNet Config Main Development ... Resolved
Severity: 3
Rank (Obsolete): 16379

 Description   

lnet_dyn_add_ni() requires lnet_parse_networks() to return the number of nets (outside of LO) that were parsed in order to do proper sanity checks. Currently it returns < 0 for failure and 0 for failure.



 Comments   
Comment by Amir Shehata (Inactive) [ 03/Nov/14 ]

http://review.whamcloud.com/#/c/12537/

Comment by Isaac Huang (Inactive) [ 03/Nov/14 ]

I think it's good chance now to clean up lnet_parse_networks(). It used to add a LO by itself only because it made sense to its only caller LNetNIInit(). Now the added LO can actually cause trouble to the new caller lnet_dyn_add_ni(), which doesn't want that LO at all.

I think:
1. lnet_parse_networks() should NOT add LO
2. LNetNIInit() adds LO to the parsed NI list if lnet_parse_networks() returned OK.
3. lnet_dyn_add_ni() now doesn't need to do anything special about the extra LO.

Comment by James A Simmons [ 07/Jan/15 ]

Has this been resolved due to the landing of LU-5374?

Generated at Sat Feb 10 01:55:03 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.