summaryrefslogtreecommitdiffstats
path: root/include/net/tcp.h
diff options
context:
space:
mode:
authorEric Dumazet2015-09-29 16:42:41 +0200
committerDavid S. Miller2015-09-30 01:53:07 +0200
commit72ab4a86f7a260d4c2a320b49662da107ce77a81 (patch)
tree7b0a638c8b46212057b1b78f809ddc650fe1fb7b /include/net/tcp.h
parenttcp: remove unused len argument from tcp_rcv_state_process() (diff)
downloadkernel-qcow2-linux-72ab4a86f7a260d4c2a320b49662da107ce77a81.tar.gz
kernel-qcow2-linux-72ab4a86f7a260d4c2a320b49662da107ce77a81.tar.xz
kernel-qcow2-linux-72ab4a86f7a260d4c2a320b49662da107ce77a81.zip
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>
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r--include/net/tcp.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 1cfdedbe47e1..1fe0bd458cb4 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -365,8 +365,7 @@ void tcp_wfree(struct sk_buff *skb);
void tcp_write_timer_handler(struct sock *sk);
void tcp_delack_timer_handler(struct sock *sk);
int tcp_ioctl(struct sock *sk, int cmd, unsigned long arg);
-int tcp_rcv_state_process(struct sock *sk, struct sk_buff *skb,
- const struct tcphdr *th);
+int tcp_rcv_state_process(struct sock *sk, struct sk_buff *skb);
void tcp_rcv_established(struct sock *sk, struct sk_buff *skb,
const struct tcphdr *th, unsigned int len);
void tcp_rcv_space_adjust(struct sock *sk);