aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/proto.c
diff options
context:
space:
mode:
authorYafang Shao <laoar.shao@gmail.com>2017-12-20 11:12:53 +0800
committerDavid S. Miller <davem@davemloft.net>2017-12-20 14:00:25 -0500
commitb0832e30058405405cfec73e7f545b184c198905 (patch)
tree48119cb715ae3f2c2cc36dfe57e8f7793868acb4 /net/dccp/proto.c
parentnet: sock: replace sk_state_load with inet_sk_state_load and remove sk_state_store (diff)
downloadlinux-dev-b0832e30058405405cfec73e7f545b184c198905.tar.xz
linux-dev-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/proto.c')
-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);