mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
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>
This commit is contained in:
parent
d7933ab727
commit
73413ffac3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue