mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 14:11:20 +00:00
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>
This commit is contained in:
parent
d34ac51b76
commit
1e2e01172f
2 changed files with 9 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue