From: Yafang Shao Date: Wed, 20 Dec 2017 03:12:53 +0000 (+0800) Subject: net: tracepoint: using sock_set_state tracepoint to trace DCCP state transition X-Git-Tag: v4.16-rc1~123^2~309^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b0832e30058405405cfec73e7f545b184c198905;p=thirdparty%2Flinux.git 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 Signed-off-by: David S. Miller --- diff --git a/net/dccp/proto.c b/net/dccp/proto.c index 9d43c1f402740..7a75a1d3568bc 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);