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-12236 lnet: support non-default network namespace
[fs/lustre-release.git]
/
lnet
/
klnds
/
o2iblnd
/
o2iblnd.h
diff --git
a/lnet/klnds/o2iblnd/o2iblnd.h
b/lnet/klnds/o2iblnd/o2iblnd.h
index
b0ca501
..
7a20963
100644
(file)
--- a/
lnet/klnds/o2iblnd/o2iblnd.h
+++ b/
lnet/klnds/o2iblnd/o2iblnd.h
@@
-120,15
+120,16
@@
extern struct kib_tunables kiblnd_tunables;
t->lnd_peercredits_hiw)
#ifdef HAVE_RDMA_CREATE_ID_5ARG
t->lnd_peercredits_hiw)
#ifdef HAVE_RDMA_CREATE_ID_5ARG
-# define kiblnd_rdma_create_id(
cb, dev, ps, qpt) rdma_create_id(current->nsproxy->net_ns
, \
-
cb, dev
, \
-
ps,
qpt)
+# define kiblnd_rdma_create_id(
ns, cb, dev, ps, qpt) rdma_create_id(ns, cb
, \
+
dev, ps
, \
+
qpt)
#else
# ifdef HAVE_RDMA_CREATE_ID_4ARG
#else
# ifdef HAVE_RDMA_CREATE_ID_4ARG
-# define kiblnd_rdma_create_id(cb, dev, ps, qpt) rdma_create_id(cb, dev, \
- ps, qpt)
+# define kiblnd_rdma_create_id(
ns,
cb, dev, ps, qpt) rdma_create_id(cb, dev, \
+
ps, qpt)
# else
# else
-# define kiblnd_rdma_create_id(cb, dev, ps, qpt) rdma_create_id(cb, dev, ps)
+# define kiblnd_rdma_create_id(ns, cb, dev, ps, qpt) rdma_create_id(cb, dev, \
+ ps)
# endif
#endif
# endif
#endif
@@
-1180,7
+1181,7
@@
int kiblnd_cm_callback(struct rdma_cm_id *cmid,
struct rdma_cm_event *event);
int kiblnd_translate_mtu(int value);
struct rdma_cm_event *event);
int kiblnd_translate_mtu(int value);
-int kiblnd_dev_failover(struct kib_dev *dev);
+int kiblnd_dev_failover(struct kib_dev *dev
, struct net *ns
);
int kiblnd_create_peer(struct lnet_ni *ni, struct kib_peer_ni **peerp,
lnet_nid_t nid);
void kiblnd_destroy_peer(struct kib_peer_ni *peer);
int kiblnd_create_peer(struct lnet_ni *ni, struct kib_peer_ni **peerp,
lnet_nid_t nid);
void kiblnd_destroy_peer(struct kib_peer_ni *peer);