]> 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)
commit6a9980f5aab3c3ca114a4a916ce7624ab35a9573
tree7be826aa1dead74d301815170151827e9331952e
parent6b81e86f788ef704b175fc3f7cac7c18bf47e7fb
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