bnxt_en: Add bnxt_set_max_func_irqs().
authorMichael Chan <michael.chan@broadcom.com>
Wed, 7 Dec 2016 05:26:15 +0000 (00:26 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Dec 2016 15:59:25 +0000 (10:59 -0500)
commit33c2657eb688a063ab9cbe11fd4d18c93c7945e1
treed8cef88f7856a3dbad62069b0449306d28e16862
parent5b8e2f61b9df529ca4af057daf7bfb1de348bdf1
bnxt_en: Add bnxt_set_max_func_irqs().

By refactoring existing code into this new function.  The new function
will be used in subsequent patches.

v2: Fixed compile warning when CONFIG_BNXT_SRIOV is not set.

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