public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* network interface to driver and pci slot mapping
@ 2004-11-11 21:28 Anthony Samsung
  2004-11-11 21:48 ` linux-os
  2004-11-12  0:56 ` Greg KH
  0 siblings, 2 replies; 7+ messages in thread
From: Anthony Samsung @ 2004-11-11 21:28 UTC (permalink / raw)
  To: linux-kernel

Given an interface name (like eth0), how do I determine:
The name of the driver (module) for this interface.
The PCI address for this interface, if relevant.

?

I need something that works non-destructively on a live system, that
isn't broken by nameif, and has a strong chance of producing a correct
result. In particular, parsing syslog is out. There's no consistency
in the format of messages and there's no guarantee the logs from
bootup will still be around. And the interface may have been renamed
since then.

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: network interface to driver and pci slot mapping
@ 2004-11-11 21:49 Jean Tourrilhes
  0 siblings, 0 replies; 7+ messages in thread
From: Jean Tourrilhes @ 2004-11-11 21:49 UTC (permalink / raw)
  To: Linux kernel mailing list, Anthony Samsung

Anthony Samsung wrote :
> 
> Given an interface name (like eth0), how do I determine:
> The name of the driver (module) for this interface.
> The PCI address for this interface, if relevant.
> 
> ?

	ethtool -i. Unfortunately, not yet implemented in all driver,
but Jeff is on the case.
	There might also be a sysfs way to do it, but it probably
involve lot's a grep or similar magic.

> I need something that works non-destructively on a live system, that
> isn't broken by nameif, and has a strong chance of producing a correct
> result. In particular, parsing syslog is out. There's no consistency
> in the format of messages and there's no guarantee the logs from
> bootup will still be around. And the interface may have been renamed
> since then.

	ifrename allow you to rename interfaces based on both driver
name and PCI address, so another option is to make sure interface
names are consistent and meaningful.

	Have fun...

	Jean

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

end of thread, other threads:[~2004-11-12  3:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-11 21:28 network interface to driver and pci slot mapping Anthony Samsung
2004-11-11 21:48 ` linux-os
2004-11-11 22:34   ` Måns Rullgård
2004-11-11 22:51     ` Jeff Garzik
2004-11-12  0:56 ` Greg KH
2004-11-12  3:43   ` Daniel Stekloff
  -- strict thread matches above, loose matches on Subject: below --
2004-11-11 21:49 Jean Tourrilhes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox