diff options
author | Michael Chan <michael.chan@broadcom.com> | 2016-12-07 08:26:16 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-07 18:59:25 +0300 |
commit | 7809592d3e2ec79cd1feab0cc96169d22f6ffee1 (patch) | |
tree | 8b5429f95bb62dea8fc7e34c9db0541f1a56a0da /drivers/net/ethernet/microchip | |
parent | 33c2657eb688a063ab9cbe11fd4d18c93c7945e1 (diff) | |
download | linux-7809592d3e2ec79cd1feab0cc96169d22f6ffee1.tar.xz |
bnxt_en: Enable MSIX early in bnxt_init_one().
To better support the new RDMA driver, we need to move pci_enable_msix()
from bnxt_open() to bnxt_init_one(). This way, MSIX vectors are available
to the RDMA driver whether the network device is up or down.
Part of the existing bnxt_setup_int_mode() function is now refactored into
a new bnxt_init_int_mode(). bnxt_init_int_mode() is called during
bnxt_init_one() to enable MSIX. The remaining logic in
bnxt_setup_int_mode() to map the IRQs to the completion rings is called
during bnxt_open().
v2: Fixed compile warning when CONFIG_BNXT_SRIOV is not set.
Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/microchip')
0 files changed, 0 insertions, 0 deletions