]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnxt_en: Enable MSIX early in bnxt_init_one().
authorMichael Chan <michael.chan@broadcom.com>
Wed, 7 Dec 2016 05:26:16 +0000 (00:26 -0500)
committerDhaval Giani <dhaval.giani@oracle.com>
Fri, 20 Jan 2017 18:09:55 +0000 (13:09 -0500)
commitb740a5154bf9079e25ccb3f1cd3dd72de979b3bd
tree312ae1b75265c462db79402a71a6c0711e418da5
parentb79ce08101e07d651ed2dd4583f6a2ce3e79f9b8
bnxt_en: Enable MSIX early in bnxt_init_one().

Orabug: 24567991

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>
(cherry picked from commit 7809592d3e2ec79cd1feab0cc96169d22f6ffee1)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h