> This is all made harder by the fact that struct mbuf has a struct ifnet
> pointer in it, so if for any reason there is an outstanding mbuf
...
> This has been raised as an issue before, and is a good reason to ifconfig
> down the interface, and wait a second or two before ejecting.  You could

and still, the wait is not errorproof as delays can be larger than
a second or two.
I suppose the correct way to do things when you delete an interface
is to to keep the struct ifnet around (in some list) for further
reuse when the card is reinserted.

One could argue that dummynet with its delayed scheduling of packets
is screwing up things, but i would argue that having pointers to
volatile objects without reference counts is not such a great
design, and SMP might give the same kind of problems.

        cheers
        luigi


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to