Thread (26 messages) 26 messages, 3 authors, 2018-04-13

Re: [PATCH 4/4] igb_uio: bind error if pcie bridge

From: Ferruh Yigit <hidden>
Date: 2018-03-26 17:25:00

On 3/21/2018 6:06 PM, Ajit Khaparde wrote:
quoted hunk ↗ jump to hunk
From: Darren Edamura <redacted>

Probe function should exit immediately if pcie bridge detected

Signed-off-by: Darren Edamura <redacted>
Signed-off-by: Rahul Gupta <redacted>
Signed-off-by: Scott Branden <scott.branden@broadcom.com>
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
---
 lib/librte_eal/linuxapp/igb_uio/igb_uio.c | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c
index 4cae4dd27..3fabbfc4d 100644
--- a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c
+++ b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c
@@ -473,6 +473,9 @@ igbuio_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
 	void *map_addr;
 	int err;
 
+	if (pci_is_bridge(dev))
+		return -ENODEV;
What do you think printing a log here?
+
 	udev = kzalloc(sizeof(struct rte_uio_pci_dev), GFP_KERNEL);
 	if (!udev)
 		return -ENOMEM;
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help