summaryrefslogtreecommitdiff
path: root/include/net/inet_sock.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-03-13 02:44:06 +0300
committerDavid S. Miller <davem@davemloft.net>2015-03-13 05:58:13 +0300
commit1e2e01172fd11b4dbfee746c0c8fbcaa9dbf22a0 (patch)
tree8384ce93ce79c7fa49bb29349102dd2b4d1137fd /include/net/inet_sock.h
parentd34ac51b76e8c7de6094cfb11780ef9c2b93469f (diff)
downloadlinux-1e2e01172fd11b4dbfee746c0c8fbcaa9dbf22a0.tar.xz
inet: add rsk_refcnt/ireq_refcnt to request socks
When request socks will be in ehash, they'll need to be refcounted. This patch adds rsk_refcnt/ireq_refcnt macros, and adds reqsk_put() function, but nothing yet use them. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/inet_sock.h')
-rw-r--r--include/net/inet_sock.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/inet_sock.h b/include/net/inet_sock.h
index b31f01de5cd6..9d6470c16a27 100644
--- a/include/net/inet_sock.h
+++ b/include/net/inet_sock.h
@@ -81,6 +81,7 @@ struct inet_request_sock {
#define ir_cookie req.__req_common.skc_cookie
#define ireq_net req.__req_common.skc_net
#define ireq_state req.__req_common.skc_state
+#define ireq_refcnt req.__req_common.skc_refcnt
kmemcheck_bitfield_begin(flags);
u16 snd_wscale : 4,