]> git.karo-electronics.de Git - mv-sheeva.git/commit
RDMA/nes: Report correct port state if interface is down
authorChien Tung <chien.tin.tung@intel.com>
Mon, 23 Aug 2010 14:32:36 +0000 (14:32 +0000)
committerRoland Dreier <rolandd@cisco.com>
Wed, 6 Oct 2010 19:59:56 +0000 (12:59 -0700)
commit293277215636e1586fcf6386b0b64457c6dfdb68
tree31837c6cec03965445c3ae78595b501f88bfef61
parent4d8d6389b26d8bee06cd706caf1fd3f1ccaa0205
RDMA/nes: Report correct port state if interface is down

With commit cd6860eb ("RDMA/nes: Fix hangs on ifdown") we no longer
remove nes interfaces on ifdown.  On nes_query_port(), add an
additional check of the netdev queue and report IB_PORT_DOWN if the
queue is not running.

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