RDMA/nes: Map MTU to IB_MTU_* and correctly report link state
authorChien Tung <chien.tin.tung@intel.com>
Sun, 6 Sep 2009 03:36:39 +0000 (20:36 -0700)
committerRoland Dreier <rolandd@cisco.com>
Sun, 6 Sep 2009 03:36:39 +0000 (20:36 -0700)
commitcd1d3f7abec19719949ec5b5189a821cd52af868
treead05354cbbcd7a21af50adb5da8db63c68eed493
parentb29a4fc49b028dbdab53b679826ed1eb658dde59
RDMA/nes: Map MTU to IB_MTU_* and correctly report link state

Old query_port code reports static MTU and link state values.
Instead, map actual MTU to next largest IB_MTU_* constant and
correctly report link state.

Cc: Steve Wise <swise@opengridcomputing.com>
Reported-by: Jeff Squyres <jsquyres@cisco.com>
Signed-off-by: Chien Tung <chien.tin.tung@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/nes/nes_verbs.c