On Fri, 2010-10-01 at 16:04 -0700, Shreyas Bhatewara wrote: > Hello Folks, > > I have a NIC (Network) driver in which I am trying to add jumbo frame > support. What callback should be registered in the NIC driver to be able to > get a call when user changes MTU on the interface ? > > Eg: if someone calls the following - > ifconfig em0 mtu 9000 > > Where will the control come in the driver ? I tried ioctl with SIOCSIFMTU, > but it dows not get called. I tried defining propset in mc_callbacks but it > is not available in Solaris 10 u6. I just need an entry point in driver when > MTU is changed. > > Any help is appreciated. > > Thanks.
There is no standard way to do this on Solaris 10. (The semi standard way is to use the undocumented NDIOCTL interface for ndd. I did this for an older version of "afe" at one point.) One hackish way to do it for S10 is to use driver.conf properties. This was pretty common with drivers on S10. On OpenSolaris/Solaris Next/illumos you would see the setprop entry point get called. - Garrett _______________________________________________ networking-discuss mailing list networking-discuss@opensolaris.org