Re: [PATCH net-next 2/8] bnxt_en: Add logical RSS indirection table structure.

2020-06-29 Thread Jakub Kicinski
On Mon, 29 Jun 2020 02:34:18 -0400 Michael Chan wrote: > + bp->rss_indir_tbl_entries = entries; > + bp->rss_indir_tbl = kcalloc(entries, sizeof(*bp->rss_indir_tbl), > + GFP_KERNEL); nit: kmalloc_array() ? I think you init all elements below. > + if (!bp

[PATCH net-next 2/8] bnxt_en: Add logical RSS indirection table structure.

2020-06-29 Thread Michael Chan
The driver currently does not keep track of the logical RSS indirection table. The hardware RSS table is set up with standard default ring distribution when initializing the chip. This makes it difficult to support user sepcified indirection table entries. As a first step, add the logical table