On Mon, 04 Dec 2000 07:29:10 +1100,
Keith Owens <kaos@xxxxxxxxxx> wrote:
>On Sun, 3 Dec 2000 07:43:01 -0600 (CST),
>Jeff Garzik <jgarzik@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>>On Sun, 3 Dec 2000, Keith Owens wrote:
>>> If you go down this path, please add a standard performance monitoring
>>> method to query the current capacity of an interface.
>>Well, ethtool interface supports reporting media selection as well as
>>[re]setting media setting. I dunno if we could report what capacity
>>an interface is handling without adding code to hot paths...
>
>You calculate the capacity during ifconfig up or during speed change.
>That is not on the hot path.
Replying to my own mail, I just realised it was ambiguous. By "current
capacity" I mean the maximum capacity of the link based on the current
settings. We can get capacity _used_ from the byte counters, we do not
have a figure for maximum capacity.
|