Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Nov 1996 12:54:38 +0500 (ESK)
From:      "Serge A. Babkin" <babkin@hq.icb.chel.su>
To:        mcgovern@spoon.beta.com (Brian J. McGovern)
Cc:        questions@freebsd.org, hackers@freebsd.org
Subject:   Re: dgb driver with interrupts
Message-ID:  <199611250754.MAA12915@hq.icb.chel.su>
In-Reply-To: <199611240132.UAA13563@spoon.beta.com> from "Brian J. McGovern" at Nov 23, 96 08:32:22 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> I was looking over the dgb.c (driver file), and noticed that there is some
> skeleton work for using the driver with interrupts. However, its been
> effectively commented out with the #ifdef 0. Is it possible to switch this
> driver to use interrupts, instead of polled io? And if so, should I expect
> it work/what are the changes?

No, you can't do it by enabling this part of driver. You anned to add
the interrupt support in other parts of driver too.

> I'm curious, because I'd like to use 3-4 of these boards in a PC to do
> some SLIP and PPP testing, and would be looking for optimal throughput.

I think the polling mode may give even better throughput than
the interrupt mode under heavy load. The reason is that it takes
very short time to check if some port on the cards needs serviceing.
But it saves the interrupt overhead. Really the interrupt mode
can only improve the answer times. The other problem with polling
is that it runs at clock priority and disables other interrupts for
this time so interrupts can help here.

-SB



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611250754.MAA12915>