IB: Use central enum for speed instead of hard-coded values
authorOr Gerlitz <ogerlitz@mellanox.com>
Tue, 28 Feb 2012 16:49:50 +0000 (18:49 +0200)
committerRoland Dreier <roland@purestorage.com>
Mon, 5 Mar 2012 17:25:16 +0000 (09:25 -0800)
commit2e96691c31ecf749f48aa94ea837b95dd656f5c2
tree5e2bfaf522d66bc23c1ec0490fb3364c09aad4f2
parente9319b0cb00d4d68792fdae37e81e316cb632cb9
IB: Use central enum for speed instead of hard-coded values

The kernel IB stack uses one enumeration for IB speed, which wasn't
explicitly specified in the verbs header file.  Add that enum, and use
it all over the code.

The IB speed/width notation is also used by iWARP and IBoE HW drivers,
which use the convention of rate = speed * width to advertise their
port link rate.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/core/sysfs.c
drivers/infiniband/hw/amso1100/c2_provider.c
drivers/infiniband/hw/cxgb3/iwch_provider.c
drivers/infiniband/hw/cxgb4/provider.c
drivers/infiniband/hw/ehca/ehca_hca.c
drivers/infiniband/hw/mlx4/main.c
drivers/infiniband/hw/nes/nes_verbs.c
include/rdma/ib_verbs.h