[PATCH for-next 6/6] IB/mlx5: Add Raw Packet Queue Pair (QP) support

2015-12-10 Thread Majd Dibbiny
the SQ and RQ work-queue (WQ) buffers are not contiguous like other QPs, we allocate separate buffers in the user-space and pass the address of each one of them separately to the kernel. Signed-off-by: Majd Dibbiny --- drivers/infiniband/hw/mlx5/main.c | 15 +- drivers

[PATCH for-next 2/6] IB/mlx5: Exposed CQE version to user-space

2015-12-10 Thread Majd Dibbiny
From: Haggai Abramonvsky Report the CQE version to the user-space via the response of alloc_ucontext command. Signed-off-by: Haggai Abramovsky --- drivers/infiniband/hw/mlx5/main.c | 4 +++- drivers/infiniband/hw/mlx5/user.h | 3 ++- drivers/net/ethernet/mellanox/mlx5

[PATCH for-next 5/6] net/mlx5_core: Warn on unsupported events of QP/RQ/SQ

2015-12-10 Thread Majd Dibbiny
When an event arrives on QP/RQ/SQ, check whether it's supported, and WARN_ON otherwise. Signed-off-by: Majd Dibbiny --- drivers/net/ethernet/mellanox/mlx5/core/qp.c | 52 1 file changed, 52 insertions(+) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/qp

[PATCH libmlx5] Add Raw Packet Queue Pair (QP) support

2015-12-10 Thread Majd Dibbiny
1. Add support for RAW Packet WQEs in the post send. 2. Allocate different buffers for RQ and SQ to ensure alignment of the SQ buffer. Signed-off-by: Majd Dibbiny --- Hi Eli, This patch adds support for Raw Packet QP in libmlx5. Raw Packet QP enables the user to send and receive raw

[PATCH for-next 3/6] net/mlx5_core: Export transport objects

2015-12-10 Thread Majd Dibbiny
To be used by mlx5_ib in the following patches for implementing RAW PACKET QP. Signed-off-by: Majd Dibbiny --- drivers/net/ethernet/mellanox/mlx5/core/en.h | 2 +- drivers/net/ethernet/mellanox/mlx5/core/srq.c | 2 +- drivers/net/ethernet/mellanox/mlx5/core/transobj.c | 10

[PATCH for-next 4/6] net/mlx5_core: Add RQ and SQ event handling

2015-12-10 Thread Majd Dibbiny
. Signed-off-by: Majd Dibbiny --- drivers/net/ethernet/mellanox/mlx5/core/eq.c | 1 + drivers/net/ethernet/mellanox/mlx5/core/qp.c | 123 ++- include/linux/mlx5/device.h | 10 ++- include/linux/mlx5/driver.h | 8 +- include/linux/mlx5/qp.h

[PATCH] IB/mlx5: Add Raw Packet Queue Pair (QP) support

2015-12-10 Thread Majd Dibbiny
the SQ and RQ work-queue (WQ) buffers are not contiguous like other QPs, we allocate separate buffers in the user-space and pass the address of each one of them separately to the kernel. Signed-off-by: Majd Dibbiny --- drivers/infiniband/hw/mlx5/main.c | 15 +- drivers

[PATCH for-next 1/6] IB/mlx5: Add CQE version 1 support to user space

2015-12-10 Thread Majd Dibbiny
From: Haggai Abramonvsky This patch prepares the infrastructure to work with CQE version 1 if the user-space works this way, otherwise work with CQE version 0. After this patch the kernel still reports CQE version 0. Signed-off-by: Haggai Abramovsky --- drivers/infiniband/hw/mlx5/mlx5_ib.h

[PATCH for-next 0/6] Raw Packet QP user-space support for mlx5

2015-12-10 Thread Majd Dibbiny
(2): IB/mlx5: Add CQE version 1 support to user space IB/mlx5: Exposed CQE version to user-space Majd Dibbiny (4): net/mlx5_core: Export transport objects net/mlx5_core: Add RQ and SQ event handling net/mlx5_core: Warn on unsupported events of QP/RQ/SQ IB/mlx5: Add Raw Packet Queu

Re: [PATCH RE-RESEND V2 for-next 3/5] IB/core: Call ib_unregister_mad_agent() only for valid agents

2015-02-19 Thread Majd Dibbiny
On 17/2/2015 3:59 PM, Yann Droneaud wrote: > Hi, > > Le lundi 16 février 2015 à 22:28 +0100, Yann Droneaud a écrit : >> Le jeudi 05 février 2015 à 13:53 +0200, Or Gerlitz a écrit : >>> From: Majd Dibbiny >>> >>> In some error flows, ib_mad_unreg

[PATCH libmlx4 1/2] Add Memory Windows support

2015-02-05 Thread Majd Dibbiny
Implement the following libibvebrs Memory Window verbs: 1. ibv_alloc_mw 2. ibv_dealloc_mw 3. ibv_bind_mw Signed-off-by: Majd Dibbiny --- src/cq.c|3 ++ src/mlx4.c |3 ++ src/mlx4.h |5 src/qp.c| 54 + src/verbs.c

[PATCH libmlx4 2/2] Implement Send with invalidate

2015-02-05 Thread Majd Dibbiny
. Fast register MR The invalidation is done by posting a send work request, where the opcode is IBV_WR_SEND_WITH_INV and the immediate data contain's the R_key. Upon success, the responder's work completion will contain the invalidated R_key in it's immediate data. Signed-off-b

[PATCH libmlx4 0/2] Memory Windows implementation

2015-02-05 Thread Majd Dibbiny
: Implements the Send with invalidate. Majd Dibbiny (2): Add Memory Windows support Implement Send with invalidate src/cq.c| 11 ++ src/mlx4.c |3 ++ src/mlx4.h |5 src/qp.c| 58 src/verbs.c | 65