]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit34792045b02cb33d54d9fee91628eabad92fe731
tree780f432a513cc6e8c980b061b38e0c3c01288a99
parentd2ac7ce0365046298f29cd98cbd64cea2da76055
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