diff options
author | Or Gerlitz <ogerlitz@mellanox.com> | 2012-02-28 11:49:50 -0500 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2012-03-05 12:25:16 -0500 |
commit | 2e96691c31ecf749f48aa94ea837b95dd656f5c2 (patch) | |
tree | 5e2bfaf522d66bc23c1ec0490fb3364c09aad4f2 /drivers/infiniband/hw/nes/nes_verbs.c | |
parent | e9319b0cb00d4d68792fdae37e81e316cb632cb9 (diff) |
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>
Diffstat (limited to 'drivers/infiniband/hw/nes/nes_verbs.c')
-rw-r--r-- | drivers/infiniband/hw/nes/nes_verbs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/nes/nes_verbs.c b/drivers/infiniband/hw/nes/nes_verbs.c index 0927b5cc65d3..8b8812de4b5c 100644 --- a/drivers/infiniband/hw/nes/nes_verbs.c +++ b/drivers/infiniband/hw/nes/nes_verbs.c | |||
@@ -597,7 +597,7 @@ static int nes_query_port(struct ib_device *ibdev, u8 port, struct ib_port_attr | |||
597 | props->pkey_tbl_len = 1; | 597 | props->pkey_tbl_len = 1; |
598 | props->qkey_viol_cntr = 0; | 598 | props->qkey_viol_cntr = 0; |
599 | props->active_width = IB_WIDTH_4X; | 599 | props->active_width = IB_WIDTH_4X; |
600 | props->active_speed = 1; | 600 | props->active_speed = IB_SPEED_SDR; |
601 | props->max_msg_sz = 0x80000000; | 601 | props->max_msg_sz = 0x80000000; |
602 | 602 | ||
603 | return 0; | 603 | return 0; |