]> git.baikalelectronics.ru Git - kernel.git/commit
net: skb_segment() provides list head and tail
authorEric Dumazet <edumazet@google.com>
Sat, 4 Oct 2014 03:59:19 +0000 (20:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Oct 2014 04:37:30 +0000 (00:37 -0400)
commit57025861d63a95ee65aa5170aad3f4527be05624
treed9c2d8352b0cc41d43dc23b7a7eafdac6758aeb3
parente036cec1281fb131f16f36721e9e813b59ec7046
net: skb_segment() provides list head and tail

Its unfortunate we have to walk again skb list to find the tail
after segmentation, even if data is probably hot in cpu caches.

skb_segment() can store the tail of the list into segs->prev,
and validate_xmit_skb_list() can immediately get the tail.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c
net/core/skbuff.c