summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorDarren Edamura <darren.edamura@broadcom.com>2018-03-29 09:37:35 -0700
committerThomas Monjalon <thomas@monjalon.net>2018-04-11 23:39:46 +0200
commit6f0841b7701bd7f962d2fa982f6a827760f65907 (patch)
treeb2bbf4e17b90354249d1d37174bdadc3cadd63c8 /kernel
parent7bdccb93078eb0a1bfda34521e3bc3e97d0d0caf (diff)
downloaddpdk-draft-windows-6f0841b7701bd7f962d2fa982f6a827760f65907.zip
dpdk-draft-windows-6f0841b7701bd7f962d2fa982f6a827760f65907.tar.gz
dpdk-draft-windows-6f0841b7701bd7f962d2fa982f6a827760f65907.tar.xz
igb_uio: bind error if PCIe bridge
Probe function should exit immediately if pcie bridge detected Signed-off-by: Darren Edamura <darren.edamura@broadcom.com> Signed-off-by: Rahul Gupta <rahul.gupta@broadcom.com> Signed-off-by: Scott Branden <scott.branden@broadcom.com> Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/linux/igb_uio/igb_uio.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/linux/igb_uio/igb_uio.c b/kernel/linux/igb_uio/igb_uio.c
index 4cae4dd..cbc5ab6 100644
--- a/kernel/linux/igb_uio/igb_uio.c
+++ b/kernel/linux/igb_uio/igb_uio.c
@@ -473,6 +473,11 @@ igbuio_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
void *map_addr;
int err;
+ if (pci_is_bridge(dev)) {
+ dev_warn(&dev->dev, "Ignoring PCI bridge device\n");
+ return -ENODEV;
+ }
+
udev = kzalloc(sizeof(struct rte_uio_pci_dev), GFP_KERNEL);
if (!udev)
return -ENOMEM;