Skip to contentSkip to conversation

net/mlx5: dump flow create error message

PATCH Applied Xueming Li 3 participants 5 messages Feb 6, 2018 – Feb 13, 2018 Network drivers

lore
Share & tools
lore

Xueming Li

author
#0 lore raw

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
index e38452ef3..ea90556d0 100644
@@ -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
#1 lore raw
Quoted 21 lines · Xueming Li

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
index e38452ef3..ea90556d0 100644
@@ -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
#2 lore raw

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 message

Quoted 20 lines · Xueming Li

Add error message dump when flow create error happened.

---
 drivers/net/mlx5/mlx5_flow.c | 1 +
 1 file changed, 1 insertion(+)
(quoted diff) +0 -0

b/drivers/net/mlx5/mlx5_flow.c index e38452ef3..ea90556d0 100644

drivers/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

#3 lore raw
Quoted 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 message

Quoted 20 lines · Xueming Li

Add error message dump when flow create error happened.

---
 drivers/net/mlx5/mlx5_flow.c | 1 +
 1 file changed, 1 insertion(+)
(quoted diff) +0 -0

b/drivers/net/mlx5/mlx5_flow.c index e38452ef3..ea90556d0 100644

drivers/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