diff options
author | Dave Olson <dave.olson@qlogic.com> | 2007-12-06 03:28:02 -0500 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-01-25 17:15:36 -0500 |
commit | 755807a296f77ca7c31dc000afdfe1e5172bbf72 (patch) | |
tree | 0df244c6d024ec0b7085b2d405b3836f2809b4d6 /drivers/infiniband/hw/ipath/ipath_kernel.h | |
parent | d8274869d742c3d8082e1428de47e54d12104928 (diff) |
IB/ipath: Changes for fields moving from devdata to portdata
This patch moves some arrays that were defined per-device to be
variables defined in the per context data structure, thus avoiding extra
kzalloc() calls.
Signed-off-by: Dave Olson <dave.olson@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/ipath/ipath_kernel.h')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_kernel.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_kernel.h b/drivers/infiniband/hw/ipath/ipath_kernel.h index 57e21bbd9ffa..7bb0d08820d8 100644 --- a/drivers/infiniband/hw/ipath/ipath_kernel.h +++ b/drivers/infiniband/hw/ipath/ipath_kernel.h | |||
@@ -141,6 +141,11 @@ struct ipath_portdata { | |||
141 | u32 port_pionowait; | 141 | u32 port_pionowait; |
142 | /* total number of rcvhdrqfull errors */ | 142 | /* total number of rcvhdrqfull errors */ |
143 | u32 port_hdrqfull; | 143 | u32 port_hdrqfull; |
144 | /* | ||
145 | * Used to suppress multiple instances of same | ||
146 | * port staying stuck at same point. | ||
147 | */ | ||
148 | u32 port_lastrcvhdrqtail; | ||
144 | /* saved total number of rcvhdrqfull errors for poll edge trigger */ | 149 | /* saved total number of rcvhdrqfull errors for poll edge trigger */ |
145 | u32 port_hdrqfull_poll; | 150 | u32 port_hdrqfull_poll; |
146 | /* total number of polled urgent packets */ | 151 | /* total number of polled urgent packets */ |
@@ -149,6 +154,7 @@ struct ipath_portdata { | |||
149 | u32 port_urgent_poll; | 154 | u32 port_urgent_poll; |
150 | /* pid of process using this port */ | 155 | /* pid of process using this port */ |
151 | pid_t port_pid; | 156 | pid_t port_pid; |
157 | pid_t port_subpid[INFINIPATH_MAX_SUBPORT]; | ||
152 | /* same size as task_struct .comm[] */ | 158 | /* same size as task_struct .comm[] */ |
153 | char port_comm[16]; | 159 | char port_comm[16]; |
154 | /* pkeys set by this use of this port */ | 160 | /* pkeys set by this use of this port */ |
@@ -320,16 +326,6 @@ struct ipath_devdata { | |||
320 | u32 ipath_p0_hdrqfull; | 326 | u32 ipath_p0_hdrqfull; |
321 | 327 | ||
322 | /* | 328 | /* |
323 | * (*cfgports) used to suppress multiple instances of same | ||
324 | * port staying stuck at same point | ||
325 | */ | ||
326 | u32 *ipath_lastrcvhdrqtails; | ||
327 | /* | ||
328 | * (*cfgports) used to suppress multiple instances of same | ||
329 | * port staying stuck at same point | ||
330 | */ | ||
331 | u32 *ipath_lastegrheads; | ||
332 | /* | ||
333 | * index of last piobuffer we used. Speeds up searching, by | 329 | * index of last piobuffer we used. Speeds up searching, by |
334 | * starting at this point. Doesn't matter if multiple cpu's use and | 330 | * starting at this point. Doesn't matter if multiple cpu's use and |
335 | * update, last updater is only write that matters. Whenever it | 331 | * update, last updater is only write that matters. Whenever it |