Skip to content
Commit 7b7fc97a authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

tcp: optimize some skb_shinfo(skb) uses



Compiler doesn't know skb_shinfo(skb) pointer is usually constant.

By using a temporary variable, we help generating smaller code.

For example, tcp_init_nondata_skb() is inlined after this patch.

Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 84b9cd63
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