DPDK patches and discussions
 help / color / mirror / Atom feed
From: Tal Shnaiderman <talshn@nvidia.com>
To: Andrey Vesnovaty <andreyv@nvidia.com>, "dev@dpdk.org" <dev@dpdk.org>
Cc: NBU-Contact-Thomas Monjalon <thomas@monjalon.net>,
	"ferruh.yigit@intel.com" <ferruh.yigit@intel.com>,
	Ori Kam <orika@nvidia.com>,
	Slava Ovsiienko <viacheslavo@nvidia.com>,
	"andrey.vesnovaty@gmail.com" <andrey.vesnovaty@gmail.com>,
	Matan Azrad <matan@nvidia.com>,
	Shahaf Shuler <shahafs@nvidia.com>
Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix shared RSS action update
Date: Mon, 23 Nov 2020 20:15:15 +0000	[thread overview]
Message-ID: <CY4PR1201MB2548E9C582CB51B2F0F19FDFA4FC0@CY4PR1201MB2548.namprd12.prod.outlook.com> (raw)
In-Reply-To: <20201122144952.22008-1-andreyv@nvidia.com>

> Subject: [dpdk-dev] [PATCH] net/mlx5: fix shared RSS action update
> 
> The shared RSS action update was not operational due to lack of kernel driver
> support of TIR object modification.
> This commit introduces the workaround to support shared RSS action modify
> using an indirect queue table update instead of touching TIR object directly.
> Limitations: the only supported RSS property to update is queues, the rest of
> the properties ignored.
> 
> Fixes: d2046c09aa64 ("net/mlx5: support shared action for RSS")
> 
> Signed-off-by: Andrey Vesnovaty <andreyv@nvidia.com>
> ---
>  drivers/net/mlx5/mlx5.h         |   8 +-
>  drivers/net/mlx5/mlx5_devx.c    |  84 +++++++++++++++--
>  drivers/net/mlx5/mlx5_flow.h    |   4 +-
>  drivers/net/mlx5/mlx5_flow_dv.c | 103 ++++++++++++---------
>  drivers/net/mlx5/mlx5_rxq.c     | 159 +++++++++++++++++++++++++++-----
>  drivers/net/mlx5/mlx5_rxtx.h    |   6 ++
>  6 files changed, 283 insertions(+), 81 deletions(-)
> 

<snip>

> +11528,14 @@ __flow_dv_action_rss_release(struct rte_eth_dev *dev,
> uint32_t idx,
>  					  RTE_FLOW_ERROR_TYPE_ACTION,
>  					  NULL,
>  					  "shared rss hrxq has references");
> +	queue = shared_rss->ind_tbl->queues;
> +	remaining = mlx5_ind_table_obj_release(dev, shared_rss->ind_tbl,
> true);
> +	if (remaining)
> +		return rte_flow_error_set(error, ETOOMANYREFS,
> +					  RTE_FLOW_ERROR_TYPE_ACTION,
> +					  NULL,
> +					  "shared rss indirection table has"
> +					  " references");

Please do not use ETOOMANYREFS, the API errno was changed to EBUSY.

>  	if (!__atomic_compare_exchange_n(&shared_rss->refcnt,
> &old_refcnt,
>  					 0, 0, __ATOMIC_ACQUIRE,
>  					 __ATOMIC_RELAXED))


</snip>

> --
> 2.26.2


      parent reply	other threads:[~2020-11-23 20:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-22 14:49 Andrey Vesnovaty
2020-11-22 15:05 ` Slava Ovsiienko
2020-11-22 15:45 ` Raslan Darawsheh
2020-11-23 20:15 ` Tal Shnaiderman [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=CY4PR1201MB2548E9C582CB51B2F0F19FDFA4FC0@CY4PR1201MB2548.namprd12.prod.outlook.com \
    --to=talshn@nvidia.com \
    --cc=andrey.vesnovaty@gmail.com \
    --cc=andreyv@nvidia.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@intel.com \
    --cc=matan@nvidia.com \
    --cc=orika@nvidia.com \
    --cc=shahafs@nvidia.com \
    --cc=thomas@monjalon.net \
    --cc=viacheslavo@nvidia.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).