Skip to content
Commit 3ccc6c6f authored by linzhang's avatar linzhang Committed by David S. Miller
Browse files

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: default avatarLin Zhang <xiaolou4617@gmail.com>
Acked-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b3a703c7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment