OSDN Git Service

bnxt_en: Set up the chip specific RSS table size.
authorMichael Chan <michael.chan@broadcom.com>
Wed, 8 Jul 2020 11:53:53 +0000 (07:53 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Jul 2020 22:21:13 +0000 (15:21 -0700)
commit34370d2435f9853ac882056faa98f3263c537c36
tree4787af0019085cf75c0fb184f145ca628ba53e24
parente80a07b244dd6726094da73d58537c131cc0b1a6
bnxt_en: Set up the chip specific RSS table size.

Currently, we allocate one page for the hardware DMA RSS indirection
table.  While the size is currently big enough for all chips, future
chip variations may support bigger sizes, so it is better to calculate
and store the chip specific size and allocate accordingly.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h