diff options
author | Yijing Wang <wangyijing@huawei.com> | 2014-06-25 08:22:56 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-27 04:36:49 +0400 |
commit | 73413ffac3b713231dac466bca216f970042c5e5 (patch) | |
tree | cdad951ffffcaa3c18ae68095657df5303abb66f /drivers/net | |
parent | d7933ab727ed035bdf420d7381b831ba959cecc5 (diff) | |
download | linux-73413ffac3b713231dac466bca216f970042c5e5.tar.xz |
bnx2x: Fix the MSI flags
MSI-X should use PCI_MSIX_FLAGS not PCI_MSI_FLAGS.
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c index 2887034523e0..6a8b1453a1b9 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c @@ -12937,7 +12937,7 @@ static int bnx2x_get_num_non_def_sbs(struct pci_dev *pdev, int cnic_cnt) * without the default SB. * For VFs there is no default SB, then we return (index+1). */ - pci_read_config_word(pdev, pdev->msix_cap + PCI_MSI_FLAGS, &control); + pci_read_config_word(pdev, pdev->msix_cap + PCI_MSIX_FLAGS, &control); index = control & PCI_MSIX_FLAGS_QSIZE; |