Skip to contentSkip to conversation

net/mlx5: enhance error log for tunnel offloading

PATCH In review David Marchand 4 participants 5 messages Apr 27, 2023 – May 24, 2023 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/mlx5: enhance error log for tunnel offloading

Tunnel offloading is linked to running a port with the non-obvious dv_xmeta_en=3 devargs. Hint at it for "normal" users.

Fixes 4ec6360de37d ("net/mlx5: implement tunnel offload")
---
 drivers/net/mlx5/mlx5_flow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/mlx5/mlx5_flow.c +1 -1
index d0275fdd00..51f6ecd25d 100644
@@ -11295,7 +11295,7 @@ mlx5_flow_tunnel_validate(struct rte_eth_dev *dev,
 	if (!is_tunnel_offload_active(dev))
 		return rte_flow_error_set(error, ENOTSUP,
 					  RTE_FLOW_ERROR_TYPE_ACTION_CONF, NULL,
-					  "tunnel offload was not activated");
+					  "tunnel offload was not activated, consider setting dv_xmeta_en=3");
 	if (!tunnel)
 		return rte_flow_error_set(error, EINVAL,
 					  RTE_FLOW_ERROR_TYPE_ACTION_CONF, NULL,
Signature · 1 line
2.40.0
#1 lore raw

Hello guys,

Quoted 7 lines · David Marchand

Tunnel offloading is linked to running a port with the non-obvious dv_xmeta_en=3 devargs. Hint at it for "normal" users.

Fixes 4ec6360de37d ("net/mlx5: implement tunnel offload")

Regardless of what happens to this patch, would it be possible to move away from those dv_xxx_en devargs things and go with a more straightforward API, like requesting tunnel offloading (or other) in rte_flow_configure?

Signature · 1 line
David Marchand
#2 lore raw

27/04/2023 14:23, David Marchand:

Quoted 8 lines

Hello guys,

Quoted 4 lines · David Marchand

Tunnel offloading is linked to running a port with the non-obvious dv_xmeta_en=3 devargs. Hint at it for "normal" users.

Quoted 8 lines
Quoted 3 lines
Fixes 4ec6360de37d ("net/mlx5: implement tunnel offload")

Regardless of what happens to this patch, would it be possible to move away from those dv_xxx_en devargs things and go with a more straightforward API, like requesting tunnel offloading (or other) in rte_flow_configure?

Yes it is a good idea to use rte_flow_configure() for such configuration of the ethernet port.
If we get application requirements dynamically,
then we can better allocate resources
and check for invalid combinations of features.

Reviewed-by on v1 1/1
#3 lore raw
In reply to David Marchand

Hello David,

Quoted 23 lines

Tunnel offloading is linked to running a port with the non-obvious dv_xmeta_en=3 devargs. Hint at it for "normal" users.

Fixes 4ec6360de37d ("net/mlx5: implement tunnel offload")
---
 drivers/net/mlx5/mlx5_flow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/mlx5/mlx5_flow.c +1 -1
index d0275fdd00..51f6ecd25d 100644
@@ -11295,7 +11295,7 @@ mlx5_flow_tunnel_validate(struct rte_eth_dev
 *dev,
        if (!is_tunnel_offload_active(dev))
                return rte_flow_error_set(error, ENOTSUP,
                                          RTE_FLOW_ERROR_TYPE_ACTION_CONF, NULL,
-                                         "tunnel offload was not activated");
+                                         "tunnel offload was not activated, consider
 setting dv_xmeta_en=3");
        if (!tunnel)
Quoted 4 lines

return rte_flow_error_set(error, EINVAL,
RTE_FLOW_ERROR_TYPE_ACTION_CONF, NULL,
--
2.40.0

Acked-by on v1 1/1
#4 lore raw
In reply to David Marchand

Hi,

Quoted 9 lines

-----Original Message-----
From: David Marchand <[email protected]>
Sent: Thursday, April 27, 2023 2:56 PM
To: [email protected]
Cc: NBU-Contact-Thomas Monjalon (EXTERNAL) <[email protected]>; Matan Azrad <[email protected]>; Slava Ovsiienko <[email protected]>; Gregory Etelson <[email protected]>
Subject: [PATCH] net/mlx5: enhance error log for tunnel offloading

Quoted 6 lines

Tunnel offloading is linked to running a port with the non-obvious dv_xmeta_en=3 devargs. Hint at it for "normal" users.

Fixes 4ec6360de37d ("net/mlx5: implement tunnel offload")

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh