aboutsummaryrefslogtreecommitdiffstats
path: root/include/rdma/ib_verbs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/rdma/ib_verbs.h')
-rw-r--r--include/rdma/ib_verbs.h23
1 files changed, 19 insertions, 4 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h
index de8724e5a727..4312899231ca 100644
--- a/include/rdma/ib_verbs.h
+++ b/include/rdma/ib_verbs.h
@@ -2221,8 +2221,6 @@ struct ib_cache {
2221 struct ib_event_handler event_handler; 2221 struct ib_event_handler event_handler;
2222}; 2222};
2223 2223
2224struct iw_cm_verbs;
2225
2226struct ib_port_immutable { 2224struct ib_port_immutable {
2227 int pkey_tbl_len; 2225 int pkey_tbl_len;
2228 int gid_tbl_len; 2226 int gid_tbl_len;
@@ -2304,6 +2302,8 @@ struct ib_counters_read_attr {
2304}; 2302};
2305 2303
2306struct uverbs_attr_bundle; 2304struct uverbs_attr_bundle;
2305struct iw_cm_id;
2306struct iw_cm_conn_param;
2307 2307
2308#define INIT_RDMA_OBJ_SIZE(ib_struct, drv_struct, member) \ 2308#define INIT_RDMA_OBJ_SIZE(ib_struct, drv_struct, member) \
2309 .size_##ib_struct = \ 2309 .size_##ib_struct = \
@@ -2581,6 +2581,19 @@ struct ib_device_ops {
2581 */ 2581 */
2582 void (*dealloc_driver)(struct ib_device *dev); 2582 void (*dealloc_driver)(struct ib_device *dev);
2583 2583
2584 /* iWarp CM callbacks */
2585 void (*iw_add_ref)(struct ib_qp *qp);
2586 void (*iw_rem_ref)(struct ib_qp *qp);
2587 struct ib_qp *(*iw_get_qp)(struct ib_device *device, int qpn);
2588 int (*iw_connect)(struct iw_cm_id *cm_id,
2589 struct iw_cm_conn_param *conn_param);
2590 int (*iw_accept)(struct iw_cm_id *cm_id,
2591 struct iw_cm_conn_param *conn_param);
2592 int (*iw_reject)(struct iw_cm_id *cm_id, const void *pdata,
2593 u8 pdata_len);
2594 int (*iw_create_listen)(struct iw_cm_id *cm_id, int backlog);
2595 int (*iw_destroy_listen)(struct iw_cm_id *cm_id);
2596
2584 DECLARE_RDMA_OBJ_SIZE(ib_ah); 2597 DECLARE_RDMA_OBJ_SIZE(ib_ah);
2585 DECLARE_RDMA_OBJ_SIZE(ib_pd); 2598 DECLARE_RDMA_OBJ_SIZE(ib_pd);
2586 DECLARE_RDMA_OBJ_SIZE(ib_srq); 2599 DECLARE_RDMA_OBJ_SIZE(ib_srq);
@@ -2621,8 +2634,6 @@ struct ib_device {
2621 2634
2622 int num_comp_vectors; 2635 int num_comp_vectors;
2623 2636
2624 struct iw_cm_verbs *iwcm;
2625
2626 struct module *owner; 2637 struct module *owner;
2627 union { 2638 union {
2628 struct device dev; 2639 struct device dev;
@@ -2675,6 +2686,10 @@ struct ib_device {
2675 struct mutex compat_devs_mutex; 2686 struct mutex compat_devs_mutex;
2676 /* Maintains compat devices for each net namespace */ 2687 /* Maintains compat devices for each net namespace */
2677 struct xarray compat_devs; 2688 struct xarray compat_devs;
2689
2690 /* Used by iWarp CM */
2691 char iw_ifname[IFNAMSIZ];
2692 u32 iw_driver_flags;
2678}; 2693};
2679 2694
2680struct ib_client { 2695struct ib_client {