]> 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)
commitcc292808a1fc8c3d640cf099497e4327c9a939f0
tree59b741f84bc6185e9fffcc03194e696cb687aa4b
parentecce3019296e3efd8fa97d79d23cd887cfb13c94
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