[Soekris] Re: bridge with access on both interfaces

Poul-Henning Kamp phk at phk.freebsd.dk
Thu Dec 25 10:41:30 PST 2003


In message <20031225102549.A79161 at xorpc.icir.org>, Luigi Rizzo writes:

>If you have shared interrupts, and one of the interfaces is not up, you
>end up doing a lot of useless calls to sis_stop(), which is terribly
>expensive (it even includes a DELAY(1000) call).
>At the very least, one should add a 'stopped' flag so that
>sis_stop() is only called when necessary -- or possibly even
>never at all.
>
>The second (minor) cause of performance loss are the calls
>(not shown above)
>to disable and re-enable the interrupts around the driver. These are
>completely useless, yet cause some extra PCI transactions.

I don't know if it is correct, but at the very least I have thought
the same thoughts when I looked at the driver last, but I didn't
get time to try out the idea...

Somebody with some spare time should look at this...

Poul-Henning

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the freebsd-net mailing list