]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: stream-int: Remove unused SI_FL_CLEAN_ABRT flag
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 30 Mar 2022 14:31:41 +0000 (16:31 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 13 Apr 2022 13:10:14 +0000 (15:10 +0200)
This flag is unused. So remove it to be able to remove the stream-interface.

dev/flags/flags.c
include/haproxy/stream_interface-t.h
src/stream.c

index 367c55868b51fd6570bffe19f1e2600955578b2d..0138f4f08ba929d1640a1f62b737a35ac08b43ab 100644 (file)
@@ -270,7 +270,6 @@ void show_si_flags(unsigned int f)
        SHOW_FLAG(f, SI_FL_WAIT_DATA);
        SHOW_FLAG(f, SI_FL_ISBACK);
        SHOW_FLAG(f, SI_FL_WANT_GET);
-       SHOW_FLAG(f, SI_FL_CLEAN_ABRT);
        SHOW_FLAG(f, SI_FL_RXBLK_CHAN);
        SHOW_FLAG(f, SI_FL_RXBLK_BUFF);
        SHOW_FLAG(f, SI_FL_RXBLK_ROOM);
index fa1062e5a0163d0076596652200575293a048d34..bb2fdbdc44e658a4c6084427185fdb4d4ceba1ec 100644 (file)
@@ -88,7 +88,6 @@ enum {
        SI_FL_ISBACK     = 0x00000010,  /* 0 for front-side SI, 1 for back-side */
        /* unused: 0x00000200 */
        SI_FL_WANT_GET   = 0x00004000,  /* a stream-int would like to get some data from the buffer */
-       SI_FL_CLEAN_ABRT = 0x00008000,  /* SI_FL_ERR is used to report aborts, and not SHUTR */
 
        SI_FL_RXBLK_CHAN = 0x00010000,  /* the channel doesn't want the stream-int to introduce data */
        SI_FL_RXBLK_BUFF = 0x00020000,  /* stream-int waits for a buffer allocation to complete */
index 7a4dfef7f397710526d90666c10008157fb2400c..61e66601c4bd7885d6a484044fc938bc807a1c9f 100644 (file)
@@ -470,12 +470,8 @@ struct stream *stream_new(struct session *sess, struct conn_stream *cs, struct b
        if (cs_conn(cs)) {
                const struct mux_ops *mux = cs_conn_mux(cs);
 
-               if (mux) {
-                       if (mux->flags & MX_FL_CLEAN_ABRT)
-                               cs_si(s->csf)->flags |= SI_FL_CLEAN_ABRT;
-                       if (mux->flags & MX_FL_HTX)
-                               s->flags |= SF_HTX;
-               }
+               if (mux && mux->flags & MX_FL_HTX)
+                       s->flags |= SF_HTX;
        }
 
        stream_init_srv_conn(s);