Re: [v4, net-next 3/9] bng_en: Introduce VNIC

From: Bhargava Chenna Marreddy
Date: Tue Aug 26 2025 - 12:15:02 EST


On Tue, Aug 26, 2025 at 8:31 PM ALOK TIWARI <alok.a.tiwari@xxxxxxxxxx> wrote:
>
>
>
> On 8/26/2025 10:14 PM, Bhargava Marreddy wrote:
> > + /* Allocate rss table and hash key */
> > + size = L1_CACHE_ALIGN(HW_HASH_INDEX_SIZE * sizeof(u16));
> > + size = L1_CACHE_ALIGN(BNGE_MAX_RSS_TABLE_SIZE);
> > +
> > + vnic->rss_table_size = size + HW_HASH_KEY_SIZE;
> > + vnic->rss_table = dma_alloc_coherent(bd->dev,
> > + vnic->rss_table_size,
> > + &vnic->rss_table_dma_addr,
> > + GFP_KERNEL);
>
> @size, first calculation is overwritten by the second.
Ack. I will fix it in v5.
>
> Thanks,
> Alok

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature