IB/core: Validate route when we init ah
authorMatan Barak <matanb@mellanox.com>
Wed, 23 Dec 2015 12:56:53 +0000 (14:56 +0200)
committerDoug Ledford <dledford@redhat.com>
Wed, 23 Dec 2015 15:35:12 +0000 (10:35 -0500)
commit200298326b276d8dbeff204f7d407432100d9963
tree285f2b2fbcc1c6672ce95f7d24009b328078fba4
parent6020d7e5004cc8591d61d449e9285a6f08279541
IB/core: Validate route when we init ah

In order to make sure API users don't try to use SGIDs which don't
conform to the routing table, validate the route before searching
the RoCE GID table.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/addr.c
drivers/infiniband/core/cm.c
drivers/infiniband/core/cma.c
drivers/infiniband/core/sa_query.c
drivers/infiniband/core/verbs.c
drivers/infiniband/hw/ocrdma/ocrdma_ah.c
include/rdma/ib_addr.h