On 03/14/10 04:25 PM, Tom Chen wrote:
Hello,
When I run SunVTS to do network loopback test with my GLDv3 nic driver, I find that it
can not be "probed" and not included in the network device option. But mother
board nic driver, igb, is in the list. I am wondering why? I am testing on SunFire 4270
and OS is nv129.
I use dtrace to debug a little bit. I see the igb_m_ioctl, igb_loopback_ioctl and igb_m_getcapab
are called when the "reprobe" button is clicked, however, my drivers' relevant functions
are not called at all! It is kind of strange, since my gldv3 driver has "MC_IOCTL |
MC_GETCAPAB | MC_SETPROP | MC_GETPROP" callback capabilities and the m_ioctl function that can
process LB_GET_MODE, LB_SET_MODE is also available, I can use my own application to send ioctl
request to the driver to do many things.
Can someone tell me why? How does a Gldv3 driver declare it has loopback
capability? Is there anything else that I missed?
Tom
You also need to implement LB_GET_INFO and LB_GET_INFO_SIZE. These are
what he probe uses to discover the a capability.
- Garrett
_______________________________________________
driver-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/driver-discuss