summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorYafang Shao <laoar.shao@gmail.com>2018-11-14 22:26:17 +0800
committerDavid S. Miller <davem@davemloft.net>2018-11-16 20:28:00 -0800
commit213d7767af02a079e6d485daab30167d5d675a57 (patch)
tree5f1391e678dac12bad1e1fafd30d52b7fe51a81c /include/net
parente119a369b0f1e2295d7a11bff9806ea47878b3ae (diff)
downloadlinux-stable-213d7767af02a079e6d485daab30167d5d675a57.tar.gz
linux-stable-213d7767af02a079e6d485daab30167d5d675a57.tar.bz2
linux-stable-213d7767af02a079e6d485daab30167d5d675a57.zip
tcp: clean up STATE_TRACE
Currently we can use bpf or tcp tracepoint to conveniently trace the tcp state transition at the run time. So we don't need to do this stuff at the compile time anymore. Signed-off-by: Yafang Shao <laoar.shao@gmail.com> Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/tcp.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index b84b694e8b3d..63e37dd1c274 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -1323,20 +1323,8 @@ static inline bool tcp_checksum_complete(struct sk_buff *skb)
bool tcp_add_backlog(struct sock *sk, struct sk_buff *skb);
int tcp_filter(struct sock *sk, struct sk_buff *skb);
-
-#undef STATE_TRACE
-
-#ifdef STATE_TRACE
-static const char *statename[]={
- "Unused","Established","Syn Sent","Syn Recv",
- "Fin Wait 1","Fin Wait 2","Time Wait", "Close",
- "Close Wait","Last ACK","Listen","Closing"
-};
-#endif
void tcp_set_state(struct sock *sk, int state);
-
void tcp_done(struct sock *sk);
-
int tcp_abort(struct sock *sk, int err);
static inline void tcp_sack_reset(struct tcp_options_received *rx_opt)