On 12/05/2012 02:36 PM, David Miller wrote: > From: Ben Greear <[email protected]> > Date: Wed, 05 Dec 2012 13:35:01 -0800 > >> It seems the only way to get the current pci-e bus speed & width >> in ixgbe (and probably many other NICs) is by parsing output >> of lspci -vvv. >> >> I'd personally find it easier if this info were available via >> ethtool API. > > You could just as easily have ethtool determine the PCI device > location (using existing facilities) and fetch the PCI-e info from the > PCI sysfs files.
Any particular sysfs file? I've been grubbing around in there and I don't see anything that specifies bus width or speed.. Maybe it's some binary blob that needs decoding? Thanks, Ben -- Ben Greear <[email protected]> Candela Technologies Inc http://www.candelatech.com ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ E1000-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/e1000-devel To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired
