All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3] net/mlx5: use mlx5_buf_alloc_node instead of mlx5_buf_alloc in mlx5_wq_ll_create
@ 2016-06-24  0:52 Wang Sheng-Hui
       [not found] ` <1466729531-45481-1-git-send-email-shhuiw-H32Fclmsjq1BDgjK7y7TUQ@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Wang Sheng-Hui @ 2016-06-24  0:52 UTC (permalink / raw)
  To: saeedm, amirv; +Cc: matanb, leonro, netdev, linux-rdma, stable

Commit 311c7c71c9bb ("net/mlx5e: Allocate DMA coherent memory on
reader NUMA node") introduced mlx5_*_alloc_node() but missed changing
some calling and warn messages. This patch introduces 2 changes:
	* Use mlx5_buf_alloc_node() instead of mlx5_buf_alloc() in
	  mlx5_wq_ll_create()
	* Update the failure warn messages with _node postfix for
	  mlx5_*_alloc function names

Fixes: 311c7c71c9bb ("net/mlx5e: Allocate DMA coherent memory on reader NUMA node")
Signed-off-by: Wang Sheng-Hui <shhuiw@foxmail.com>
---

Changes since v2:
	* Reformat the commit log

Changes since v1:
	* Add Fixes line in commit log

 drivers/net/ethernet/mellanox/mlx5/core/wq.c | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/drivers/net/ethernet/mellanox/mlx5/core/wq.c b/drivers/net/ethernet/mellanox/mlx5/core/wq.c
index ce21ee5..821a087 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/wq.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/wq.c
@@ -75,14 +75,14 @@ int mlx5_wq_cyc_create(struct mlx5_core_dev *mdev, struct mlx5_wq_param *param,
 
 	err = mlx5_db_alloc_node(mdev, &wq_ctrl->db, param->db_numa_node);
 	if (err) {
-		mlx5_core_warn(mdev, "mlx5_db_alloc() failed, %d\n", err);
+		mlx5_core_warn(mdev, "mlx5_db_alloc_node() failed, %d\n", err);
 		return err;
 	}
 
 	err = mlx5_buf_alloc_node(mdev, mlx5_wq_cyc_get_byte_size(wq),
 				  &wq_ctrl->buf, param->buf_numa_node);
 	if (err) {
-		mlx5_core_warn(mdev, "mlx5_buf_alloc() failed, %d\n", err);
+		mlx5_core_warn(mdev, "mlx5_buf_alloc_node() failed, %d\n", err);
 		goto err_db_free;
 	}
 
@@ -111,14 +111,14 @@ int mlx5_cqwq_create(struct mlx5_core_dev *mdev, struct mlx5_wq_param *param,
 
 	err = mlx5_db_alloc_node(mdev, &wq_ctrl->db, param->db_numa_node);
 	if (err) {
-		mlx5_core_warn(mdev, "mlx5_db_alloc() failed, %d\n", err);
+		mlx5_core_warn(mdev, "mlx5_db_alloc_node() failed, %d\n", err);
 		return err;
 	}
 
 	err = mlx5_buf_alloc_node(mdev, mlx5_cqwq_get_byte_size(wq),
 				  &wq_ctrl->buf, param->buf_numa_node);
 	if (err) {
-		mlx5_core_warn(mdev, "mlx5_buf_alloc() failed, %d\n", err);
+		mlx5_core_warn(mdev, "mlx5_buf_alloc_node() failed, %d\n", err);
 		goto err_db_free;
 	}
 
@@ -148,13 +148,14 @@ int mlx5_wq_ll_create(struct mlx5_core_dev *mdev, struct mlx5_wq_param *param,
 
 	err = mlx5_db_alloc_node(mdev, &wq_ctrl->db, param->db_numa_node);
 	if (err) {
-		mlx5_core_warn(mdev, "mlx5_db_alloc() failed, %d\n", err);
+		mlx5_core_warn(mdev, "mlx5_db_alloc_node() failed, %d\n", err);
 		return err;
 	}
 
-	err = mlx5_buf_alloc(mdev, mlx5_wq_ll_get_byte_size(wq), &wq_ctrl->buf);
+	err = mlx5_buf_alloc_node(mdev, mlx5_wq_ll_get_byte_size(wq),
+				  &wq_ctrl->buf, param->buf_numa_node);
 	if (err) {
-		mlx5_core_warn(mdev, "mlx5_buf_alloc() failed, %d\n", err);
+		mlx5_core_warn(mdev, "mlx5_buf_alloc_node() failed, %d\n", err);
 		goto err_db_free;
 	}
 
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v3] net/mlx5: use mlx5_buf_alloc_node instead of mlx5_buf_alloc in mlx5_wq_ll_create
  2016-06-24  0:52 [PATCH v3] net/mlx5: use mlx5_buf_alloc_node instead of mlx5_buf_alloc in mlx5_wq_ll_create Wang Sheng-Hui
@ 2016-06-26 10:02     ` Saeed Mahameed
  0 siblings, 0 replies; 5+ messages in thread
From: Saeed Mahameed @ 2016-06-26 10:02 UTC (permalink / raw)
  To: Wang Sheng-Hui
  Cc: Saeed Mahameed, Amir Vadai, Matan Barak, Leon Romanovsky,
	Linux Netdev List, linux-rdma-u79uwXL29TY76Z2rM5mHXA,
	stable-u79uwXL29TY76Z2rM5mHXA

On Fri, Jun 24, 2016 at 3:52 AM, Wang Sheng-Hui <shhuiw-H32Fclmsjq1BDgjK7y7TUQ@public.gmane.org> wrote:
> Commit 311c7c71c9bb ("net/mlx5e: Allocate DMA coherent memory on
> reader NUMA node") introduced mlx5_*_alloc_node() but missed changing
> some calling and warn messages. This patch introduces 2 changes:
>         * Use mlx5_buf_alloc_node() instead of mlx5_buf_alloc() in
>           mlx5_wq_ll_create()
>         * Update the failure warn messages with _node postfix for
>           mlx5_*_alloc function names
>
> Fixes: 311c7c71c9bb ("net/mlx5e: Allocate DMA coherent memory on reader NUMA node")
> Signed-off-by: Wang Sheng-Hui <shhuiw-H32Fclmsjq1BDgjK7y7TUQ@public.gmane.org>

Acked-By: Saeed Mahameed <saeedm-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v3] net/mlx5: use mlx5_buf_alloc_node instead of mlx5_buf_alloc in mlx5_wq_ll_create
@ 2016-06-26 10:02     ` Saeed Mahameed
  0 siblings, 0 replies; 5+ messages in thread
From: Saeed Mahameed @ 2016-06-26 10:02 UTC (permalink / raw)
  To: Wang Sheng-Hui
  Cc: Saeed Mahameed, Amir Vadai, Matan Barak, Leon Romanovsky,
	Linux Netdev List, linux-rdma, stable

On Fri, Jun 24, 2016 at 3:52 AM, Wang Sheng-Hui <shhuiw@foxmail.com> wrote:
> Commit 311c7c71c9bb ("net/mlx5e: Allocate DMA coherent memory on
> reader NUMA node") introduced mlx5_*_alloc_node() but missed changing
> some calling and warn messages. This patch introduces 2 changes:
>         * Use mlx5_buf_alloc_node() instead of mlx5_buf_alloc() in
>           mlx5_wq_ll_create()
>         * Update the failure warn messages with _node postfix for
>           mlx5_*_alloc function names
>
> Fixes: 311c7c71c9bb ("net/mlx5e: Allocate DMA coherent memory on reader NUMA node")
> Signed-off-by: Wang Sheng-Hui <shhuiw@foxmail.com>

Acked-By: Saeed Mahameed <saeedm@mellanox.com>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v3] net/mlx5: use mlx5_buf_alloc_node instead of mlx5_buf_alloc in mlx5_wq_ll_create
  2016-06-24  0:52 [PATCH v3] net/mlx5: use mlx5_buf_alloc_node instead of mlx5_buf_alloc in mlx5_wq_ll_create Wang Sheng-Hui
@ 2016-06-28  9:17     ` David Miller
  0 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2016-06-28  9:17 UTC (permalink / raw)
  To: shhuiw-H32Fclmsjq1BDgjK7y7TUQ
  Cc: saeedm-VPRAkNaXOzVWk0Htik3J/w, amirv-VPRAkNaXOzVWk0Htik3J/w,
	matanb-VPRAkNaXOzVWk0Htik3J/w, leonro-VPRAkNaXOzVWk0Htik3J/w,
	netdev-u79uwXL29TY76Z2rM5mHXA, linux-rdma-u79uwXL29TY76Z2rM5mHXA,
	stable-u79uwXL29TY76Z2rM5mHXA

From: Wang Sheng-Hui <shhuiw-H32Fclmsjq1BDgjK7y7TUQ@public.gmane.org>
Date: Fri, 24 Jun 2016 08:52:11 +0800

> Commit 311c7c71c9bb ("net/mlx5e: Allocate DMA coherent memory on
> reader NUMA node") introduced mlx5_*_alloc_node() but missed changing
> some calling and warn messages. This patch introduces 2 changes:
> 	* Use mlx5_buf_alloc_node() instead of mlx5_buf_alloc() in
> 	  mlx5_wq_ll_create()
> 	* Update the failure warn messages with _node postfix for
> 	  mlx5_*_alloc function names
> 
> Fixes: 311c7c71c9bb ("net/mlx5e: Allocate DMA coherent memory on reader NUMA node")
> Signed-off-by: Wang Sheng-Hui <shhuiw-H32Fclmsjq1BDgjK7y7TUQ@public.gmane.org>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v3] net/mlx5: use mlx5_buf_alloc_node instead of mlx5_buf_alloc in mlx5_wq_ll_create
@ 2016-06-28  9:17     ` David Miller
  0 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2016-06-28  9:17 UTC (permalink / raw)
  To: shhuiw; +Cc: saeedm, amirv, matanb, leonro, netdev, linux-rdma, stable

From: Wang Sheng-Hui <shhuiw@foxmail.com>
Date: Fri, 24 Jun 2016 08:52:11 +0800

> Commit 311c7c71c9bb ("net/mlx5e: Allocate DMA coherent memory on
> reader NUMA node") introduced mlx5_*_alloc_node() but missed changing
> some calling and warn messages. This patch introduces 2 changes:
> 	* Use mlx5_buf_alloc_node() instead of mlx5_buf_alloc() in
> 	  mlx5_wq_ll_create()
> 	* Update the failure warn messages with _node postfix for
> 	  mlx5_*_alloc function names
> 
> Fixes: 311c7c71c9bb ("net/mlx5e: Allocate DMA coherent memory on reader NUMA node")
> Signed-off-by: Wang Sheng-Hui <shhuiw@foxmail.com>

Applied.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-06-28  9:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-24  0:52 [PATCH v3] net/mlx5: use mlx5_buf_alloc_node instead of mlx5_buf_alloc in mlx5_wq_ll_create Wang Sheng-Hui
     [not found] ` <1466729531-45481-1-git-send-email-shhuiw-H32Fclmsjq1BDgjK7y7TUQ@public.gmane.org>
2016-06-26 10:02   ` Saeed Mahameed
2016-06-26 10:02     ` Saeed Mahameed
2016-06-28  9:17   ` David Miller
2016-06-28  9:17     ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.