[dpdk-dev] [PATCH v4] lib/table: fix cache alignment issue

David Marchand david.marchand at redhat.com
Wed Oct 14 15:53:21 CEST 2020


On Wed, Jul 22, 2020 at 4:13 AM Ting Xu <ting.xu at intel.com> wrote:
>
> When create softnic hash table with 16 keys, it failed on 32-bit
> environment, because the pointer field in structure rte_bucket_4_16
> is only 32 bits. Add a padding field in 32-bit environment to keep
> the structure to a multiple of 64 bytes. Apply this to 8-byte and
> 32-byte key hash function as well.
>
> Fixes: 8aa327214c ("table: hash")
> Cc: stable at dpdk.org
>
> Signed-off-by: Ting Xu <ting.xu at intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu at intel.com>

Applied, thanks.


-- 
David Marchand



More information about the dev mailing list