mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
tcp: remove tcp_rcv_state_process() tcp_hdr argument
Factorize code to get tcp header from skb. It makes no sense to duplicate code in callers. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
bda07a64c0
commit
72ab4a86f7
5 changed files with 6 additions and 7 deletions
|
@ -1272,7 +1272,7 @@ static int tcp_v6_do_rcv(struct sock *sk, struct sk_buff *skb)
|
|||
} else
|
||||
sock_rps_save_rxhash(sk, skb);
|
||||
|
||||
if (tcp_rcv_state_process(sk, skb, tcp_hdr(skb)))
|
||||
if (tcp_rcv_state_process(sk, skb))
|
||||
goto reset;
|
||||
if (opt_skb)
|
||||
goto ipv6_pktoptions;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue