Messages in this thread | | | Date | Thu, 15 May 2008 13:39:54 -0700 | From | "Kok, Auke" <> | Subject | Re: [PATCH] drivers/net: remove network drivers' last few uses of IRQF_SAMPLE_RANDOM |
| |
Jeff Garzik wrote: > Chris Peterson wrote: >> Please correct me if I'm wrong, but this thread's conclusions seem to be: >> >> * network interrupts are an inappropriate source of entropy (see my >> patch) >> * headless servers need entropy, but should seek a better solution, >> such as EGD, hardware RNG, or other kernel entropy sources (but that >> is a separate task) >> * TPM RNG is a separate task and, if implemented, should be in >> drivers/char/hw_random/ > > That's my own opinion, yes. But not necessarily a consensus opinion :)
I agree it's by far the _best_ solution.
I think that some embedded devices that do not have any RNG hardware should be able to turn off NAPI/irq mitigation and possibly fall back on IRQF_SA_RANDOM. It's not as good as the above solution at all, but may be sufficient for headless embedded devices that are dying for some entropy.
of course, with most of the network drivers being NAPI enabled by default this pretty much is not realistic (as Jeff G. pointed out). Unless someone writes an (e.g.) ethtool parameter to turn NAPI on/off :)
Auke
> > Jeff > >
| |