From 8670bb42c20ebffee81fe9b6eaf54808db151660 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Thu, 22 Jun 2023 10:55:29 +0200 Subject: [PATCH] CLEANUP: stconn: Move comment about sedesc fields on the field line Fields of sedesc structure were documented in the comment about the structure itself. It was not really convenient, hard to read, hard to update. So comments about the fields are moved on the corresponding field line, as usual. --- include/haproxy/stconn-t.h | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/include/haproxy/stconn-t.h b/include/haproxy/stconn-t.h index 99b6e25bd..e507e1e94 100644 --- a/include/haproxy/stconn-t.h +++ b/include/haproxy/stconn-t.h @@ -240,14 +240,6 @@ struct stconn; * endpoint itself (mux/applet) and eventually creates a new sedesc (for * instance on connection retries). * - * is the stream endpoint, i.e. the mux stream or the appctx - * is the connection for connection-based streams - * is the stream connector we're attached to, or NULL - * is the last read activity - * is the first send blocked - * SE_FL_* - * cross reference with the opposite SC - * * should be updated when a read activity is detected. It can be a * successful receive, when a shutr is reported or when receives are * unblocked. @@ -256,13 +248,14 @@ struct stconn; * when a successful send is reported. */ struct sedesc { - void *se; - struct connection *conn; - struct stconn *sc; - unsigned int flags; - unsigned int lra; - unsigned int fsb; - struct xref xref; + void *se; /* the stream endpoint, i.e. the mux stream or the appctx */ + struct connection *conn; /* the connection for connection-based streams */ + struct stconn *sc; /* the stream connector we're attached to, or NULL */ + unsigned int flags; /* SE_FL_* */ + unsigned int lra; /* the last read activity */ + unsigned int fsb; /* the first send blocked */ + /* 4 bytes hole here */ + struct xref xref; /* cross reference with the opposite SC */ }; /* sc_app_ops describes the application layer's operations and notification