]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Add helper function to return the number of RSS contexts.
authorMichael Chan <michael.chan@broadcom.com>
Wed, 8 Jul 2020 11:53:56 +0000 (07:53 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Jul 2020 22:21:13 +0000 (15:21 -0700)
commit3c10efc264d0ab45fd6eda3dd63d03c42d6d0585
tree33351be2caa8632ccc58c531488124d75215be1b
parent64d8be92288fd7f8573b29daa4fc8c8ffa443578
bnxt_en: Add helper function to return the number of RSS contexts.

On some chips, this varies based on the number of RX rings.  Add this
helper function and refactor the existing code to use it.

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