]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Fill HW RSS table from the RSS logical indirection table.
authorMichael Chan <michael.chan@broadcom.com>
Wed, 8 Jul 2020 11:53:57 +0000 (07:53 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Jul 2020 22:21:13 +0000 (15:21 -0700)
commit25cfa2dff39f93b6f8e606e972e17b3e43a4bc96
tree7be826aa1dead74d301815170151827e9331952e
parent3c10efc264d0ab45fd6eda3dd63d03c42d6d0585
bnxt_en: Fill HW RSS table from the RSS logical indirection table.

Now that we have the logical table, we can fill the HW RSS table
using the logical table's entries and converting them to the HW
specific format.  Re-initialize the logical table to standard
distribution if the number of RX rings changes during ring reservation.

v4: Use bnxt_get_rxfh_indir_size() to get the RSS table size.

v2: Use ALIGN() to roundup the RSS table size.

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