public inbox for dev@dpdk.org
 help / color / mirror / Atom feed
From: Bruce Richardson <bruce.richardson@intel.com>
To: "Medvedkin, Vladimir" <vladimir.medvedkin@intel.com>
Cc: <dev@dpdk.org>
Subject: Re: [PATCH] net/iavf: explicitly pass flags param to Tx context fns
Date: Fri, 20 Feb 2026 12:13:41 +0000	[thread overview]
Message-ID: <aZhP9Y9ZiQaYFDf6@bricha3-mobl1.ger.corp.intel.com> (raw)
In-Reply-To: <f7968228-7e26-46cf-8c91-01d8a007bb41@intel.com>

On Thu, Feb 19, 2026 at 04:25:52PM +0000, Medvedkin, Vladimir wrote:
> 
> On 2/19/2026 4:07 PM, Bruce Richardson wrote:
> > The get_context_desc() function takes as an explicit parameter the
> > ol_flags from the packet, which saves re-reading them from the mbuf. The
> > subfunctions for creating the segmentation part of the descriptor or the
> > ipsec handling do not take this parameter though, and then re-read the
> > ol_flags from the mbuf. While essentially harmless, this does confuse
> > static analysis tools like converity which does not realise that
> > ol_flags and m->ol_flags are the same, leading to false positives
> > like [1].
> > 
> > Fix this and avoid coverity false positives by just passing the local
> > ol_flags variable so all code uses the same flags source and avoid
> > unnecessary mbuf reads.
> > 
> > [1] Coverity Issue: 501497
> > 
> > Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> > ---
> > NOTE: Not flagging this as a bugfix since there is no actual bug here,
> > just a code improvement to try and prevent false positives.
> > ---
> >   drivers/net/intel/iavf/iavf_rxtx.c | 20 ++++++++++----------
> >   1 file changed, 10 insertions(+), 10 deletions(-)
> > 
> Acked-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>

Applied to dpdk-next-net-intel.

/Bruce

      reply	other threads:[~2026-02-20 12:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-19 16:07 [PATCH] net/iavf: explicitly pass flags param to Tx context fns Bruce Richardson
2026-02-19 16:25 ` Medvedkin, Vladimir
2026-02-20 12:13   ` 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=aZhP9Y9ZiQaYFDf6@bricha3-mobl1.ger.corp.intel.com \
    --to=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=vladimir.medvedkin@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