summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/ehca/hipz_hw.h
diff options
context:
space:
mode:
authorHoang-Nam Nguyen <hnguyen@de.ibm.com>2006-11-05 21:42:56 +0100
committerRoland Dreier <rolandd@cisco.com>2006-11-13 08:46:28 -0800
commitc58121143f87930621c1a6fa9683b6862f2b42c9 (patch)
treead7523e1bbae9df75875c5a350834efea6008cdf /drivers/infiniband/hw/ehca/hipz_hw.h
parent7e28db5d8ff63b1cabc221c5cb84a5f45752f1c2 (diff)
IB/ehca: Use named constant for max mtu
Define and use a constant EHCA_MAX_MTU instead hardcoded value. Signed-off-by: Hoang-Nam Nguyen <hnguyen@de.ibm.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/ehca/hipz_hw.h')
-rw-r--r--drivers/infiniband/hw/ehca/hipz_hw.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/ehca/hipz_hw.h b/drivers/infiniband/hw/ehca/hipz_hw.h
index 3fc92b031c5..fad91368dc5 100644
--- a/drivers/infiniband/hw/ehca/hipz_hw.h
+++ b/drivers/infiniband/hw/ehca/hipz_hw.h
@@ -45,6 +45,8 @@
#include "ehca_tools.h"
+#define EHCA_MAX_MTU 4
+
/* QP Table Entry Memory Map */
struct hipz_qptemm {
u64 qpx_hcr;