f9dc362b8e
Update to drbd9. OBS-URL: https://build.opensuse.org/request/show/389406 OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/drbd?expand=0&rev=31
36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
diff -Naur drbd-9.0.1+git.86e4439.orig/drbd/drbd-kernel-compat/drbd_wrappers.h drbd-9.0.1+git.86e4439/drbd/drbd-kernel-compat/drbd_wrappers.h
|
|
--- drbd-9.0.1+git.86e4439.orig/drbd/drbd-kernel-compat/drbd_wrappers.h 2016-04-08 21:56:02.872683041 +0800
|
|
+++ drbd-9.0.1+git.86e4439/drbd/drbd-kernel-compat/drbd_wrappers.h 2016-04-08 22:03:05.732665258 +0800
|
|
@@ -1529,31 +1529,6 @@
|
|
}
|
|
#endif
|
|
|
|
-#ifndef COMPAT_HAVE_IB_CQ_INIT_ATTR
|
|
-#include <rdma/ib_verbs.h>
|
|
-
|
|
-struct ib_cq_init_attr {
|
|
- unsigned int cqe;
|
|
- int comp_vector;
|
|
- u32 flags;
|
|
-};
|
|
-
|
|
-static inline struct ib_cq *
|
|
-drbd_ib_create_cq(struct ib_device *device,
|
|
- ib_comp_handler comp_handler,
|
|
- void (*event_handler)(struct ib_event *, void *),
|
|
- void *cq_context,
|
|
- const struct ib_cq_init_attr *cq_attr)
|
|
-{
|
|
- return ib_create_cq(device, comp_handler, event_handler, cq_context,
|
|
- cq_attr->cqe, cq_attr->comp_vector);
|
|
-}
|
|
-
|
|
-#define ib_create_cq(DEV, COMP_H, EVENT_H, CTX, ATTR) \
|
|
- drbd_ib_create_cq(DEV, COMP_H, EVENT_H, CTX, ATTR)
|
|
-#endif
|
|
-
|
|
-
|
|
#ifndef COMPAT_RDMA_CREATE_ID_HAS_NET_NS
|
|
/* Since linux v4.4 it has a network namespace as first argument */
|
|
#define rdma_create_id(NS, H, C, P, T) rdma_create_id(H, C, P, T)
|