Skip to content

Commit d2746fe

Browse files
bjorn-helgaasdavem330
authored andcommitted
bnx2x: Use pci_ari_enabled() instead of local copy
Use pci_ari_enabled() from the PCI core instead of the identical local copy bnx2x_ari_enabled(). No functional change intended. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 399e351 commit d2746fe

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,11 +1074,6 @@ static void bnx2x_vf_set_bars(struct bnx2x *bp, struct bnx2x_virtf *vf)
10741074
}
10751075
}
10761076

1077-
static int bnx2x_ari_enabled(struct pci_dev *dev)
1078-
{
1079-
return dev->bus->self && dev->bus->self->ari_enabled;
1080-
}
1081-
10821077
static int
10831078
bnx2x_get_vf_igu_cam_info(struct bnx2x *bp)
10841079
{
@@ -1212,7 +1207,7 @@ int bnx2x_iov_init_one(struct bnx2x *bp, int int_mode_param,
12121207

12131208
err = -EIO;
12141209
/* verify ari is enabled */
1215-
if (!bnx2x_ari_enabled(bp->pdev)) {
1210+
if (!pci_ari_enabled(bp->pdev->bus)) {
12161211
BNX2X_ERR("ARI not supported (check pci bridge ARI forwarding), SRIOV can not be enabled\n");
12171212
return 0;
12181213
}

0 commit comments

Comments
 (0)