[brussels-dev] Brussels framework enhancements to get/set defaults [PSARC/2008/175 FastTrack timeout 03/11/2008]
sowmini.varadhan at sun.com
sowmini.varadhan at sun.com
Wed Mar 5 12:01:41 PST 2008
On (03/05/08 11:43), Garrett D'Amore wrote:
> 1) DLIOCRESETPROP or something similar, that has the same semantics as
> originally proposed in this case
>
> 2) Just let the ioctl consumer handle this by doing an explicit call to
> DLIOCGETPROP followed by DLIOCSETPROP with the returned value (both
> using the DLD_DEFAULT flag).
>
> I think I lean towards number 2 -- I'm not sure there is a whole lot of
> merit in expressing the "reset-to-default" as a single ioctl, but maybe
> the project team has reasons for wanting such behavior.
At the risk of getting into implementation details, the current
"dladm reset-linkprop" is implemented as a DLIOCSETPROP; the prototype
of PSARC 2008/175 modifies that path to do a "DLIOCSETPROP with the
DLD_DEFAULT" flag, and no data provided (pr_valsize is 0, implying
"use the existing system default value").
If we do want to modify the value of the default itself, we could
use DLIOCSETPROP, with DLD_DEFAULT flag, and non-zero pr_valsize
to indicate "use <this> as the default value".
--Sowmini
More information about the brussels-dev
mailing list