Re: Linux Kernel -Doubt on sk_buff!

Alan Cox (alan@lxorguk.ukuu.org.uk)
Mon, 1 Mar 1999 14:05:38 +0000 (GMT)


> 2. What is the use of the following fields in the sk_buff structure
> 1. data_skb pointer.

The packet holding the data for the buffer

> 2. count.
> 3. users.

Locking. Read net/core/skbuff.c

> 3. If we have to send a particular IP packet ( which is in sk_buff format )
> to two diffrent destinations, do we have to duplicate the sk_buff.

If you will cause two different buffers to be sent.

> Doesn't this reduce the performance.

Not really
- you'd have to copy some of it for the packet queues for each card
- you have to do a checksum pass on the data
- it very rarely happens

So we optimise hard for the real world cases.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/