> If I use a skb for sending data, is the following sequence OK (with 2.0.*)?
> 
>   skb = alloc_skb(some_size, GFP_ATOMIC);
>   ...
>   ... call the transmit routine with (skb->data, skb->len)
>   ...
>   skb->free = 1;
>   kfree(skb, FREE_WRITE);

Yes.

> Doing a save_flags/cli/restore_flags sequence in an interrupt doesn't hurt,
> does it? How does the meaning of the free flag change with the 2.1.* kernels?
> I'll probably be using them soon :-)

It doesnt do quite what you think in 2.1.x , it does in 2.0.x. 2.1.x has
nice spinlock stuff 

Alan

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to