tcp: optimize some skb_shinfo(skb) uses
authorEric Dumazet <edumazet@google.com>
Fri, 6 Dec 2013 06:31:30 +0000 (22:31 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Dec 2013 17:51:40 +0000 (12:51 -0500)
commit7b7fc97aa390dfe4770e1d19e215fa289d94b477
tree780f432a513cc6e8c980b061b38e0c3c01288a99
parent84b9cd633bc35a028b313178829ee313525f6892
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: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c