Skip to content

Commit

Permalink
bnx2x: Fix the MSI flags
Browse files Browse the repository at this point in the history
MSI-X should use PCI_MSIX_FLAGS not PCI_MSI_FLAGS.

Signed-off-by: Yijing Wang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
YijingWang authored and davem330 committed Jun 27, 2014
1 parent d7933ab commit 73413ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 73413ff

Please sign in to comment.