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-17700 lnet: properly calculate ping buffer size
[fs/lustre-release.git]
/
lnet
/
include
/
lnet
/
lib-types.h
diff --git
a/lnet/include/lnet/lib-types.h
b/lnet/include/lnet/lib-types.h
index
a02eab2
..
fadaead
100644
(file)
--- a/
lnet/include/lnet/lib-types.h
+++ b/
lnet/include/lnet/lib-types.h
@@
-1225,6
+1225,10
@@
lnet_ping_sts_size(const struct lnet_nid *nid)
{
int size;
+ /* for deciding the size of the ping buffer */
+ if (unlikely(LNET_NID_IS_ANY(nid)))
+ return sizeof(struct lnet_ni_large_status);
+
if (nid_is_nid4(nid))
return sizeof(struct lnet_ni_status);