RDMA: Fix return value check for ib_get_eth_speed()
authorSelvin Xavier <selvin.xavier@broadcom.com>
Thu, 17 Aug 2017 14:58:07 +0000 (07:58 -0700)
committerDoug Ledford <dledford@redhat.com>
Tue, 22 Aug 2017 20:23:25 +0000 (16:23 -0400)
commit7be05753ccc27ce056d45f06a50d150927a88ed7
treedb38f7497eb2a7189106e33fcecaa918e34491e3
parent0c98568c1f00eed16c4b452557ec40f5ac64784d
RDMA: Fix return value check for ib_get_eth_speed()

ib_get_eth_speed() return 0 on success. Fixing the condition checking
and prevent reporting failure for query_port verb.

Fixes: d41861942fc5 ("Add generic function to extract IB speed from netdev")
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/bnxt_re/ib_verbs.c
drivers/infiniband/hw/usnic/usnic_ib_verbs.c