aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/ehca/ehca_classes.h
diff options
context:
space:
mode:
authorJoachim Fenkes <fenkes@de.ibm.com>2007-11-02 15:41:49 +0200
committerRoland Dreier <rolandd@cisco.com>2007-11-13 15:27:00 -0800
commit51aaa54eb9e9f01878aa5d62277fd156e458dfe1 (patch)
tree135d4f2f8ae6543f034e9607ae58fa05b8944451 /drivers/infiniband/hw/ehca/ehca_classes.h
parent40ebb5615e2e069d3b8936b894ceff436c914003 (diff)
downloadkernel_samsung_tuna-51aaa54eb9e9f01878aa5d62277fd156e458dfe1.zip
kernel_samsung_tuna-51aaa54eb9e9f01878aa5d62277fd156e458dfe1.tar.gz
kernel_samsung_tuna-51aaa54eb9e9f01878aa5d62277fd156e458dfe1.tar.bz2
IB/ehca: Fix static rate calculation
The IPD (inter-packet delay) formula was a little off and assumed a fixed physical link rate; fix the formula and query the actual physical link rate, now that we can get it. Also, refactor the calculation into a common function ehca_calc_ipd() and use that instead of duplicating code. Signed-off-by: Joachim Fenkes <fenkes@de.ibm.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/ehca/ehca_classes.h')
-rw-r--r--drivers/infiniband/hw/ehca/ehca_classes.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/ehca/ehca_classes.h b/drivers/infiniband/hw/ehca/ehca_classes.h
index 2d660ae..87f12d4 100644
--- a/drivers/infiniband/hw/ehca/ehca_classes.h
+++ b/drivers/infiniband/hw/ehca/ehca_classes.h
@@ -95,7 +95,6 @@ struct ehca_sma_attr {
struct ehca_sport {
struct ib_cq *ibcq_aqp1;
struct ib_qp *ibqp_aqp1;
- enum ib_rate rate;
enum ib_port_state port_state;
struct ehca_sma_attr saved_attr;
};