David S. Miller
c65f7f00c5
[TCP]: Simplify SKB data portion allocation with NETIF_F_SG.
...
The ideal and most optimal layout for an SKB when doing
scatter-gather is to put all the headers at skb->data, and
all the user data in the page array.
This makes SKB splitting and combining extremely simple,
especially before a packet goes onto the wire the first
time.
So, when sk_stream_alloc_pskb() is given a zero size, make
sure there is no skb_tailroom(). This is achieved by applying
SKB_DATA_ALIGN() to the header length used here.
Next, make select_size() in TCP output segmentation use a
length of zero when NETIF_F_SG is true on the outgoing
interface.
Signed-off-by: David S. Miller <davem@davemloft.net >
2005-07-05 15:17:25 -07:00
..
2005-04-16 15:20:36 -07:00
2005-04-16 15:24:56 -07:00
2005-06-28 13:24:23 -07:00
2005-04-24 20:10:16 -07:00
2005-04-16 15:20:36 -07:00
2005-05-19 12:42:39 -07:00
2005-05-03 22:17:18 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-06-20 13:31:11 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-19 20:46:37 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-05-05 16:36:49 -07:00
2005-06-28 22:45:32 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-06-21 13:51:04 -07:00
2005-06-21 13:51:04 -07:00
2005-04-16 15:20:36 -07:00
2005-06-20 13:36:39 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-06-13 15:12:33 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-06-28 15:46:24 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-06-18 22:51:12 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-07-05 14:15:09 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-06-18 22:48:55 -07:00
2005-04-16 15:20:36 -07:00
2005-06-21 18:46:13 -07:00
2005-07-05 14:15:09 -07:00
2005-04-16 15:20:36 -07:00
2005-07-05 15:12:04 -07:00
2005-06-21 18:46:13 -07:00
2005-07-05 15:17:25 -07:00
2005-04-16 15:20:36 -07:00
2005-06-18 22:47:21 -07:00
2005-06-23 23:45:02 -07:00
2005-04-16 15:20:36 -07:00
2005-05-05 16:36:49 -07:00
2005-06-22 22:16:17 -07:00
2005-04-16 15:20:36 -07:00
2005-06-20 13:19:41 -07:00