class_match_nid now takes struct lnet_nid rather than lnet_nid_t.
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I09c178a6671ee3e603d261579537ff10881d8124
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50090
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: jsimmons <jsimmons@infradead.org>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
int class_parse_nid(char *buf, struct lnet_nid *nid, char **endh);
int class_parse_nid_quiet(char *buf, struct lnet_nid *nid, char **endh);
int class_parse_net(char *buf, u32 *net, char **endh);
-int class_match_nid(char *buf, char *key, lnet_nid_t nid);
+int class_match_nid(char *buf, char *key, struct lnet_nid *nid);
int class_match_net(char *buf, char *key, u32 net);
struct obd_device *class_incref(struct obd_device *obd,
* 0 param contains key and not match
* -1 param does not contain key
*/
-int class_match_nid(char *buf, char *key, lnet_nid_t nid)
+int class_match_nid(char *buf, char *key, struct lnet_nid *nid)
{
- lnet_nid_t tmp;
+ struct lnet_nid tmp;
int rc = -1;
while (class_find_param(buf, key, &buf) == 0) {
* please restrict to the NIDs pertaining to
* the specified NIDs
*/
- while (class_parse_nid4(buf, &tmp, &buf) == 0) {
- if (tmp == nid)
+ while (class_parse_nid(buf, &tmp, &buf) == 0) {
+ if (nid_same(&tmp, nid))
return 1;
}
rc = 0;
*/
if ((lsi->lsi_lmd->lmd_flags & LMD_FLG_NO_PRIMNODE) != 0 &&
class_match_nid(lsi->lsi_lmd->lmd_params,
- PARAM_FAILNODE,
- lnet_nid_to_nid4(&id.nid)) < 1)
+ PARAM_FAILNODE, &id.nid) < 1)
continue;
if (!class_find_param(lsi->lsi_lmd->lmd_params,