Re: [PATCH nf 3/3] netfilter: nft_set_pipapo: remove scratch_aligned pointer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue,  6 Feb 2024 13:23:08 +0100
Florian Westphal <fw@xxxxxxxxx> wrote:

> use ->scratch for both avx2 and the generic implementation.
> 
> After previous change the scratch->map member is always aligned properly
> for AVX2, so we can just use scratch->map in AVX2 too.
> 
> The alignoff delta is stored in the scratchpad so we can reconstruct
> the correct address to free the area again.

That's a nice simplification, thanks.

> Fixes: 7400b063969b ("nft_set_pipapo: Introduce AVX2-based lookup implementation")
> Signed-off-by: Florian Westphal <fw@xxxxxxxxx>

Reviewed-by: Stefano Brivio <sbrivio@xxxxxxxxxx>

-- 
Stefano





[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux