Thread (13 messages) flat view 13 messages, 2 authors, 2025-08-26

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

From: Bhargava Chenna Marreddy <hidden>
Date: 2025-08-26 16:12:29
Also in: lkml

On Tue, Aug 26, 2025 at 8:31 PM ALOK TIWARI [off-list ref] wrote:


On 8/26/2025 10:14 PM, Bhargava Marreddy wrote:
quoted
+             /* 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

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help