DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] eal_pci: Fix max_vfs missing for none igb_uio driver
@ 2015-02-11 11:10 Michael Qiu
  2015-02-11 12:32 ` David Marchand
  2015-02-11 13:25 ` [dpdk-dev] [PATCH v2] " Michael Qiu
  0 siblings, 2 replies; 11+ messages in thread
From: Michael Qiu @ 2015-02-11 11:10 UTC (permalink / raw)
  To: dev

max_vfs will only be created by igb_uio driver, for other
drivers like vfio or pci_uio_generic, max_vfs will miss.

But sriov_numvfs is not driver related, just get the vf numbers
from that field.

Signed-off-by: Michael Qiu <michael.qiu@intel.com>
---
 lib/librte_eal/linuxapp/eal/eal_pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/librte_eal/linuxapp/eal/eal_pci.c b/lib/librte_eal/linuxapp/eal/eal_pci.c
index 1f43688..3da4b69 100644
--- a/lib/librte_eal/linuxapp/eal/eal_pci.c
+++ b/lib/librte_eal/linuxapp/eal/eal_pci.c
@@ -305,7 +305,7 @@ pci_scan_one(const char *dirname, uint16_t domain, uint8_t bus,
 
 	/* get max_vfs */
 	dev->max_vfs = 0;
-	snprintf(filename, sizeof(filename), "%s/max_vfs", dirname);
+	snprintf(filename, sizeof(filename), "%s/sriov_numvfs", dirname);
 	if (!access(filename, F_OK) &&
 	    eal_parse_sysfs_value(filename, &tmp) == 0) {
 		dev->max_vfs = (uint16_t)tmp;
-- 
1.9.3

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-02-13 13:49 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-11 11:10 [dpdk-dev] [PATCH] eal_pci: Fix max_vfs missing for none igb_uio driver Michael Qiu
2015-02-11 12:32 ` David Marchand
2015-02-11 12:41   ` Qiu, Michael
2015-02-11 13:25 ` [dpdk-dev] [PATCH v2] " Michael Qiu
2015-02-11 13:27   ` Qiu, Michael
2015-02-12  5:50   ` David Marchand
2015-02-13  3:01     ` Qiu, Michael
2015-02-13 13:49     ` Thomas Monjalon
2015-02-12 16:25   ` Thomas Monjalon
2015-02-13  2:56     ` Qiu, Michael
2015-02-13  9:20       ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).