inet: prepare sock_edemux() & sock_gen_put() for new SYN_RECV state
sock_edemux() & sock_gen_put() should be ready to cope with request socks. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
0159dfd3d7
commit
41b822c59e
@@ -77,6 +77,11 @@ static inline struct request_sock *reqsk_alloc(const struct request_sock_ops *op
|
||||
return req;
|
||||
}
|
||||
|
||||
static inline struct request_sock *inet_reqsk(struct sock *sk)
|
||||
{
|
||||
return (struct request_sock *)sk;
|
||||
}
|
||||
|
||||
static inline void __reqsk_free(struct request_sock *req)
|
||||
{
|
||||
kmem_cache_free(req->rsk_ops->slab, req);
|
||||
|
Reference in New Issue
Block a user