projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
986ffdf
)
net: tracepoint: using sock_set_state tracepoint to trace DCCP state transition
author
Yafang Shao
<laoar.shao@gmail.com>
Wed, 20 Dec 2017 03:12:53 +0000
(11:12 +0800)
committer
David S. Miller
<davem@davemloft.net>
Wed, 20 Dec 2017 19:00:25 +0000
(14:00 -0500)
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>
net/dccp/proto.c
patch
|
blob
|
history
diff --git
a/net/dccp/proto.c
b/net/dccp/proto.c
index 9d43c1f4027408f3a2176767da0dd425938ba652..7a75a1d3568bc3e422b5c35f9f5d7883fda2e6cc 100644
(file)
--- 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);