freebsd-nq/sys/dev/if_ndis
Bill Paul e4cd85db6f Fix the problems people have been having with the Intel 2100B Centrino
wireless ever since I added the new spinlock code. Previously, I added
a special ndis_rxeof_serial() function to insure that when we receive
a packet, we never end up calling the MiniportReturnPacket() routine
until after the receive handler has finished. I set things up so that
ndis_rxeof_serial() would only be used for serialized miniports since
they depend on this property. Well, it turns out deserialized miniports
depend on a similar property: you can't let MiniportReturnPacket() be
called from the same context as the receive handler at all. The 2100B
driver happens to use a single spinlock for all of its synchronization,
and it tries to acquire it both while in MiniportHandleInterrupt() and
in MiniportReturnPacket(), so if we call MiniportReturnPacket() from
the MiniportHandleInterrupt() context, we will end up trying to acquire
the spinlock recursively, which you can't do.

To fix this, I made the ndis_rxeof_serial() handler the default. An
alternate solution would be to make ndis_return_packet() submit
the call to MiniportReturnPacket() to the NDIS task queue thread.
I may do that in the future, after I've tested things a bit more.
2004-04-21 02:29:28 +00:00
..
if_ndis_pccard.c Make if_ndis_pci.c and if_ndis_pccard.c use bus_alloc_resource() again 2004-03-21 19:56:41 +00:00
if_ndis_pci.c Make if_ndis_pci.c and if_ndis_pccard.c use bus_alloc_resource() again 2004-03-21 19:56:41 +00:00
if_ndis.c Fix the problems people have been having with the Intel 2100B Centrino 2004-04-21 02:29:28 +00:00
if_ndisvar.h Continue my efforts to imitate Windows as closely as possible by 2004-04-14 07:48:03 +00:00