]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd3e22d9e6678069bd131bc6664683058d6b1643a
treead05354cbbcd7a21af50adb5da8db63c68eed493
parent647dbe7c39ca8bbfe5b495730597df2a2c236679
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