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-14008 o2iblnd: avoid memory copy for short msg
[fs/lustre-release.git]
/
lnet
/
klnds
/
o2iblnd
/
o2iblnd.c
diff --git
a/lnet/klnds/o2iblnd/o2iblnd.c
b/lnet/klnds/o2iblnd/o2iblnd.c
index
815a13d
..
2b1272a
100644
(file)
--- a/
lnet/klnds/o2iblnd/o2iblnd.c
+++ b/
lnet/klnds/o2iblnd/o2iblnd.c
@@
-700,10
+700,9
@@
static unsigned int kiblnd_send_wrs(struct kib_conn *conn)
*/
int ret;
int multiplier = 1 + conn->ibc_max_frags;
*/
int ret;
int multiplier = 1 + conn->ibc_max_frags;
- enum kib_dev_caps dev_caps = conn->ibc_hdev->ibh_dev->ibd_dev_caps;
/* FastReg needs two extra WRs for map and invalidate */
/* FastReg needs two extra WRs for map and invalidate */
- if (
dev_caps & IBLND_DEV_CAPS_FASTREG_ENABLED
)
+ if (
IS_FAST_REG_DEV(conn->ibc_hdev->ibh_dev)
)
multiplier += 2;
/* account for a maximum of ibc_queue_depth in-flight transfers */
multiplier += 2;
/* account for a maximum of ibc_queue_depth in-flight transfers */