Date: Mon, 16 Feb 2009 23:32:29 +0100 From: "Paul B. Mahol" <onemda@gmail.com> To: Hans Petter Selasky <hselasky@c2i.net> Cc: usb@freebsd.org, weongyo@freebsd.org, Robert Watson <rwatson@freebsd.org>, Andrew Thompson <thompsa@freebsd.org>, freebsd-usb@freebsd.org Subject: Re: USB support in NDIS -- IFF_NEEDSGIANT? Message-ID: <3a142e750902161432m15d8c316g6a409d216e9c7053@mail.gmail.com> In-Reply-To: <200902162127.12209.hselasky@c2i.net> References: <alpine.BSF.2.00.0902161129060.5806@fledge.watson.org> <20090216153519.GB4723@citylink.fud.org.nz> <200902161755.07491.hselasky@freebsd.org> <200902162127.12209.hselasky@c2i.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2/16/09, Hans Petter Selasky <hselasky@c2i.net> wrote: > Hi, > > As long as there are locking mechanisms like this: > > void > KeAcquireSpinLockAtDpcLevel(kspin_lock *lock) > { > while (atomic_cmpset_acq_int((volatile u_int *)lock, 0, 1) == 0) > /* sit and spin */; > > return; > } > > inside if_ndis, the whole of NDIS needs to run under one lock. What is the > name of the "NDIS Giant Lock" after that "Giant" is removed from NDIS? > > --HPS > > On Monday 16 February 2009, Hans Petter Selasky wrote: >> On Monday 16 February 2009, Andrew Thompson wrote: >> > On Mon, Feb 16, 2009 at 11:33:18AM +0000, Robert Watson wrote: >> > > Dear all: >> > >> > I had promised Weongyo that I would convert ndis to USB2 but have been a >> > bit busy. Anyone else welcome to pick this up in the mean time. >> >> I can take care of it. Will be back in some hours or tomorrow with >> patches. >> >> How can I test the if_ndis is working USB-wise? >> >> I assume the latest files are in -current. >> >> --HPS > > > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" > The whole purpose of IFF_NEEDSGIANT is because usb1 *needs* it. I'm currenly using my own custom if_ndis/ndis code with usb stuff removed and it works fine without that flag. Anyway, usb2 is going to replace usb1 very soon and in that case if_ndis & ndis will stop working. So comment out whole ndisulator from build until it get ported to usb2. -- Paul
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3a142e750902161432m15d8c316g6a409d216e9c7053>