hi, > On Thu, Oct 20, 2011 at 06:59:42AM +0000, YAMAMOTO Takashi wrote: >> hi, >> >> > Module Name: src >> > Committed By: dyoung >> > Date: Wed Oct 19 01:34:37 UTC 2011 >> > >> > Modified Files: >> > src/sys/net: if.c if.h >> > >> > Log Message: >> > Start to untangle the ifnet ioctls mess. >> > >> > Add ifnet functions, if_mcast_op(), if_flags_set(), and if_addr_init() >> > for adding/deleting multicast addresses, modifying the if_flags, >> > and initializing local/remote addresses. Make ifpromisc() use >> > if_flags_set(). Protocols and network drivers should use these >> > instead of ifp->if_ioctl() calls. Subsequent commits will >> > replace ifp->if_ioctl(SIOCADDMULTI| SIOCDELMULTI| SIOCSIFDSTADDR| >> > SIOCINITIFADDR| SIOCSIFFLAGS) calls with calls to the new functions. >> > >> > Use a mutex(9) to synchronize ifp->if_ioctl() calls originating in >> > userland. Also synchronize ifp->if_ioctl() calls with ifnet detachment >> > and reclamation. >> >> can you explain what you are trying to achieve with this percpu stuff? > > I have tried to explain in some new comments. Let me know if you still > have questions.
which comments? i don't understand how it's different from simply acquiring a kmutex_t. YAMAMOTO Takashi > > Dave > > -- > David Young OJC Technologies is now Pixo > dyo...@pixotech.com Urbana, IL (217) 344-0444 x24