diff options
author | Yafang Shao <laoar.shao@gmail.com> | 2018-11-14 22:26:17 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-16 20:28:00 -0800 |
commit | 213d7767af02a079e6d485daab30167d5d675a57 (patch) | |
tree | 5f1391e678dac12bad1e1fafd30d52b7fe51a81c /net/ipv4/tcp.c | |
parent | e119a369b0f1e2295d7a11bff9806ea47878b3ae (diff) | |
download | linux-213d7767af02a079e6d485daab30167d5d675a57.tar.bz2 |
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 'net/ipv4/tcp.c')
-rw-r--r-- | net/ipv4/tcp.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 9e6bc4d6daa7..ca2b08c0b4a0 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -2241,10 +2241,6 @@ void tcp_set_state(struct sock *sk, int state) * socket sitting in hash tables. */ inet_sk_state_store(sk, state); - -#ifdef STATE_TRACE - SOCK_DEBUG(sk, "TCP sk=%p, State %s -> %s\n", sk, statename[oldstate], statename[state]); -#endif } EXPORT_SYMBOL_GPL(tcp_set_state); |