net/mlx5: dump flow create error message
PATCH 1/1 net/mlx5: dump flow create error message
Add error message dump when flow create error happened.
--- drivers/net/mlx5/mlx5_flow.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/mlx5/mlx5_flow.c +1 -0
@@ -1890,6 +1890,7 @@ priv_flow_create(struct priv *priv,DEBUG ("Flow created %p" , (void *)flow);return flow; exit: +ERROR ("Flow create error: %s" , error->message);for (i =0 ; i != hash_rxq_init_n; ++i) {if (parser.queue[i].ibv_attr)rte_free (parser.queue[i].ibv_attr);
Signature · 1 line
2.13.3
Quoted 21 lines · Xueming Li
Add error message dump when flow create error happened.
Signed-off-by Xueming Li <[email protected]>--- drivers/net/mlx5/mlx5_flow.c | 1 + 1 file changed, 1 insertion(+)drivers/net/mlx5/mlx5_flow.c +1
-0@@ -1890,6 +1890,7 @@ priv_flow_create(struct priv *priv,DEBUG ("Flow created %p" , (void *)flow);return flow; exit: +ERROR ("Flow create error: %s" , error->message);for (i =0 ; i != hash_rxq_init_n; ++i) {if (parser.queue[i].ibv_attr)rte_free (parser.queue[i].ibv_attr);Signature · 1 line
2.13.3
Hi Xueming,
Can you move this debug message to mlx5_flow_create().
Thanks,
Signature · 2 lines
Nélio Laranjeiro 6WIND
Hi Nelio,
Quoted 33 lines
-----Original Message-----
From: Nélio Laranjeiro [mailto:[email protected]]
Sent: Tuesday, February 6, 2018 9:22 PM
To: Xueming(Steven) Li <[email protected]>
Cc: Nelio Laranjeiro <[email protected]>; [email protected]; Shahaf Shuler <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] net/mlx5: dump flow create error messageQuoted 20 lines · Xueming Li
Add error message dump when flow create error happened.
Signed-off-by Xueming Li <[email protected]>--- drivers/net/mlx5/mlx5_flow.c | 1 + 1 file changed, 1 insertion(+)(quoted diff) +0
-0
b/drivers/net/mlx5/mlx5_flow.cindexe38452ef3..ea90556d0100644drivers/net/mlx5/mlx5_flow.c +1
-1@@ -1890,6 +1890,7 @@ priv_flow_create(struct priv *priv,DEBUG ("Flow created %p" , (void *)flow);return flow; exit: +ERROR ("Flow create error: %s" , error->message);for (i =0 ; i != hash_rxq_init_n; ++i) {if (parser.queue[i].ibv_attr)rte_free (parser.queue[i].ibv_attr); --Quoted 1 line
2.13.3
Hi Xueming,
Quoted 1 line
Can you move this debug message to
mlx5_flow_create().
This function also called by control flow and fdir functions, here should be the best place.
Quoted 6 lines
Thanks,
--
Nélio Laranjeiro
6WIND
Nélio Laranjeiro
Acked-byQuoted 35 lines · Xueming(Steven) Li
Hi Nelio,
Quoted 33 lines
-----Original Message-----
From: Nélio Laranjeiro [mailto:[email protected]]
Sent: Tuesday, February 6, 2018 9:22 PM
To: Xueming(Steven) Li <[email protected]>
Cc: Nelio Laranjeiro <[email protected]>; [email protected]; Shahaf Shuler <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] net/mlx5: dump flow create error messageQuoted 20 lines · Xueming Li
Add error message dump when flow create error happened.
Signed-off-by Xueming Li <[email protected]>--- drivers/net/mlx5/mlx5_flow.c | 1 + 1 file changed, 1 insertion(+)(quoted diff) +0
-0
b/drivers/net/mlx5/mlx5_flow.cindexe38452ef3..ea90556d0100644drivers/net/mlx5/mlx5_flow.c +1
-1@@ -1890,6 +1890,7 @@ priv_flow_create(struct priv *priv,DEBUG ("Flow created %p" , (void *)flow);return flow; exit: +ERROR ("Flow create error: %s" , error->message);for (i =0 ; i != hash_rxq_init_n; ++i) {if (parser.queue[i].ibv_attr)rte_free (parser.queue[i].ibv_attr); --Quoted 1 line
2.13.3
Hi Xueming,
Quoted 4 lines
Quoted 1 line
Can you move this debug message to
mlx5_flow_create().This function also called by control flow and fdir functions, here should be the best place.
Make sense,
Thanks,
Signature · 2 lines
Nélio Laranjeiro 6WIND
Thomas Monjalon
AppliedQuoted 5 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Add error message dump when flow create error happened.
Signed-off-by Xueming Li <[email protected]>Acked-by Nelio Laranjeiro <[email protected]>
Applied, thanks