From: Luca Boccassi <bluca@debian.org>
To: "Ananyev, Konstantin" <konstantin.ananyev@intel.com>,
Thomas Monjalon <thomas@monjalon.net>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH] acl: fix invalid results for rule with zero priority
Date: Wed, 03 Oct 2018 17:18:08 +0100 [thread overview]
Message-ID: <1538583488.8721.0.camel@debian.org> (raw)
In-Reply-To: <2601191342CEEE43887BDE71AB977258EA95B16D@irsmsx105.ger.corp.intel.com>
On Tue, 2018-09-25 at 14:34 +0000, Ananyev, Konstantin wrote:
> Hi Luca,
>
> >
> > On Sun, 2018-09-16 at 11:56 +0200, Thomas Monjalon wrote:
> > > 24/08/2018 18:47, Konstantin Ananyev:
> > > > If user specifies priority=0 for some of ACL rules
> > > > that can cause rte_acl_classify to return wrong results.
> > > > The reason is that priority zero is used internally for no-
> > > > match
> > > > nodes.
> > > > See more details at: https://bugs.dpdk.org/show_bug.cgi?id=79.
> > > > The simplest way to overcome the issue is just not allow zero
> > > > to be a valid priority for the rule.
> > > >
> > > > Fixes: dc276b5780c2 ("acl: new library")
> > > >
> > > > Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com
> > > > >
> > >
> > > Cc: stable@dpdk.org
> > >
> > > Applied with below title, thanks
> > > acl: forbid rule with priority zero
> >
> > Hi,
> >
> > This patch is marked for stable, but it changes an enum in a public
> > header
>
> Yes it does.
>
> > so it looks like an ABI breakage? Have I got it wrong?
>
> Strictly speaking - yes, but priority=0 is invalid value with current
> implementation.
> I don't think someone uses it - as in that case acl library simply
> wouldn't work
> correctly.
> Konstantin
Ok, I'll include this patch in 16.11.9 then, thanks for clarifying.
--
Kind regards,
Luca Boccassi
prev parent reply other threads:[~2018-10-03 16:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-24 16:47 Konstantin Ananyev
2018-09-16 9:56 ` Thomas Monjalon
2018-09-25 12:22 ` Luca Boccassi
2018-09-25 12:57 ` Thomas Monjalon
2018-09-25 14:34 ` Ananyev, Konstantin
2018-10-03 16:18 ` Luca Boccassi [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=1538583488.8721.0.camel@debian.org \
--to=bluca@debian.org \
--cc=dev@dpdk.org \
--cc=konstantin.ananyev@intel.com \
--cc=thomas@monjalon.net \
/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).