Thread (23 messages) 23 messages, 4 authors, 2019-02-05

Re: [PATCH mlx5-next 12/12] net/mlx5: Set ODP SRQ support in firmware

From: Leon Romanovsky <leon@kernel.org>
Date: 2019-02-05 06:28:01
Also in: linux-rdma

On Mon, Feb 04, 2019 at 11:47:23PM +0000, Saeed Mahameed wrote:
On Tue, 2019-01-22 at 08:48 +0200, Leon Romanovsky wrote:
quoted
From: Moni Shoua <redacted>

To avoid compatibility issue with older kernels the firmware doesn't
allow SRQ to work with ODP unless kernel asks for it.

Signed-off-by: Moni Shoua <redacted>
Reviewed-by: Majd Dibbiny <redacted>
Signed-off-by: Leon Romanovsky <redacted>
---
 .../net/ethernet/mellanox/mlx5/core/main.c    | 53
+++++++++++++++++++
 include/linux/mlx5/device.h                   |  3 ++
 include/linux/mlx5/mlx5_ifc.h                 |  1 +
 3 files changed, 57 insertions(+)
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/main.c
b/drivers/net/ethernet/mellanox/mlx5/core/main.c
index be81b319b0dc..b3a76df0cf6c 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/main.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/main.c
@@ -459,6 +459,53 @@ static int handle_hca_cap_atomic(struct
mlx5_core_dev *dev)
 	return err;
 }

+static int handle_hca_cap_odp(struct mlx5_core_dev *dev)
+{
+	void *set_ctx;
+	void *set_hca_cap;
+	int set_sz = MLX5_ST_SZ_BYTES(set_hca_cap_in);
+	int err;
+
reversed xmas tree.
I'll send followup to address your comments.

Thanks

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help