]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit842add135f36bbac0731191a42e2f2c347a2421a
treef769a4d224724a1de9f99c85e45322b9d7e29ddc
parentb57dc3891b02e13361b79101edc576a7cc1d7ba4
tcp: use tcp_flags in tcp_data_queue()

This patch is a cleanup which follows the idea in commit 4249ead5975f (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