> I'm just wondering if recycling of skb's can be harmful? In the IrDA stack
> I often need to send out a nearly exact copy of a received frame, so it's
> tempting to just reuse the received frame. But then I started thinking
> about packet sniffers that have just cloned the incomming frame and queued
> it at some socket. Changing the skb would confuse packet sniffer
> applications (yes we now have irdadump and irdaping :-)
The skbuff code includes some handy little functions for doing copy on
write if you want to do that.
> Maybe there is little to gain by recycling skb's anyway?
The slab allocators are fast, so not a lot.
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]