Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next] tcp: use tcp_flags in tcp_data_queue()
@ 2014-09-24 10:35 Weiping Pan
  2014-09-24 10:54 ` Eric Dumazet
  0 siblings, 1 reply; 7+ messages in thread
From: Weiping Pan @ 2014-09-24 10:35 UTC (permalink / raw)
  To: netdev; +Cc: edumazet

Follow the idea in commit e11ecddf5128 (tcp: use TCP_SKB_CB(skb)->tcp_flags in
input path), we can use tcp_flags to avoid cache miss.

Signed-off-by: Weiping Pan <panweiping3@gmail.com>
---
 net/ipv4/tcp_input.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index 13f3da4..85298c9 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -4392,7 +4392,7 @@ queue_and_out:
 		tp->rcv_nxt = TCP_SKB_CB(skb)->end_seq;
 		if (skb->len)
 			tcp_event_data_recv(sk, skb);
-		if (th->fin)
+		if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN)
 			tcp_fin(sk);
 
 		if (!skb_queue_empty(&tp->out_of_order_queue)) {
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-09-28 20:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-24 10:35 [PATCH net-next] tcp: use tcp_flags in tcp_data_queue() Weiping Pan
2014-09-24 10:54 ` Eric Dumazet
2014-09-24 12:42   ` [PATCH net-next v2] " Weiping Pan
2014-09-24 13:22     ` Eric Dumazet
2014-09-24 14:17       ` [PATCH net-next v3] " Weiping Pan
2014-09-26 12:38         ` Eric Dumazet
2014-09-28 20:38         ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox