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-6142 lnet: use BIT() macro where appropriate
[fs/lustre-release.git]
/
lnet
/
klnds
/
socklnd
/
socklnd.h
diff --git
a/lnet/klnds/socklnd/socklnd.h
b/lnet/klnds/socklnd/socklnd.h
index
c12d86c
..
7e9b38d
100644
(file)
--- a/
lnet/klnds/socklnd/socklnd.h
+++ b/
lnet/klnds/socklnd/socklnd.h
@@
-469,12
+469,12
@@
static inline __u32 ksocknal_csum(__u32 crc, unsigned char const *p, size_t len)
static inline int
ksocknal_route_mask(void)
{
static inline int
ksocknal_route_mask(void)
{
-
if (!*ksocknal_tunables.ksnd_typed_conns)
-
return (1 <<
SOCKLND_CONN_ANY);
+ if (!*ksocknal_tunables.ksnd_typed_conns)
+
return BIT(
SOCKLND_CONN_ANY);
-
return ((1 <<
SOCKLND_CONN_CONTROL) |
-
(1 <<
SOCKLND_CONN_BULK_IN) |
-
(1 <<
SOCKLND_CONN_BULK_OUT));
+
return (BIT(
SOCKLND_CONN_CONTROL) |
+
BIT(
SOCKLND_CONN_BULK_IN) |
+
BIT(
SOCKLND_CONN_BULK_OUT));
}
static inline void
}
static inline void