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)
commitf9f6a3fbb5eb89e738ebdf16ac56437177537b28
tree33351be2caa8632ccc58c531488124d75215be1b
parent1667cbf6a4ebe0901bd93ef0d6defd35006fd2be
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