Amrani, Ram
a121135973
qedr: return error if destroy CQ failed
...
Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com >
Reviewed-by: Michal Kalderon <Michal.Kalderon@cavium.com >
Signed-off-by: Doug Ledford <dledford@redhat.com >
2016-12-22 11:36:12 -05:00
Amrani, Ram
c7eb3bced7
qedr: configure the number of CQEs on CQ creation
...
Configure ibcq->cqe when a CQ is created.
Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com >
Reviewed-by: Michal Kalderon <Michal.Kalderon@cavium.com >
Signed-off-by: Doug Ledford <dledford@redhat.com >
2016-12-22 11:36:12 -05:00
Doug Ledford
9032ad78bb
Merge branches 'misc', 'qedr', 'reject-helpers', 'rxe' and 'srp' into merge-test
2016-12-14 14:44:47 -05:00
Wei Yongjun
aecb66b2b0
qedr: remove pointless NULL check in qedr_post_send()
...
Remove pointless NULL check for 'wr' in qedr_post_send().
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com >
Acked-by: Ram Amrani <Ram.Amrani@cavium.com >
Signed-off-by: Doug Ledford <dledford@redhat.com >
2016-12-14 11:18:17 -05:00
Wei Yongjun
aafec388a1
qedr: Use list_move_tail instead of list_del/list_add_tail
...
Using list_move_tail() instead of list_del() + list_add_tail().
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com >
Reviewed-by: Leon Romanovsky <leonro@mellanox.com >
Acked-by: Ram Amrani <Ram.Amrani@cavium.com >
Signed-off-by: Doug Ledford <dledford@redhat.com >
2016-12-14 11:18:17 -05:00
Wei Yongjun
181d80151f
qedr: Fix possible memory leak in qedr_create_qp()
...
'qp' is malloced in qedr_create_qp() and should be freed before leaving
from the error handling cases, otherwise it will cause memory leak.
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com >
Acked-by: Ram Amrani <Ram.Amrani@cavium.com >
Signed-off-by: Doug Ledford <dledford@redhat.com >
2016-12-14 11:18:17 -05:00
Colin Ian King
ea7ef2accd
qedr: return -EINVAL if pd is null and avoid null ptr dereference
...
Currently, if pd is null then we hit a null pointer derference
on accessing pd->pd_id. Instead of just printing an error message
we should also return -EINVAL immediately.
Signed-off-by: Colin Ian King <colin.king@canonical.com >
Signed-off-by: Doug Ledford <dledford@redhat.com >
2016-12-14 11:18:17 -05:00
Moni Shoua
477864c8fc
IB/core: Let create_ah return extended response to user
...
Add struct ib_udata to the signature of create_ah callback that is
implemented by IB device drivers. This allows HW drivers to return extra
data to the userspace library.
This patch prepares the ground for mlx5 driver to resolve destination
mac address for a given GID and return it to userspace.
This patch was previously submitted by Knut Omang as a part of the
patch set to support Oracle's Infiniband HCA (SIF).
Signed-off-by: Knut Omang <knut.omang@oracle.com >
Signed-off-by: Moni Shoua <monis@mellanox.com >
Reviewed-by: Yishai Hadas <yishaih@mellanox.com >
Signed-off-by: Leon Romanovsky <leon@kernel.org >
Signed-off-by: Doug Ledford <dledford@redhat.com >
2016-12-13 13:38:27 -05:00
Ram Amrani
993d1b5261
qedr: Add events support and register IB device
...
Add error handling support.
Register ib device with ib stack.
Signed-off-by: Rajesh Borundia <rajesh.borundia@cavium.com >
Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com >
Signed-off-by: Doug Ledford <dledford@redhat.com >
2016-10-14 15:00:10 -04:00
Ram Amrani
0488677930
qedr: Add GSI support
...
Add support for GSI over light L2.
Signed-off-by: Rajesh Borundia <rajesh.borundia@cavium.com >
Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com >
Signed-off-by: Doug Ledford <dledford@redhat.com >
2016-10-14 15:00:10 -04:00
Ram Amrani
afa0e13be7
qedr: Add support for data path
...
Implement fastpath verbs like ib_send_post, ib_post_recv and ib_poll_cq.
Signed-off-by: Rajesh Borundia <rajesh.borundia@cavium.com >
Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com >
Signed-off-by: Doug Ledford <dledford@redhat.com >
2016-10-14 15:00:10 -04:00
Ram Amrani
e0290cce6a
qedr: Add support for memory registeration verbs
...
Add support for user, dma and memory regions registration.
Signed-off-by: Rajesh Borundia <rajesh.borundia@cavium.com >
Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com >
Signed-off-by: Doug Ledford <dledford@redhat.com >
2016-10-14 15:00:10 -04:00
Ram Amrani
cecbcddf64
qedr: Add support for QP verbs
...
Add support for Queue Pair verbs which adds, deletes,
modifies and queries Queue Pairs.
Signed-off-by: Rajesh Borundia <rajesh.borundia@cavium.com >
Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com >
Signed-off-by: Doug Ledford <dledford@redhat.com >
2016-10-14 15:00:10 -04:00
Ram Amrani
a7efd7773e
qedr: Add support for PD,PKEY and CQ verbs
...
Add support for protection domain and completion queue verbs.
Signed-off-by: Rajesh Borundia <rajesh.borundia@cavium.com >
Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com >
Signed-off-by: Doug Ledford <dledford@redhat.com >
2016-10-14 15:00:10 -04:00
Ram Amrani
ac1b36e55a
qedr: Add support for user context verbs
...
Add support for ucontext, query port, add and del gid verbs.
Signed-off-by: Rajesh Borundia <rajesh.borundia@cavium.com >
Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com >
Signed-off-by: Doug Ledford <dledford@redhat.com >
2016-10-14 15:00:10 -04:00