On (06/18/07 11:35), Darren.Reed at Sun.COM wrote:
> A link speed of "1000" is meaningless, plus it does not seem
> to scale down to modem speed. Either report the full number
> (10000000, 10000000000) or abbreviate it meaingfullly:
> 10M, 10G, etc - the default output from "zfs list" is an
> example of how this can be done:
right, that was just tentative output. It should be abbreviated by the
appropriate {M,G,..} clarifications as you suggest.
> As for what to display for "possible", I don't think that
> this is meaningful here. I would rather see the default
> output just be "LINK", "PROPERTY", "VALUE" and "DEFAULT".
unfortunately we already follow the above convention (printing
POSSIBLE) for wifi links.. so unless we want to break the trend, we
are stuck with reporting possible. I personally also feel ther eis some
use in printing possible, as this gives a hint of input range.
> Additionally, what are you reporting at the MTU here?
> The network layer MTU or the link layer MTU?
The mtu reported here is the same as that reported in 'ifconfig -a',
i.e., the link-layer mtu.
> How does dladm see itself working with NICs that have
> pluggable MAUs? For example, if I have a NIC that has
> a fibre GBIC in it for the MAU but I replace that GBIC
> with a copper MAU, how would dladm cope with that?
> Do I need to plumb/unplumb for this to be recognised?
> Is the type of media also another useful trait here?
> (This was perhaps more relevant in the time of 10M,
> when there was 10Base2, 10BaseT and 10Base5 connectors
> all on the same NIC, but can still be relevant today
> for identifying whether fibre or copper is in use.)
I think you are talking about a different type of property here, rather
than something that dladm itself should have to deal with. Many ndd properties
(see, for example bge_ndd.c in nevada) have different constraints based
on the parameters you mention above. Essentially, the need for a replumb
is directly related to how the driver itself can handle changes
to the property.
> I'd suggest having a command line option specific to
> returning extended output, so you can have:
> # dladm describe link_speed bge1
> capabilities: 10M, 100M, 1G
> possible: 10M, 100M
> man page: bge(7)
> blah blah blah blah...
>
hm. So you are suggesting that we should have a new command line option.
I have no preferences myself- I'd like to hear other thoughts..
--Sowmini