]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: tcp_tso_segment() small optimization
authorEric Dumazet <edumazet@google.com>
Sat, 13 Apr 2013 03:22:08 +0000 (03:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Apr 2013 20:54:14 +0000 (16:54 -0400)
commit9c67cbad2873050ba0658840653351f6916737d2
tree59b741f84bc6185e9fffcc03194e696cb687aa4b
parent6b32a0b43c6d702159c2d5e1d0dae206dbdd2f32
tcp: tcp_tso_segment() small optimization

We can move th->check computation out of the loop, as compiler
doesn't know each skb initially share same tcp headers after
skb_segment()

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c