Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-10391 lnet: hops -1 is valid
[fs/lustre-release.git]
/
lnet
/
lnet
/
api-ni.c
diff --git
a/lnet/lnet/api-ni.c
b/lnet/lnet/api-ni.c
index
4bc70c6
..
18159a3
100644
(file)
--- a/
lnet/lnet/api-ni.c
+++ b/
lnet/lnet/api-ni.c
@@
-7413,7
+7413,7
@@
static int lnet_route_cmd(struct sk_buff *skb, struct genl_info *info)
}
hops = nla_get_s64(route_prop);
- if (
hops < 1 || hops > 255
) {
+ if (
(hops < 1 || hops > 255) && hops != -1
) {
GENL_SET_ERR_MSG(info,
"invalid hop count must be between 1 and 255");
GOTO(report_err, rc = -EINVAL);