NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/48964 (In urndis(4), initialization of ifnet structure is not enough, cause panic.)
The following reply was made to PR kern/48964; it has been noted by GNATS.
From: Yasushi Oshima <oshima-ya%yagoto-urayama.jp@localhost>
To: gnats-bugs%NetBSD.org@localhost, skrll%NetBSD.org@localhost,
gnats-admin%netbsd.org@localhost,
netbsd-bugs%netbsd.org@localhost
Cc:
Subject: Re: kern/48964 (In urndis(4), initialization of ifnet structure is
not enough, cause panic.)
Date: Mon, 07 Jul 2014 02:31:40 +0900 (JST)
> Perhaps you can look at the IFF_RUNNING
> check in urndis_init?
[from diff]:
if (ifp->if_flags & IFF_RUNNING)
- return;
+ return EBUSY;
I don't know whether if_init() will be called or not when IFF_RUNNING flag is
ON,
it will depend on the design of network (or ethernet) driver.
It seems that many nic drivers are stopping I/O, resetting and re-initializing,
or some drivers skip lator and return with 0 in this case.
at least I could not find another drivers which returns with any ERROR.
Thanks.
--
Yasushi Oshima
Home |
Main Index |
Thread Index |
Old Index