* SIOCGIFMAP silently broken?
@ 2005-01-31 14:57 Martin Wilck
2005-01-31 19:46 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: Martin Wilck @ 2005-01-31 14:57 UTC (permalink / raw)
To: linux-kernel, netdev
Hi,
we are using a server management software that uses the irq information
returned by the SIOCGIFMAP ioctl to correlate network interfaces with
LAN hardware.
The code for SIOCGIFMAP if net/core/dev.c simply returns netdev->irq
which isn't set by most actual LAN drivers any more, and it seems to
be common opinion that setting netdev->irq is either optional or even
wrong (http://www.ussg.iu.edu/hypermail/linux/kernel/0407.3/1292.html).
Consequently, the SIOCGIFMAP ioctl reports bogus IRQ values for most
hardware; it is therefore unreliable.
Would it be possible to fix the ioctl such that it returns the correct
irq value, e.g. be using the irq field of the associated struct pci_dev?
If not, I'd consider it better to deprecate netdev->irq officially and
always return bogus so that people stop using it.
In both cases, the netdev->irq field isn't used anymore; perhaps it
should be officially deprecated and/or removed?
Regards
Martin
--
Martin Wilck Phone: +49 5251 8 15113
Fujitsu Siemens Computers Fax: +49 5251 8 20409
Heinz-Nixdorf-Ring 1 mailto:Martin.Wilck@Fujitsu-Siemens.com
D-33106 Paderborn http://www.fujitsu-siemens.com/primergy
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: SIOCGIFMAP silently broken?
2005-01-31 14:57 SIOCGIFMAP silently broken? Martin Wilck
@ 2005-01-31 19:46 ` David S. Miller
0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2005-01-31 19:46 UTC (permalink / raw)
To: Martin Wilck; +Cc: linux-kernel, netdev
On Mon, 31 Jan 2005 15:57:09 +0100
Martin Wilck <martin.wilck@fujitsu-siemens.com> wrote:
> In both cases, the netdev->irq field isn't used anymore; perhaps it
> should be officially deprecated and/or removed?
It is used for explicitly setting the IRQ value on hardware
where doing so automatically via probing may not be %100
reliable, such as on ISA.
Another way to do what you're trying to do is to look for
the string name of the device you are interested in within
the output of /proc/interrupts.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-01-31 19:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-31 14:57 SIOCGIFMAP silently broken? Martin Wilck
2005-01-31 19:46 ` David S. Miller
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).