summaryrefslogtreecommitdiffstats
path: root/net/dccp
diff options
context:
space:
mode:
authorYafang Shao2017-12-20 04:12:53 +0100
committerDavid S. Miller2017-12-20 20:00:25 +0100
commitb0832e30058405405cfec73e7f545b184c198905 (patch)
tree48119cb715ae3f2c2cc36dfe57e8f7793868acb4 /net/dccp
parentnet: sock: replace sk_state_load with inet_sk_state_load and remove sk_state_... (diff)
downloadkernel-qcow2-linux-b0832e30058405405cfec73e7f545b184c198905.tar.gz
kernel-qcow2-linux-b0832e30058405405cfec73e7f545b184c198905.tar.xz
kernel-qcow2-linux-b0832e30058405405cfec73e7f545b184c198905.zip
net: tracepoint: using sock_set_state tracepoint to trace DCCP state transition
With changes in inet_ files, DCCP state transitions are traced with inet_sock_set_state tracepoint. Signed-off-by: Yafang Shao <laoar.shao@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp')
-rw-r--r--net/dccp/proto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dccp/proto.c b/net/dccp/proto.c
index 9d43c1f40274..7a75a1d3568b 100644
--- a/net/dccp/proto.c
+++ b/net/dccp/proto.c
@@ -110,7 +110,7 @@ void dccp_set_state(struct sock *sk, const int state)
/* Change state AFTER socket is unhashed to avoid closed
* socket sitting in hash tables.
*/
- sk->sk_state = state;
+ inet_sk_set_state(sk, state);
}
EXPORT_SYMBOL_GPL(dccp_set_state);