RDMA/providers: Fix return value from create_srq callbacks
authorKamal Heib <kamalheib1@gmail.com>
Mon, 30 Jul 2018 18:56:43 +0000 (21:56 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 31 Jul 2018 02:29:45 +0000 (20:29 -0600)
commit8380b74e7d606c4e053d7eea623362fcd8d432c2
treec9896c0fae8b835bede5eaaa55d3efccf81c5e56
parentf95ccffc715bf0fc6792fda52d24e0a92ad955e7
RDMA/providers: Fix return value from create_srq callbacks

The proper return code is "-EOPNOTSUPP" when the create_srq() callback
is not supported.

Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/bnxt_re/ib_verbs.c
drivers/infiniband/hw/mthca/mthca_provider.c
drivers/infiniband/sw/rdmavt/srq.c