DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Burakov, Anatoly" <anatoly.burakov@intel.com>
To: Omar Munchaev <omarmunchaev@gmail.com>,
	Bruce Richardson <bruce.richardson@intel.com>
Cc: <dev@dpdk.org>
Subject: Re: [PATCH] net/ice cast rx_flex_ring to proper type
Date: Fri, 25 Sep 2026 14:19:59 +0200	[thread overview]
Message-ID: <2c9d12fe-9663-48ba-9daa-4c805e4ea184@intel.com> (raw)
In-Reply-To: <20260924175127.375701-1-omarmunchaev@gmail.com>

On 9/24/2026 7:51 PM, Omar Munchaev wrote:
> its look like, that some parts of fdir code was not updated with new
> generic ci_rx_flex_desc. This patch fixes it
> Also im found out more verbose logs for ice_check_fdir_programming_status
> in linux driver implementation in function ice_vf_verify_rx_desc:
> https://github.com/intel/ethernet-linux-ice/blob/e4a92b1e84e084bc599580d065020986e501b8ad/src/ice_virtchnl_fdir.c#L3513
> 
> Signed-off-by: Omar Munchaev <omarmunchaev@gmail.com>
> ---

Hi Omar,

This looks like two commits jammed together into one. I would split up 
the ci_rx_flex_desc changes from the rest of the fix (the logging 
changes are technically separate but IMO they can go in with the macro 
changes). The flex desc changes in particular would probably also 
require a Fixes: tag and a Cc: stable if the source commit is old enough 
to be in stable releases.

For the macro changes, DPDK is a BSD-3 clause licensed project, so 
technically we cannot use kernel code as it's GPL-licensed. Please do 
not refer to kernel implementation directly.

I do however think it's worth rewriting the Rx status etc code with 
FIELD_GET macros the way you did as that makes the code a lot clearer, 
and better detailed logging is certainly appreciated.

This patch would also benefit from better commit message. Suggested 
rewording:

[patch 1: flex descriptor changes]

net/ice: fix missing type casts for flex descriptors

When ice driver was ported to use the common Rx descriptor format, some 
type casts were missed. Add them.

Fixes: <sha of commit that introduced the issue>
Cc: stable@dpdk.org [possibly - double check if this is needed]

---

[patch 2: macro/logging changes]

net/ice: use macros to get field values

Currently, in ice_check_fdir_programming_status, descriptor fields are 
accessed through direct bit mask manipulation and shifts. The ice driver 
has macros for this, so rewrite the function to use FIELD_GET macros 
instead.

-- 
Thanks,
Anatoly

      reply	other threads:[~2026-09-25 12:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-24 17:51 [PATCH] net/ice cast rx_flex_ring to proper type Omar Munchaev
2026-09-25 12:19 ` Burakov, Anatoly [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=2c9d12fe-9663-48ba-9daa-4c805e4ea184@intel.com \
    --to=anatoly.burakov@intel.com \
    --cc=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=omarmunchaev@gmail.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