]> git.baikalelectronics.ru Git - kernel.git/commit
net: Add frag_list support to skb_segment
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 16 Dec 2008 07:26:06 +0000 (23:26 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Dec 2008 07:26:06 +0000 (23:26 -0800)
commit4520824f83bcd8192f60008c8cb22766ccaf462c
treea717482d5cdfe9d50bed14a2114ece905b5e88d7
parentace9e7f482f6ff8f62970f8e87cb42e8bfb47e45
net: Add frag_list support to skb_segment

This patch adds limited support for handling frag_list packets in
skb_segment.  The intention is to support GRO (Generic Receive Offload)
packets which will be constructed by chaining normal packets using
frag_list.

As such we require all frag_list members terminate on exact MSS
boundaries.  This is checked using BUG_ON.

As there should only be one producer in the kernel of such packets,
namely GRO, this requirement should not be difficult to maintain.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c