IB: simplify static rate encoding
authorJack Morgenstein <jackm@mellanox.co.il>
Mon, 10 Apr 2006 16:43:47 +0000 (09:43 -0700)
committerRoland Dreier <rolandd@cisco.com>
Mon, 10 Apr 2006 16:43:47 +0000 (09:43 -0700)
commitbf6a9e31cfa768ce0a8e18474b3ca808641d9243
treea7ebdb5a10e528959ca1497e222975d3087a5eef
parentd2e0655ede1d91c3a586455d03a4a2d57e659830
IB: simplify static rate encoding

Push translation of static rate to HCA format into low-level drivers,
where it belongs.  For static rate encoding, use encoding of rate
field from IB standard PathRecord, with addition of value 0, for
backwards compatibility with current usage.  The changes are:

 - Add enum ib_rate to midlayer includes.
 - Get rid of static rate translation in IPoIB; just use static rate
   directly from Path and MulticastGroup records.
 - Update mthca driver to translate absolute static rate into the
   format used by hardware.  This also fixes mthca's static rate
   handling for HCAs that are capable of 4X DDR.

Signed-off-by: Jack Morgenstein <jackm@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
14 files changed:
drivers/infiniband/core/verbs.c
drivers/infiniband/hw/mthca/mthca_av.c
drivers/infiniband/hw/mthca/mthca_cmd.c
drivers/infiniband/hw/mthca/mthca_cmd.h
drivers/infiniband/hw/mthca/mthca_dev.h
drivers/infiniband/hw/mthca/mthca_mad.c
drivers/infiniband/hw/mthca/mthca_main.c
drivers/infiniband/hw/mthca/mthca_provider.h
drivers/infiniband/hw/mthca/mthca_qp.c
drivers/infiniband/ulp/ipoib/ipoib_fs.c
drivers/infiniband/ulp/ipoib/ipoib_main.c
drivers/infiniband/ulp/ipoib/ipoib_multicast.c
include/rdma/ib_sa.h
include/rdma/ib_verbs.h