> That was not the nature of my code-review comment. The initial Brussels
> code, before that code-review, used link names (not MAC names). It is
> not sensible to pass link names down to the kernel via an ioctl
> interface, as the kernel has to translate that to either a datalink_id_t
> or a MAC name in order to use access the GLDv3 kernel objects, both of
> which would require a door upcall to userland to get.
I see. Getting back to this case, I am using MAC names, since that's
what mac_init_prop() can easily derive from {devinfo,instance} and use
internally to associate properties with. The userland (dlmgmtd,
libdladm) should have no problem finding properties based on MAC name.
So MAC passes the name to dlmgmtd via upcall and dlmgmtd bounces it
right back to MAC (via DLD) with some properties attached to it. Feels
pretty organic to me.
-Artem