Joost Mulders wrote:
>>> I think we need a friendly UI for pause setting, while keeping the
>>> ieee802.3 tunable as many as
>>> possible. I wonder some users may really tweak these value, isn't it?
>>>
>
> The current goal for brussels is to unfiy link administration for
> NIC's. If you want to *simplify* administration, my first bet would be
> to allow string value's for properties in dladm.
>
> Currently, most parameters take a value of 0 or 1 because passing
> strings using ndd is dificult (or impossible?). With string value's
> one could say meaningful statements like
> duplex=full
> flowcontrol=send,accept
> etc. This would allow collapsing of a lot of properties.
Not true at all. ndd can accept strings just fine. It's just up to the
driver to parse them. In fact... the number is passed to the driver as
an ASCII terminated string, and the driver has to convert it to numeric
form!
Strings have other problems (localization issues) though. You can't
really provide localization for strings that reside in the kernel...
Of course, there is no reason that numbers can't be used in the kernel,
and let dladm provide some more readable translation...
>
> If the value must be entered numerical I would stick with 1 or 0 (ON,
> OFF) because it's difficult to remember the meaning of '5' in a link
> property context :-)
Heh. There are other cases where the numbers are "confusing". See
xcvr_id for an example. :-)
-- Garrett
>
> Regards, Joost