DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] net/mlx5: enhance error log for tunnel offloading
@ 2023-04-27 11:55 David Marchand
  2023-04-27 12:23 ` David Marchand
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: David Marchand @ 2023-04-27 11:55 UTC (permalink / raw)
  To: dev; +Cc: thomas, Matan Azrad, Viacheslav Ovsiienko, Gregory Etelson

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")

Signed-off-by: David Marchand <david.marchand@redhat.com>
---
 drivers/net/mlx5/mlx5_flow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c
index d0275fdd00..51f6ecd25d 100644
--- a/drivers/net/mlx5/mlx5_flow.c
+++ b/drivers/net/mlx5/mlx5_flow.c
@@ -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,
-- 
2.40.0


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

* Re: [PATCH] net/mlx5: enhance error log for tunnel offloading
  2023-04-27 11:55 [PATCH] net/mlx5: enhance error log for tunnel offloading David Marchand
@ 2023-04-27 12:23 ` David Marchand
  2023-05-24 16:31   ` Thomas Monjalon
  2023-04-27 13:05 ` Gregory Etelson
  2023-05-24  6:42 ` Raslan Darawsheh
  2 siblings, 1 reply; 5+ messages in thread
From: David Marchand @ 2023-04-27 12:23 UTC (permalink / raw)
  To: Matan Azrad, Viacheslav Ovsiienko, Ori Kam
  Cc: dev, thomas, Gregory Etelson, Raslan Darawsheh

Hello guys,

On Thu, Apr 27, 2023 at 1:56 PM David Marchand
<david.marchand@redhat.com> wrote:
>
> 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")
>
> Signed-off-by: David Marchand <david.marchand@redhat.com>

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?


-- 
David Marchand


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

* RE: [PATCH] net/mlx5: enhance error log for tunnel offloading
  2023-04-27 11:55 [PATCH] net/mlx5: enhance error log for tunnel offloading David Marchand
  2023-04-27 12:23 ` David Marchand
@ 2023-04-27 13:05 ` Gregory Etelson
  2023-05-24  6:42 ` Raslan Darawsheh
  2 siblings, 0 replies; 5+ messages in thread
From: Gregory Etelson @ 2023-04-27 13:05 UTC (permalink / raw)
  To: David Marchand, dev
  Cc: NBU-Contact-Thomas Monjalon (EXTERNAL), Matan Azrad, Slava Ovsiienko

Hello David,

> 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")
> 
> Signed-off-by: David Marchand <david.marchand@redhat.com>
> ---
>  drivers/net/mlx5/mlx5_flow.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c
> index d0275fdd00..51f6ecd25d 100644
> --- a/drivers/net/mlx5/mlx5_flow.c
> +++ b/drivers/net/mlx5/mlx5_flow.c
> @@ -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,
> --
> 2.40.0

Reviewed-by: Gregory Etelson <getelson@nvidia.com>


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

* RE: [PATCH] net/mlx5: enhance error log for tunnel offloading
  2023-04-27 11:55 [PATCH] net/mlx5: enhance error log for tunnel offloading David Marchand
  2023-04-27 12:23 ` David Marchand
  2023-04-27 13:05 ` Gregory Etelson
@ 2023-05-24  6:42 ` Raslan Darawsheh
  2 siblings, 0 replies; 5+ messages in thread
From: Raslan Darawsheh @ 2023-05-24  6:42 UTC (permalink / raw)
  To: David Marchand, dev
  Cc: NBU-Contact-Thomas Monjalon (EXTERNAL),
	Matan Azrad, Slava Ovsiienko, Gregory Etelson

Hi,

> -----Original Message-----
> From: David Marchand <david.marchand@redhat.com>
> Sent: Thursday, April 27, 2023 2:56 PM
> To: dev@dpdk.org
> Cc: NBU-Contact-Thomas Monjalon (EXTERNAL) <thomas@monjalon.net>;
> Matan Azrad <matan@nvidia.com>; Slava Ovsiienko
> <viacheslavo@nvidia.com>; Gregory Etelson <getelson@nvidia.com>
> Subject: [PATCH] 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")
> 
> Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Raslan Darawsheh <rasland@nvidia.com>

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh

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

* Re: [PATCH] net/mlx5: enhance error log for tunnel offloading
  2023-04-27 12:23 ` David Marchand
@ 2023-05-24 16:31   ` Thomas Monjalon
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Monjalon @ 2023-05-24 16:31 UTC (permalink / raw)
  To: David Marchand
  Cc: Matan Azrad, Viacheslav Ovsiienko, Ori Kam, dev, Gregory Etelson,
	Raslan Darawsheh, Dariusz Sosnowski, Maayan Kashani

27/04/2023 14:23, David Marchand:
> Hello guys,
> 
> On Thu, Apr 27, 2023 at 1:56 PM David Marchand
> <david.marchand@redhat.com> wrote:
> >
> > 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")
> >
> > Signed-off-by: David Marchand <david.marchand@redhat.com>
> 
> 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.



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

end of thread, other threads:[~2023-05-24 16:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-27 11:55 [PATCH] net/mlx5: enhance error log for tunnel offloading David Marchand
2023-04-27 12:23 ` David Marchand
2023-05-24 16:31   ` Thomas Monjalon
2023-04-27 13:05 ` Gregory Etelson
2023-05-24  6:42 ` 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).