aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/ipath/ipath_common.h
diff options
context:
space:
mode:
authorBryan O'Sullivan <bos@pathscale.com>2006-07-01 07:36:11 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-07-01 12:56:01 -0400
commit1eb68b990aab4c007e520acae39c74d8116693bc (patch)
tree9e11f750a252879c22636048f68503b622cf2fbc /drivers/infiniband/hw/ipath/ipath_common.h
parent12eef41f8b72b6e11e36b48c78849c17e49781c8 (diff)
[PATCH] IB/ipath: purge sps_lid and sps_mlid arrays
The two arrays only had space for 4 units. Also changed from ipath_set_sps_lid() to ipath_set_lid(); the sps was leftover. Signed-off-by: Dave Olson <dave.olson@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_common.h')
-rw-r--r--drivers/infiniband/hw/ipath/ipath_common.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_common.h b/drivers/infiniband/hw/ipath/ipath_common.h
index 7a8a086a579a..106f8f49cbb1 100644
--- a/drivers/infiniband/hw/ipath/ipath_common.h
+++ b/drivers/infiniband/hw/ipath/ipath_common.h
@@ -122,8 +122,7 @@ struct infinipath_stats {
122 __u64 sps_ports; 122 __u64 sps_ports;
123 /* list of pkeys (other than default) accepted (0 means not set) */ 123 /* list of pkeys (other than default) accepted (0 means not set) */
124 __u16 sps_pkeys[4]; 124 __u16 sps_pkeys[4];
125 /* lids for up to 4 infinipaths, indexed by infinipath # */ 125 __u16 sps_unused16[4]; /* available; maintaining compatible layout */
126 __u16 sps_lid[4];
127 /* number of user ports per chip (not IB ports) */ 126 /* number of user ports per chip (not IB ports) */
128 __u32 sps_nports; 127 __u32 sps_nports;
129 /* not our interrupt, or already handled */ 128 /* not our interrupt, or already handled */
@@ -141,10 +140,8 @@ struct infinipath_stats {
141 * packets if ipath not configured, sma/mad, etc.) 140 * packets if ipath not configured, sma/mad, etc.)
142 */ 141 */
143 __u64 sps_krdrops; 142 __u64 sps_krdrops;
144 /* mlids for up to 4 infinipaths, indexed by infinipath # */
145 __u16 sps_mlid[4];
146 /* pad for future growth */ 143 /* pad for future growth */
147 __u64 __sps_pad[45]; 144 __u64 __sps_pad[46];
148}; 145};
149 146
150/* 147/*