SKBs with shared fragments

2008-01-29 Thread kristrev
Hello, I am working on a patch to the TCP-code that, among others, share fragments between skbs, and have encountered a problem that I'm not sure if I have solved correctly. To share a fragment, I copy the skb_frag-struct to the correct place in the other skbs frags-array, increase the page-count

Re: Non-linear SKBs

2007-10-12 Thread kristrev
> If the underlying device can do scatter-gather and checksumming, > the TCP code builds outgoing packets by copying user date into > full system pages, and then attaching those pages into the SKB. > The protocol headers sit under the skb->data linear area, and > the user data mostly sits in the u

Copy data from one SKB to another

2007-02-22 Thread kristrev
Hello, I am working on optimizing the TCP-code for a certain type of TCP-stream, and to make one of my optimizations work I need to copy data from one SKB (the data field of the skb) to another SKB (data field). Currently I am using memcpy, and it does what it is supposed to, but I am curious as

Retransmission and packet handling in the TCP-code

2007-01-24 Thread kristrev
Hello, I have recently started working with the Linux-kernel TCP-code with regards to implementing a few (hopefully good) algorithms. But I want to make sure that I have understood everything correctly before I start implementing, so I have a few questions. 1. Are the skb's aware of the sk_buff_h