aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/ipath/ipath_verbs.h
diff options
context:
space:
mode:
authorBryan O'Sullivan <bos@pathscale.com>2006-07-01 07:35:58 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-07-01 12:55:59 -0400
commitfe62546a6afa141c4ab9aef65f5978a1b36cb523 (patch)
tree44b317774fc0db45e90c394a1575bb19d08c00bb /drivers/infiniband/hw/ipath/ipath_verbs.h
parente8a88f09f21c55a7e7f570290ecde570e2c37771 (diff)
[PATCH] IB/ipath: enforce device resource limits
These limits are somewhat artificial in that we don't actually have any device limits. However, the verbs layer expects that such limits exist and are enforced, so we make up arbitrary (but sensible) limits. Signed-off-by: Robert Walsh <robert.walsh@qlogic.com> Signed-off-by: Bryan O'Sullivan <bryan.osullivan@qlogic.com> Cc: "Michael S. Tsirkin" <mst@mellanox.co.il> Cc: Roland Dreier <rolandd@cisco.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/infiniband/hw/ipath/ipath_verbs.h')
-rw-r--r--drivers/infiniband/hw/ipath/ipath_verbs.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_verbs.h b/drivers/infiniband/hw/ipath/ipath_verbs.h
index b461316ca223..c57058ff5763 100644
--- a/drivers/infiniband/hw/ipath/ipath_verbs.h
+++ b/drivers/infiniband/hw/ipath/ipath_verbs.h
@@ -149,6 +149,7 @@ struct ipath_mcast {
149 struct list_head qp_list; 149 struct list_head qp_list;
150 wait_queue_head_t wait; 150 wait_queue_head_t wait;
151 atomic_t refcount; 151 atomic_t refcount;
152 int n_attached;
152}; 153};
153 154
154/* Memory region */ 155/* Memory region */
@@ -432,6 +433,11 @@ struct ipath_ibdev {
432 __be64 sys_image_guid; /* in network order */ 433 __be64 sys_image_guid; /* in network order */
433 __be64 gid_prefix; /* in network order */ 434 __be64 gid_prefix; /* in network order */
434 __be64 mkey; 435 __be64 mkey;
436 u32 n_pds_allocated; /* number of PDs allocated for device */
437 u32 n_ahs_allocated; /* number of AHs allocated for device */
438 u32 n_cqs_allocated; /* number of CQs allocated for device */
439 u32 n_srqs_allocated; /* number of SRQs allocated for device */
440 u32 n_mcast_grps_allocated; /* number of mcast groups allocated */
435 u64 ipath_sword; /* total dwords sent (sample result) */ 441 u64 ipath_sword; /* total dwords sent (sample result) */
436 u64 ipath_rword; /* total dwords received (sample result) */ 442 u64 ipath_rword; /* total dwords received (sample result) */
437 u64 ipath_spkts; /* total packets sent (sample result) */ 443 u64 ipath_spkts; /* total packets sent (sample result) */
@@ -697,6 +703,24 @@ extern const int ib_ipath_state_ops[];
697 703
698extern unsigned int ib_ipath_lkey_table_size; 704extern unsigned int ib_ipath_lkey_table_size;
699 705
706extern unsigned int ib_ipath_max_cqes;
707
708extern unsigned int ib_ipath_max_cqs;
709
710extern unsigned int ib_ipath_max_qp_wrs;
711
712extern unsigned int ib_ipath_max_sges;
713
714extern unsigned int ib_ipath_max_mcast_grps;
715
716extern unsigned int ib_ipath_max_mcast_qp_attached;
717
718extern unsigned int ib_ipath_max_srqs;
719
720extern unsigned int ib_ipath_max_srq_sges;
721
722extern unsigned int ib_ipath_max_srq_wrs;
723
700extern const u32 ib_ipath_rnr_table[]; 724extern const u32 ib_ipath_rnr_table[];
701 725
702#endif /* IPATH_VERBS_H */ 726#endif /* IPATH_VERBS_H */