Files
linux-legacy/include/linux
Herbert Xu 5b057c6b1a [NET]: Avoid allocating skb in skb_pad
First of all it is unnecessary to allocate a new skb in skb_pad since
the existing one is not shared.  More importantly, our hard_start_xmit
interface does not allow a new skb to be allocated since that breaks
requeueing.

This patch uses pskb_expand_head to expand the existing skb and linearize
it if needed.  Actually, someone should sift through every instance of
skb_pad on a non-linear skb as they do not fit the reasons why this was
originally created.

Incidentally, this fixes a minor bug when the skb is cloned (tcpdump,
TCP, etc.).  As it is skb_pad will simply write over a cloned skb.  Because
of the position of the write it is unlikely to cause problems but still
it's best if we don't do it.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
2006-06-23 02:06:41 -07:00
..
2006-03-21 08:52:18 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2006-03-24 07:33:20 -08:00
…
…
…
2006-03-28 09:16:05 -08:00
…
2006-03-23 07:38:09 -08:00
…
…
…
2006-03-27 08:44:59 -08:00
…
…
…
…
…
…
…
2006-06-22 15:05:57 -07:00
…
…
2006-03-27 08:44:59 -08:00
…
…
…
…
…
…
…
2006-06-08 15:14:23 -07:00
…
…
2006-03-31 12:18:54 -08:00
…
…
…
…
…
…
…
2006-06-22 15:05:57 -07:00
…
…
…
…
…
…
…
…
2006-03-26 08:56:56 -08:00
…
…
…
2006-03-27 08:44:51 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2006-03-20 17:09:11 -08:00
…
2006-03-20 22:41:23 -08:00
…
…
2006-06-20 20:24:58 -07:00
2006-02-08 01:03:52 -05:00
…
…
…
…
…
…
…
…
…
2006-03-20 22:21:10 -08:00
2006-06-21 12:40:49 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2006-04-29 18:33:15 -07:00
…
2006-03-23 07:38:12 -08:00
…
2006-06-05 12:29:17 -07:00
…
…
…
…
2006-03-22 07:53:57 -08:00
…
…
…
…
…
…
…
…
2006-03-23 07:38:14 -08:00
2006-03-23 07:38:14 -08:00
…
…
…
…
…
…
2006-03-20 13:44:40 -05:00
2006-03-20 13:44:27 -05:00
…
…
…
…
…
…
…
…
…
2006-06-22 15:05:56 -07:00
…
2006-03-27 08:44:48 -08:00
…
…
2006-05-04 06:55:12 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
2006-03-27 08:44:51 -08:00
…
…
…
…
…
2006-06-17 21:29:55 -07:00
2006-03-23 07:38:12 -08:00
…
2006-04-02 00:08:05 -05:00
…
…
…
…
…
…
…
…
…
2006-03-28 09:16:05 -08:00
…
…
…
…
…
…
…
2006-03-26 08:57:03 -08:00
…
2006-03-31 12:18:56 -08:00
…
…
2006-03-23 07:38:14 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2006-03-23 07:12:57 -05:00
…
…
…