Hi On further probing using 'truss' on the ifconfig command i found this basic diff in the trace b/n the time it works and it does not
########## Trace when ifconfig does NOT work ###################### open("/dev/net/be2net0", O_RDWR) = 6 putmsg(6, 0x080475C0, 0x00000000, RS_HIPRI) = 0 pollsys(0x08043578, 1, 0x08043508, 0x00000000) = 1 getmsg(6, 0x08043580, 0x08045590, 0x08043574) = 0 ioctl(6, I_PUSH, "ip") = 0 ioctl(6, I_PUSH, "arp") = 0 ioctl(6, SIOCGLIFFLAGS, 0x080728A0) = 0 ioctl(5, SIOCGLIFGROUPNAME, 0x080728A0) Err#6 ENXIO ioctl(6, SIOCSLIFNAME, 0x080728A0) Err#6 ENXIO ########## Trace when ifconfig does work ################## open("/dev/net/be2net0", O_RDWR) = 6 putmsg(6, 0x080475C0, 0x00000000, RS_HIPRI) = 0 pollsys(0x08043578, 1, 0x08043508, 0x00000000) = 1 getmsg(6, 0x08043580, 0x08045590, 0x08043574) = 0 ioctl(6, I_PUSH, "ip") = 0 ioctl(6, I_PUSH, "arp") = 0 ioctl(6, SIOCGLIFFLAGS, 0x080728A0) = 0 ioctl(5, SIOCGLIFGROUPNAME, 0x080728A0) Err#6 ENXIO ioctl(6, SIOCSLIFNAME, 0x080728A0) = 0 ioctl(6, SIOCGLIFFLAGS, 0x080728A0) = 0 As can be seen ,the 2 last lines in bold are the ones that seem to differ although from my ioctl entry point implementation pt of view both seem to come and go and invalid IOCTLs , so im not really sure what is it that i am doing wrong or anything i can do to make the above ioctl pass everytime? Thanks Som ________________________________ From: Somnath kotur <so...@yahoo.com> To: driver-discuss@opensolaris.org; Garrett D <garr...@damore.org> Sent: Wed, November 11, 2009 12:19:40 PM Subject: [driver-discuss] DL_BIND_REQ failed: DL_SYSERR (errno 6) only on OSOL , NOT on S10 Hi All, I have been facing this peculiar problem whenever i try to plumb my nic driver using the 'ifconfig <driver inst no> plumb' command on opensolaris 2009.06 , however it invariably succeeds after a few attempts ,sometimes it even succeeds on the 1st attempt,but at times it does take quite a few, I do not understand why when the same driver with same source code works on Solaris 10 U7 and has even passed nearly the entire NICDRV test suite( one test is currently running) This failure is impacting our ability to run the same test suite for the driver on OpenSolaris Dumping snippet of the 'dmesg.log ' below , attach succeeds for both the interfaces,so i do not get why does it complain of 'no such device or address' , it definitely seems like some timing problem, could somebody pls enlighten me more about what's going on ? Nov 11 12:07:26 opensolaris be2net: [ID 540041 kern.notice] NOTICE: Entered benet_start Nov 11 12:07:26 opensolaris mac: [ID 435574 kern.info] NOTICE: be2net0 link up, 10000 Mbps, full duplex Nov 11 12:07:26 opensolaris ip: [ID 926743 kern.error] be2net0: DL_BIND_REQ failed: DL_SYSERR (errno 6) Nov 11 12:07:26 opensolaris ip: [ID 738341 kern.error] be2net0: DL_UNBIND_REQ failed: DL_OUTSTATE Nov 11 12:07:26 opensolaris nwamd[27]: [ID 903261 daemon.error] get_ifflags: icfg_get_flags be2net0 af 2: No such device or address Nov 11 12:07:26 opensolaris be2net: [ID 540041 kern.notice] NOTICE: Entered benet_stop Nov 11 12:07:26 opensolaris nwamd[27]: [ID 903261 daemon.error] get_ifflags: icfg_get_flags be2net0 af 2: No such device or address Nov 11 12:07:26 opensolaris be2net: [ID 155977 kern.notice] NOTICE: Exiting benet_stop Nov 11 12:07:26 opensolaris mac: [ID 486395 kern.info] NOTICE: be2net0 link down Thanks Som
_______________________________________________ driver-discuss mailing list driver-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/driver-discuss