DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] common/mlx5: replace use of PMD logtype
@ 2023-02-23 17:41 Stephen Hemminger
  2023-03-06 13:19 ` Slava Ovsiienko
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Stephen Hemminger @ 2023-02-23 17:41 UTC (permalink / raw)
  To: dev; +Cc: Stephen Hemminger, viacheslavo, Matan Azrad, Gregory Etelson

The goal to eliminate the generic PMD logtype.
One place it is used unnecessarily is in the mlx5 common code.
Change the one RTE_LOG() call here to use the same macro
as other log messages in same file.

Fixes: 9c410b28b27a ("common/mlx5: refactor HCA attributes query")
Cc: viacheslavo@nvidia.com
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 drivers/common/mlx5/mlx5_devx_cmds.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/common/mlx5/mlx5_devx_cmds.c b/drivers/common/mlx5/mlx5_devx_cmds.c
index fb670950ef64..710649f86533 100644
--- a/drivers/common/mlx5/mlx5_devx_cmds.c
+++ b/drivers/common/mlx5/mlx5_devx_cmds.c
@@ -543,7 +543,7 @@ mlx5_devx_cmd_query_hca_vdpa_attr(void *ctx,
 			MLX5_GET_HCA_CAP_OP_MOD_VDPA_EMULATION |
 			MLX5_HCA_CAP_OPMOD_GET_CUR);
 	if (!hcattr) {
-		RTE_LOG(DEBUG, PMD, "Failed to query devx VDPA capabilities");
+		DRV_LOG(DEBUG, "Failed to query devx VDPA capabilities");
 		vdpa_attr->valid = 0;
 	} else {
 		vdpa_attr->valid = 1;
-- 
2.39.1


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

* RE: [PATCH] common/mlx5: replace use of PMD logtype
  2023-02-23 17:41 [PATCH] common/mlx5: replace use of PMD logtype Stephen Hemminger
@ 2023-03-06 13:19 ` Slava Ovsiienko
  2023-06-13 14:18   ` David Marchand
  2023-08-21 14:32 ` [PATCH v2] " Stephen Hemminger
  2023-08-21 16:16 ` [PATCH v3] " Stephen Hemminger
  2 siblings, 1 reply; 7+ messages in thread
From: Slava Ovsiienko @ 2023-03-06 13:19 UTC (permalink / raw)
  To: Stephen Hemminger, dev; +Cc: Matan Azrad, Gregory Etelson

Hi, Stephen

We have another place of using RTE_LOG in mlx5_glue_path().
Should we update this one as well ?

With best regards,
Slava


> -----Original Message-----
> From: Stephen Hemminger <stephen@networkplumber.org>
> Sent: четверг, 23 февраля 2023 г. 19:41
> To: dev@dpdk.org
> Cc: Stephen Hemminger <stephen@networkplumber.org>; Slava Ovsiienko
> <viacheslavo@nvidia.com>; Matan Azrad <matan@nvidia.com>; Gregory
> Etelson <getelson@nvidia.com>
> Subject: [PATCH] common/mlx5: replace use of PMD logtype
> 
> The goal to eliminate the generic PMD logtype.
> One place it is used unnecessarily is in the mlx5 common code.
> Change the one RTE_LOG() call here to use the same macro as other log
> messages in same file.
> 
> Fixes: 9c410b28b27a ("common/mlx5: refactor HCA attributes query")
> Cc: viacheslavo@nvidia.com
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> ---
>  drivers/common/mlx5/mlx5_devx_cmds.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/common/mlx5/mlx5_devx_cmds.c
> b/drivers/common/mlx5/mlx5_devx_cmds.c
> index fb670950ef64..710649f86533 100644
> --- a/drivers/common/mlx5/mlx5_devx_cmds.c
> +++ b/drivers/common/mlx5/mlx5_devx_cmds.c
> @@ -543,7 +543,7 @@ mlx5_devx_cmd_query_hca_vdpa_attr(void *ctx,
>  			MLX5_GET_HCA_CAP_OP_MOD_VDPA_EMULATION
> |
>  			MLX5_HCA_CAP_OPMOD_GET_CUR);
>  	if (!hcattr) {
> -		RTE_LOG(DEBUG, PMD, "Failed to query devx VDPA
> capabilities");
> +		DRV_LOG(DEBUG, "Failed to query devx VDPA capabilities");
>  		vdpa_attr->valid = 0;
>  	} else {
>  		vdpa_attr->valid = 1;
> --
> 2.39.1


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

* Re: [PATCH] common/mlx5: replace use of PMD logtype
  2023-03-06 13:19 ` Slava Ovsiienko
@ 2023-06-13 14:18   ` David Marchand
  0 siblings, 0 replies; 7+ messages in thread
From: David Marchand @ 2023-06-13 14:18 UTC (permalink / raw)
  To: Slava Ovsiienko, Stephen Hemminger; +Cc: dev, Matan Azrad, Gregory Etelson

On Mon, Mar 6, 2023 at 2:19 PM Slava Ovsiienko <viacheslavo@nvidia.com> wrote:
>
> Hi, Stephen
>
> We have another place of using RTE_LOG in mlx5_glue_path().
> Should we update this one as well ?

I think we should.
Stephen can you send a new revision?


-- 
David Marchand


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

* [PATCH v2] common/mlx5: replace use of PMD logtype
  2023-02-23 17:41 [PATCH] common/mlx5: replace use of PMD logtype Stephen Hemminger
  2023-03-06 13:19 ` Slava Ovsiienko
@ 2023-08-21 14:32 ` Stephen Hemminger
  2023-08-21 16:16 ` [PATCH v3] " Stephen Hemminger
  2 siblings, 0 replies; 7+ messages in thread
From: Stephen Hemminger @ 2023-08-21 14:32 UTC (permalink / raw)
  To: dev
  Cc: Stephen Hemminger, viacheslavo, Matan Azrad, Ori Kam,
	Suanming Mou, Gregory Etelson

The goal to eliminate the generic PMD logtype.
One place it is used unnecessarily is in the mlx5 common code.
Change the one RTE_LOG() call here to use the same macro
as other log messages in same file.

Fixes: 9c410b28b27a ("common/mlx5: refactor HCA attributes query")
Cc: viacheslavo@nvidia.com
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 drivers/common/mlx5/mlx5_devx_cmds.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/common/mlx5/mlx5_devx_cmds.c b/drivers/common/mlx5/mlx5_devx_cmds.c
index 66a77159a031..9db0b2ac8983 100644
--- a/drivers/common/mlx5/mlx5_devx_cmds.c
+++ b/drivers/common/mlx5/mlx5_devx_cmds.c
@@ -543,7 +543,7 @@ mlx5_devx_cmd_query_hca_vdpa_attr(void *ctx,
 			MLX5_GET_HCA_CAP_OP_MOD_VDPA_EMULATION |
 			MLX5_HCA_CAP_OPMOD_GET_CUR);
 	if (!hcattr) {
-		RTE_LOG(DEBUG, PMD, "Failed to query devx VDPA capabilities");
+		DRV_LOG(DEBUG, "Failed to query devx VDPA capabilities");
 		vdpa_attr->valid = 0;
 	} else {
 		vdpa_attr->valid = 1;
-- 
2.39.2


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

* [PATCH v3] common/mlx5: replace use of PMD logtype
  2023-02-23 17:41 [PATCH] common/mlx5: replace use of PMD logtype Stephen Hemminger
  2023-03-06 13:19 ` Slava Ovsiienko
  2023-08-21 14:32 ` [PATCH v2] " Stephen Hemminger
@ 2023-08-21 16:16 ` Stephen Hemminger
  2023-08-21 16:25   ` Tyler Retzlaff
  2023-09-25  7:17   ` Raslan Darawsheh
  2 siblings, 2 replies; 7+ messages in thread
From: Stephen Hemminger @ 2023-08-21 16:16 UTC (permalink / raw)
  To: dev
  Cc: Stephen Hemminger, viacheslavo, Matan Azrad, Ori Kam,
	Suanming Mou, Gregory Etelson

The goal to eliminate the generic PMD logtype.
One place it is used unnecessarily is in the mlx5 common code.
Change the one RTE_LOG() call here to use the same macro
as other log messages in same file.

Fixes: 9c410b28b27a ("common/mlx5: refactor HCA attributes query")
Cc: viacheslavo@nvidia.com
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
v3 - also address use in glue code

 drivers/common/mlx5/linux/mlx5_common_os.c | 2 +-
 drivers/common/mlx5/mlx5_devx_cmds.c       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/common/mlx5/linux/mlx5_common_os.c b/drivers/common/mlx5/linux/mlx5_common_os.c
index 2ebb8ac8b6e5..7260c1a19fd3 100644
--- a/drivers/common/mlx5/linux/mlx5_common_os.c
+++ b/drivers/common/mlx5/linux/mlx5_common_os.c
@@ -266,7 +266,7 @@ mlx5_glue_path(char *buf, size_t size)
 		goto error;
 	return buf;
 error:
-	RTE_LOG(ERR, PMD, "unable to append \"-glue\" to last component of"
+	DRV_LOG(ERR, "unable to append \"-glue\" to last component of"
 		" RTE_EAL_PMD_PATH (\"" RTE_EAL_PMD_PATH "\"), please"
 		" re-configure DPDK");
 	return NULL;
diff --git a/drivers/common/mlx5/mlx5_devx_cmds.c b/drivers/common/mlx5/mlx5_devx_cmds.c
index 66a77159a031..9db0b2ac8983 100644
--- a/drivers/common/mlx5/mlx5_devx_cmds.c
+++ b/drivers/common/mlx5/mlx5_devx_cmds.c
@@ -543,7 +543,7 @@ mlx5_devx_cmd_query_hca_vdpa_attr(void *ctx,
 			MLX5_GET_HCA_CAP_OP_MOD_VDPA_EMULATION |
 			MLX5_HCA_CAP_OPMOD_GET_CUR);
 	if (!hcattr) {
-		RTE_LOG(DEBUG, PMD, "Failed to query devx VDPA capabilities");
+		DRV_LOG(DEBUG, "Failed to query devx VDPA capabilities");
 		vdpa_attr->valid = 0;
 	} else {
 		vdpa_attr->valid = 1;
-- 
2.39.2


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

* Re: [PATCH v3] common/mlx5: replace use of PMD logtype
  2023-08-21 16:16 ` [PATCH v3] " Stephen Hemminger
@ 2023-08-21 16:25   ` Tyler Retzlaff
  2023-09-25  7:17   ` Raslan Darawsheh
  1 sibling, 0 replies; 7+ messages in thread
From: Tyler Retzlaff @ 2023-08-21 16:25 UTC (permalink / raw)
  To: Stephen Hemminger
  Cc: dev, viacheslavo, Matan Azrad, Ori Kam, Suanming Mou, Gregory Etelson

On Mon, Aug 21, 2023 at 09:16:25AM -0700, Stephen Hemminger wrote:
> The goal to eliminate the generic PMD logtype.
> One place it is used unnecessarily is in the mlx5 common code.
> Change the one RTE_LOG() call here to use the same macro
> as other log messages in same file.
> 
> Fixes: 9c410b28b27a ("common/mlx5: refactor HCA attributes query")
> Cc: viacheslavo@nvidia.com
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> ---

Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>


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

* RE: [PATCH v3] common/mlx5: replace use of PMD logtype
  2023-08-21 16:16 ` [PATCH v3] " Stephen Hemminger
  2023-08-21 16:25   ` Tyler Retzlaff
@ 2023-09-25  7:17   ` Raslan Darawsheh
  1 sibling, 0 replies; 7+ messages in thread
From: Raslan Darawsheh @ 2023-09-25  7:17 UTC (permalink / raw)
  To: Stephen Hemminger, dev
  Cc: Slava Ovsiienko, Matan Azrad, Ori Kam, Suanming Mou, Gregory Etelson

Hi,

> -----Original Message-----
> From: Stephen Hemminger <stephen@networkplumber.org>
> Sent: Monday, August 21, 2023 7:16 PM
> To: dev@dpdk.org
> Cc: Stephen Hemminger <stephen@networkplumber.org>; Slava Ovsiienko
> <viacheslavo@nvidia.com>; Matan Azrad <matan@nvidia.com>; Ori Kam
> <orika@nvidia.com>; Suanming Mou <suanmingm@nvidia.com>; Gregory
> Etelson <getelson@nvidia.com>
> Subject: [PATCH v3] common/mlx5: replace use of PMD logtype
> 
> The goal to eliminate the generic PMD logtype.
> One place it is used unnecessarily is in the mlx5 common code.
> Change the one RTE_LOG() call here to use the same macro as other log
> messages in same file.
> 
> Fixes: 9c410b28b27a ("common/mlx5: refactor HCA attributes query")
> Cc: viacheslavo@nvidia.com
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> ---
> v3 - also address use in glue code

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh

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

end of thread, other threads:[~2023-09-25  7:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-23 17:41 [PATCH] common/mlx5: replace use of PMD logtype Stephen Hemminger
2023-03-06 13:19 ` Slava Ovsiienko
2023-06-13 14:18   ` David Marchand
2023-08-21 14:32 ` [PATCH v2] " Stephen Hemminger
2023-08-21 16:16 ` [PATCH v3] " Stephen Hemminger
2023-08-21 16:25   ` Tyler Retzlaff
2023-09-25  7:17   ` Raslan Darawsheh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).