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

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

From: ALOK TIWARI <hidden>
Date: 2025-08-26 15:01:25
Also in: lkml


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.

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