OSDN Git Service

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)
commitbece1b9708434b6fb90b029affc228fc21688404
tree59b741f84bc6185e9fffcc03194e696cb687aa4b
parenteb1d064058c7c7c2b2e414c4c8e81c21965cdbe9
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