Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 200169
b: refs/heads/master
c: ca55158
h: refs/heads/master
i:
  200167: 169a223
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Jun 4, 2010
1 parent c5d87c6 commit 149ff49
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 536e00e570c87f258554e919c444b81a7002e46d
refs/heads/master: ca55158c6ecb7832a6ad80ac44a14d23bab8cdfc
7 changes: 4 additions & 3 deletions trunk/net/ipv4/tcp_ipv4.c
Original file line number Diff line number Diff line change
Expand Up @@ -1555,6 +1555,7 @@ int tcp_v4_do_rcv(struct sock *sk, struct sk_buff *skb)
#endif

if (sk->sk_state == TCP_ESTABLISHED) { /* Fast path */
sock_rps_save_rxhash(sk, skb->rxhash);
TCP_CHECK_TIMER(sk);
if (tcp_rcv_established(sk, skb, tcp_hdr(skb), skb->len)) {
rsk = sk;
Expand All @@ -1579,7 +1580,9 @@ int tcp_v4_do_rcv(struct sock *sk, struct sk_buff *skb)
}
return 0;
}
}
} else
sock_rps_save_rxhash(sk, skb->rxhash);


TCP_CHECK_TIMER(sk);
if (tcp_rcv_state_process(sk, skb, tcp_hdr(skb), skb->len)) {
Expand Down Expand Up @@ -1672,8 +1675,6 @@ int tcp_v4_rcv(struct sk_buff *skb)

skb->dev = NULL;

sock_rps_save_rxhash(sk, skb->rxhash);

bh_lock_sock_nested(sk);
ret = 0;
if (!sock_owned_by_user(sk)) {
Expand Down

0 comments on commit 149ff49

Please sign in to comment.