DPDK patches and discussions
 help / color / mirror / Atom feed
From: Raslan Darawsheh <rasland@mellanox.com>
To: Suanming Mou <suanmingm@mellanox.com>,
	Slava Ovsiienko <viacheslavo@mellanox.com>,
	Matan Azrad <matan@mellanox.com>
Cc: Ori Kam <orika@mellanox.com>, "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH] net/mlx5: add GENEVE in tunnel offloads cap query
Date: Tue, 26 Nov 2019 15:22:03 +0000	[thread overview]
Message-ID: <DB3PR0502MB39644A2E02B00585AC26A813C2450@DB3PR0502MB3964.eurprd05.prod.outlook.com> (raw)
In-Reply-To: <1574777165-10517-1-git-send-email-suanmingm@mellanox.com>

Hi,

> -----Original Message-----
> From: Suanming Mou <suanmingm@mellanox.com>
> Sent: Tuesday, November 26, 2019 4:06 PM
> To: Slava Ovsiienko <viacheslavo@mellanox.com>; Matan Azrad
> <matan@mellanox.com>
> Cc: Ori Kam <orika@mellanox.com>; Raslan Darawsheh
> <rasland@mellanox.com>; dev@dpdk.org
> Subject: [PATCH] net/mlx5: add GENEVE in tunnel offloads cap query
> 
> GENEVE is available in tunnel offloads. Add it as the default support option.
> 
> Signed-off-by: Suanming Mou <suanmingm@mellanox.com>
> Acked-by: Ori Kam <orika@mellanox.com>
> ---
>  drivers/net/mlx5/mlx5.c     | 4 +++-
>  drivers/net/mlx5/mlx5_txq.c | 3 ++-
>  2 files changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c index
> 59ae408..949da68 100644
> --- a/drivers/net/mlx5/mlx5.c
> +++ b/drivers/net/mlx5/mlx5.c
> @@ -2256,7 +2256,9 @@ struct mlx5_flow_id_pool *
>  		tunnel_en = ((dv_attr.tunnel_offloads_caps &
> 
> MLX5DV_RAW_PACKET_CAP_TUNNELED_OFFLOAD_VXLAN) &&
>  			     (dv_attr.tunnel_offloads_caps &
> -
> MLX5DV_RAW_PACKET_CAP_TUNNELED_OFFLOAD_GRE));
> +
> MLX5DV_RAW_PACKET_CAP_TUNNELED_OFFLOAD_GRE) &&
> +			     (dv_attr.tunnel_offloads_caps &
> +
> MLX5DV_RAW_PACKET_CAP_TUNNELED_OFFLOAD_GENEVE));
>  	}
>  	DRV_LOG(DEBUG, "tunnel offloading is %ssupported",
>  		tunnel_en ? "" : "not ");
> diff --git a/drivers/net/mlx5/mlx5_txq.c b/drivers/net/mlx5/mlx5_txq.c
> index 8160516..d265f98 100644
> --- a/drivers/net/mlx5/mlx5_txq.c
> +++ b/drivers/net/mlx5/mlx5_txq.c
> @@ -127,7 +127,8 @@
>  			offloads |=
> DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM;
>  		if (config->tso)
>  			offloads |= (DEV_TX_OFFLOAD_VXLAN_TNL_TSO |
> -				     DEV_TX_OFFLOAD_GRE_TNL_TSO);
> +				     DEV_TX_OFFLOAD_GRE_TNL_TSO |
> +				     DEV_TX_OFFLOAD_GENEVE_TNL_TSO);
>  	}
>  	return offloads;
>  }
> --
> 1.8.3.1


Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh

      reply	other threads:[~2019-11-26 15:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-26 14:06 Suanming Mou
2019-11-26 15:22 ` Raslan Darawsheh [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DB3PR0502MB39644A2E02B00585AC26A813C2450@DB3PR0502MB3964.eurprd05.prod.outlook.com \
    --to=rasland@mellanox.com \
    --cc=dev@dpdk.org \
    --cc=matan@mellanox.com \
    --cc=orika@mellanox.com \
    --cc=suanmingm@mellanox.com \
    --cc=viacheslavo@mellanox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).