tcp: use tcp_flags in tcp_data_queue()
authorPeter Pan(潘卫平) <panweiping3@gmail.com>
Wed, 24 Sep 2014 14:17:02 +0000 (22:17 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 28 Sep 2014 20:37:57 +0000 (16:37 -0400)
commit155c6e1ad4a778cad7f9fe6695afc91b3f5fe1ac
treef769a4d224724a1de9f99c85e45322b9d7e29ddc
parentcd7d8498c9a5d510c64db38d9f4f4fbc41790f09
tcp: use tcp_flags in tcp_data_queue()

This patch is a cleanup which follows the idea in commit e11ecddf5128 (tcp: use
TCP_SKB_CB(skb)->tcp_flags in input path),
and it may reduce register pressure since skb->cb[] access is fast,
bacause skb is probably in a register.

v2: remove variable th
v3: reword the changelog

Signed-off-by: Weiping Pan <panweiping3@gmail.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c