From: Florian Westphal <fw@strlen.de>
To: Stefano Brivio <sbrivio@redhat.com>
Cc: Florian Westphal <fw@strlen.de>, netfilter-devel@vger.kernel.org
Subject: Re: [PATCH v2 nf 1/3] nft_set_pipapo: add avx register usage tracking for NET_DEBUG builds
Date: Fri, 4 Apr 2025 16:02:44 +0200 [thread overview]
Message-ID: <20250404140244.GA4931@breakpoint.cc> (raw)
In-Reply-To: <20250404155437.58ff9b26@elisabeth>
Stefano Brivio <sbrivio@redhat.com> wrote:
> > +#ifdef CONFIG_DEBUG_NET
> > +/* YYM15 is used as an always-0-register, see nft_pipapo_avx2_prepare */
>
> It's really YMM (or ymm), with two m's and one y. :) That's what I was
> referring to in my previous comment.
Grr, my brain autocorrects this for some reason :-/
I'll fix it in v3 on Monday.
> > +#define NFT_PIPAPO_AVX2_DEBUG_MAP \
> > + struct nft_pipapo_debug_regmap __pipapo_debug_regmap = { \
> > + .tmp = BIT(15), \
> > + }
>
> This mixes spaces and tabs (I guess from copy and paste).
Thanks, will fix it too.
> > +#ifdef CONFIG_DEBUG_NET
> > + bool holds_and_result = BIT(reg) & r->tmp;
> > +
> > + NFT_PIPAPO_WARN(!holds_and_result, reg, r, line, "unused");
>
> This is indented with spaces.
Indeed, will fix.
> > @@ -687,6 +871,7 @@ static int nft_pipapo_avx2_lookup_8b_1(unsigned long *map, unsigned long *fill,
> >
> > if (first) {
> > NFT_PIPAPO_AVX2_BUCKET_LOAD8(2, lt, 0, pkt[0], bsize);
> > + nft_pipapo_avx2_force_tmp(2, &__pipapo_debug_regmap);
>
> Right, that's because we have an 8-bit bucket and we're comparing 8
> bits, so in this case we don't need to AND any value in the first
> iteration.
Thanks for confirming.
next prev parent reply other threads:[~2025-04-04 14:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-04 13:32 [PATCH v2 nf 0/3] nft_set_pipapo: fix incorrect avx2 match of 5th field octet Florian Westphal
2025-04-04 13:32 ` [PATCH v2 nf 1/3] nft_set_pipapo: add avx register usage tracking for NET_DEBUG builds Florian Westphal
2025-04-04 13:54 ` Stefano Brivio
2025-04-04 14:02 ` Florian Westphal [this message]
2025-04-04 13:32 ` [PATCH v2 nf 2/3] nft_set_pipapo: fix incorrect avx2 match of 5th field octet Florian Westphal
2025-04-04 13:32 ` [PATCH v2 nf 3/3] selftests: netfilter: add test case for recent mismatch bug Florian Westphal
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=20250404140244.GA4931@breakpoint.cc \
--to=fw@strlen.de \
--cc=netfilter-devel@vger.kernel.org \
--cc=sbrivio@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.