]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit89319d3801d1d3ac29c7df1f067038986f267d29
treea717482d5cdfe9d50bed14a2114ece905b5e88d7
parenteb14f019597cd86c21a6c601d7e900f40030c2e7
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