Thread (34 messages) 34 messages, 3 authors, 2023-10-18

Re: [PATCH v14 net-next 09/23] net/tcp: Add TCP-AO sign to twsk

From: Dmitry Safonov <hidden>
Date: 2023-10-11 19:26:42
Also in: lkml

On 10/11/23 19:10, Eric Dumazet wrote:
On Tue, Oct 10, 2023 at 1:07 AM Dmitry Safonov [off-list ref] wrote:
[..]
quoted
 static inline struct tcp_timewait_sock *tcp_twsk(const struct sock *sk)
diff --git a/include/net/tcp_ao.h b/include/net/tcp_ao.h
index 629ab0365b83..af2caf7e76fc 100644
--- a/include/net/tcp_ao.h
+++ b/include/net/tcp_ao.h
@@ -85,6 +85,7 @@ struct tcp_ao_info {
                                __unused        :31;
        __be32                  lisn;
        __be32                  risn;
+       atomic_t                refcnt;         /* Protects twsk destruction */
This needs to be a refcount_t
Sure, sounds good.

Thanks,
           Dmitry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help