]> git.baikalelectronics.ru Git - kernel.git/commit
skbuff: optimize the pull_pages code in __pskb_pull_tail()
authorlinzhang <xiaolou4617@gmail.com>
Mon, 17 Jul 2017 09:25:02 +0000 (17:25 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Jul 2017 15:56:50 +0000 (08:56 -0700)
commitbbc33c5a19da39f68450375ae806fab9dc1f5a38
tree4fcc27c0a605eae9a6a8740d5933c6030fc9837a
parenta4b21c82976cfa3b53283d0fff4961071402b41c
skbuff: optimize the pull_pages code in __pskb_pull_tail()

In the pull_pages code block, if the first frag size > eat,
we can end the loop in advance to avoid extra copy.

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