]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
IB/ipath: Improve UD loopback performance by allocating temp array only once
authorRalph Campbell <ralph.campbell@qlogic.com>
Tue, 2 Dec 2008 04:59:08 +0000 (20:59 -0800)
committerRoland Dreier <rolandd@cisco.com>
Tue, 2 Dec 2008 04:59:08 +0000 (20:59 -0800)
commit7c37d74474c8ee8ddcd5a2d2a9571d4a1290c844
treed44fb97adfa0b036d0a0db193b3273eff5616246
parent64f22fa17c1a531e682ebc882566856ea5718495
IB/ipath: Improve UD loopback performance by allocating temp array only once

Receive work queue entries are checked for L_Key validity, and
pointers to the memory region structure are saved in an allocated
structure.  For UD loopback packets, this structure is allocated and
freed for each packet.  This patch changes that to allocate/free
during QP creation and destruction.

Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_qp.c
drivers/infiniband/hw/ipath/ipath_ud.c
drivers/infiniband/hw/ipath/ipath_verbs.h