DPDK patches and discussions
 help / color / mirror / Atom feed
From: Bruce Richardson <bruce.richardson@intel.com>
To: Dhanya Pillai <dhanya.r.pillai@intel.com>
Cc: Anatoly Burakov <anatoly.burakov@intel.com>, <dev@dpdk.org>
Subject: Re: [PATCH] net/ice: fix flow creation failure
Date: Thu, 15 May 2025 10:45:57 +0100	[thread overview]
Message-ID: <aCW31QjixY20ns-_@bricha3-mobl1.ger.corp.intel.com> (raw)
In-Reply-To: <20250514181530.5385-1-dhanya.r.pillai@intel.com>

On Wed, May 14, 2025 at 06:15:26PM +0000, Dhanya Pillai wrote:
> In non-pipeline mode, priority is ignored, a flow rule can be created
> as a flow director rule or a switch rule depends on its pattern/action.
> Hence removing the priority field check from ice_fdir_parse which is
> causing valid flow creation to return failure.
> 
> Signed-off-by: Dhanya Pillai <dhanya.r.pillai@intel.com>
> ---
>  drivers/net/intel/ice/ice_fdir_filter.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/net/intel/ice/ice_fdir_filter.c b/drivers/net/intel/ice/ice_fdir_filter.c
> index 2ff0090aca..d71d14b013 100644
> --- a/drivers/net/intel/ice/ice_fdir_filter.c
> +++ b/drivers/net/intel/ice/ice_fdir_filter.c
> @@ -2456,13 +2456,12 @@ ice_fdir_parse(struct ice_adapter *ad,
>  	uint64_t input_set;
>  	bool raw = false;
>  	int ret;
> +	(void)priority;
>  

Rather than casting to void, you can use the RTE_SET_USED macro (which is
just an alias for casting to void) to achieve the same thing with better
readability as to the reason for the cast.

Perhaps an even better solution, though, is to just put "__rte_unused" on
the definition of the "priority" parameter, as:
 "uint32_t priority __rte_unused,"

/Bruce

      reply	other threads:[~2025-05-15  9:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-14 18:15 Dhanya Pillai
2025-05-15  9:45 ` Bruce Richardson [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=aCW31QjixY20ns-_@bricha3-mobl1.ger.corp.intel.com \
    --to=bruce.richardson@intel.com \
    --cc=anatoly.burakov@intel.com \
    --cc=dev@dpdk.org \
    --cc=dhanya.r.pillai@intel.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).