aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/qib/qib_verbs.h
diff options
context:
space:
mode:
authorMike Marciniszyn <mike.marciniszyn@qlogic.com>2011-09-23 13:16:34 -0400
committerRoland Dreier <roland@purestorage.com>2011-10-21 09:38:50 -0700
commitcc6ea1385b43487f6ef03bdc91416c8366d28311 (patch)
tree013266a6ebb9c9e810761677614bddd42a45932b /drivers/infiniband/hw/qib/qib_verbs.h
parentIB/qib: Optimize RC/UC code by IB operation (diff)
downloadlinux-dev-cc6ea1385b43487f6ef03bdc91416c8366d28311.tar.xz
linux-dev-cc6ea1385b43487f6ef03bdc91416c8366d28311.zip
IB/qib: Decode path MTU optimization
Store both the encoded and decoded MTU in the QP structure as a minor optimization for UC/RC receive routines. Signed-off-by: Mike Marciniszyn <mike.marciniszyn@qlogic.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/qib/qib_verbs.h')
-rw-r--r--drivers/infiniband/hw/qib/qib_verbs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/qib/qib_verbs.h b/drivers/infiniband/hw/qib/qib_verbs.h
index 95e5b47223b3..ec3711f743c5 100644
--- a/drivers/infiniband/hw/qib/qib_verbs.h
+++ b/drivers/infiniband/hw/qib/qib_verbs.h
@@ -485,6 +485,7 @@ struct qib_qp {
u8 alt_timeout; /* Alternate path timeout for this QP */
u8 port_num;
enum ib_mtu path_mtu;
+ u32 pmtu; /* decoded from path_mtu */
u32 remote_qpn;
u32 qkey; /* QKEY for this QP (for UD or RD) */
u32 s_size; /* send work queue size */