WARNING: line length of 92 exceeds 80 columns #162: FILE: net/quic/stream.c:47: +static struct hlist_head *quic_stream_head(struct quic_stream_table *streams, s64 stream_id) WARNING: line length of 86 exceeds 80 columns #167: FILE: net/quic/stream.c:52: +struct quic_stream *quic_stream_find(struct quic_stream_table *streams, s64 stream_id) WARNING: line length of 90 exceeds 80 columns #179: FILE: net/quic/stream.c:64: +static void quic_stream_add(struct quic_stream_table *streams, struct quic_stream *stream) WARNING: line length of 89 exceeds 80 columns #195: FILE: net/quic/stream.c:80: + s64 max_stream_id, bool send, bool is_serv) WARNING: line length of 92 exceeds 80 columns #213: FILE: net/quic/stream.c:98: + /* rfc9000#section-2.1: A stream ID that is used out of order results in all streams WARNING: line length of 85 exceeds 80 columns #224: FILE: net/quic/stream.c:109: + stream->send.max_bytes = limits->max_stream_data_uni; WARNING: line length of 85 exceeds 80 columns #226: FILE: net/quic/stream.c:111: + stream->recv.max_bytes = limits->max_stream_data_uni; WARNING: line length of 91 exceeds 80 columns #235: FILE: net/quic/stream.c:120: + stream->send.max_bytes = streams->send.max_stream_data_bidi_remote; WARNING: line length of 90 exceeds 80 columns #236: FILE: net/quic/stream.c:121: + stream->recv.max_bytes = streams->recv.max_stream_data_bidi_local; WARNING: line length of 90 exceeds 80 columns #238: FILE: net/quic/stream.c:123: + stream->send.max_bytes = streams->send.max_stream_data_bidi_local; WARNING: line length of 91 exceeds 80 columns #239: FILE: net/quic/stream.c:124: + stream->recv.max_bytes = streams->recv.max_stream_data_bidi_remote; WARNING: line length of 88 exceeds 80 columns #252: FILE: net/quic/stream.c:137: + /* Streams must be opened sequentially. Update the next stream ID so the correct WARNING: line length of 87 exceeds 80 columns #253: FILE: net/quic/stream.c:138: + * starting point is known if an out-of-order open is requested. Note overflow WARNING: line length of 82 exceeds 80 columns #254: FILE: net/quic/stream.c:139: + * of next_uni/bidi_stream_id and streams_uni/bidi is impossible with u64. WARNING: line length of 94 exceeds 80 columns #275: FILE: net/quic/stream.c:160: +static bool quic_stream_id_closed(struct quic_stream_table *streams, s64 stream_id, bool send) WARNING: line length of 83 exceeds 80 columns #277: FILE: net/quic/stream.c:162: + struct quic_stream_limits *limits = send ? &streams->send : &streams->recv; WARNING: line length of 88 exceeds 80 columns #285: FILE: net/quic/stream.c:170: +bool quic_stream_id_exceeds(struct quic_stream_table *streams, s64 stream_id, bool send) WARNING: line length of 88 exceeds 80 columns #290: FILE: net/quic/stream.c:175: + /* recv.max_uni_stream_id is updated in quic_stream_max_streams_update() WARNING: line length of 86 exceeds 80 columns #291: FILE: net/quic/stream.c:176: + * already based on next_uni/bidi_stream_id, max_streams_uni/bidi, and WARNING: line length of 88 exceeds 80 columns #292: FILE: net/quic/stream.c:177: + * streams_uni/bidi, so only recv.max_uni_stream_id needs to be checked. WARNING: line length of 92 exceeds 80 columns #304: FILE: net/quic/stream.c:189: + return nstreams + streams->send.streams_uni > streams->send.max_streams_uni; WARNING: line length of 86 exceeds 80 columns #311: FILE: net/quic/stream.c:196: + return nstreams + streams->send.streams_bidi > streams->send.max_streams_bidi; WARNING: line length of 96 exceeds 80 columns #315: FILE: net/quic/stream.c:200: +struct quic_stream *quic_stream_get(struct quic_stream_table *streams, s64 stream_id, u32 flags, WARNING: line length of 93 exceeds 80 columns #356: FILE: net/quic/stream.c:241: +/* Release or clean up a send or recv stream. This function updates stream counters and state WARNING: line length of 93 exceeds 80 columns #357: FILE: net/quic/stream.c:242: + * when a send stream has either successfully sent all data or has been reset, or when a recv WARNING: line length of 82 exceeds 80 columns #358: FILE: net/quic/stream.c:243: + * stream has either consumed all data or has been reset. Requires sock lock held. WARNING: line length of 97 exceeds 80 columns #360: FILE: net/quic/stream.c:245: +void quic_stream_put(struct quic_stream_table *streams, struct quic_stream *stream, bool is_serv, WARNING: line length of 90 exceeds 80 columns #365: FILE: net/quic/stream.c:250: + /* For uni streams, decrement uni count and delete immediately. */ WARNING: line length of 89 exceeds 80 columns #383: FILE: net/quic/stream.c:268: + /* For bidi streams, only proceed if receive side is in a final state. */ WARNING: line length of 86 exceeds 80 columns #389: FILE: net/quic/stream.c:274: + /* For bidi streams, only proceed if send side is in a final state. */ WARNING: line length of 91 exceeds 80 columns #396: FILE: net/quic/stream.c:281: + /* Local-initiated stream: mark send done and decrement send.bidi count. */ WARNING: line length of 92 exceeds 80 columns #402: FILE: net/quic/stream.c:287: + /* Remote-initiated stream: mark recv done and decrement recv bidi count. */ WARNING: line length of 87 exceeds 80 columns #415: FILE: net/quic/stream.c:300: +/* Updates the maximum allowed incoming stream IDs if any streams were recently closed. WARNING: line length of 85 exceeds 80 columns #416: FILE: net/quic/stream.c:301: + * Recalculates the max_uni and max_bidi stream ID limits based on the number of open WARNING: line length of 99 exceeds 80 columns #422: FILE: net/quic/stream.c:307: +bool quic_stream_max_streams_update(struct quic_stream_table *streams, s64 *max_uni, s64 *max_bidi) WARNING: line length of 87 exceeds 80 columns #427: FILE: net/quic/stream.c:312: + ((streams->recv.max_streams_uni - streams->recv.streams_uni) << WARNING: line length of 86 exceeds 80 columns #429: FILE: net/quic/stream.c:314: + *max_uni = quic_stream_id_to_streams(streams->recv.max_uni_stream_id); WARNING: line length of 81 exceeds 80 columns #434: FILE: net/quic/stream.c:319: + streams->recv.next_bidi_stream_id - QUIC_STREAM_ID_STEP + WARNING: line length of 89 exceeds 80 columns #435: FILE: net/quic/stream.c:320: + ((streams->recv.max_streams_bidi - streams->recv.streams_bidi) << WARNING: line length of 88 exceeds 80 columns #437: FILE: net/quic/stream.c:322: + *max_bidi = quic_stream_id_to_streams(streams->recv.max_bidi_stream_id); WARNING: line length of 93 exceeds 80 columns #477: FILE: net/quic/stream.c:362: +void quic_stream_get_param(struct quic_stream_table *streams, struct quic_transport_param *p) WARNING: line length of 88 exceeds 80 columns #479: FILE: net/quic/stream.c:364: + struct quic_stream_limits *limits = p->remote ? &streams->send : &streams->recv; WARNING: line length of 93 exceeds 80 columns #489: FILE: net/quic/stream.c:374: +void quic_stream_set_param(struct quic_stream_table *streams, struct quic_transport_param *p, WARNING: line length of 88 exceeds 80 columns #492: FILE: net/quic/stream.c:377: + struct quic_stream_limits *limits = p->remote ? &streams->send : &streams->recv; WARNING: line length of 95 exceeds 80 columns #510: FILE: net/quic/stream.c:395: + limits->max_bidi_stream_id = quic_stream_streams_to_id(p->max_streams_bidi, bidi_type); WARNING: line length of 92 exceeds 80 columns #513: FILE: net/quic/stream.c:398: + limits->max_uni_stream_id = quic_stream_streams_to_id(p->max_streams_uni, uni_type); WARNING: line length of 94 exceeds 80 columns #538: FILE: net/quic/stream.h:17: + * The least significant bit (0x01) of the stream ID identifies the initiator of the stream. WARNING: line length of 88 exceeds 80 columns #539: FILE: net/quic/stream.h:18: + * Client-initiated streams have even-numbered stream IDs (with the bit set to 0), and WARNING: line length of 83 exceeds 80 columns #540: FILE: net/quic/stream.h:19: + * server-initiated streams have odd-numbered stream IDs (with the bit set to 1). WARNING: line length of 97 exceeds 80 columns #542: FILE: net/quic/stream.h:21: + * The second least significant bit (0x02) of the stream ID distinguishes between bidirectional WARNING: line length of 88 exceeds 80 columns #543: FILE: net/quic/stream.h:22: + * streams (with the bit set to 0) and unidirectional streams (with the bit set to 1). WARNING: line length of 90 exceeds 80 columns #555: FILE: net/quic/stream.h:34: + s64 id; /* Stream ID as defined in RFC 9000 Section 2.1 */ WARNING: line length of 99 exceeds 80 columns #558: FILE: net/quic/stream.h:37: + u64 last_max_bytes; /* Maximum send offset advertised by peer at last update */ WARNING: line length of 94 exceeds 80 columns #559: FILE: net/quic/stream.h:38: + u64 max_bytes; /* Current maximum offset we are allowed to send to */ WARNING: line length of 92 exceeds 80 columns #562: FILE: net/quic/stream.h:41: + u32 errcode; /* Application error code to send in RESET_STREAM */ WARNING: line length of 95 exceeds 80 columns #563: FILE: net/quic/stream.h:42: + u32 frags; /* Number of sent STREAM frames not yet acknowledged */ WARNING: line length of 88 exceeds 80 columns #564: FILE: net/quic/stream.h:43: + u8 state; /* Send stream state, per rfc9000#section-3.1 */ WARNING: line length of 91 exceeds 80 columns #566: FILE: net/quic/stream.h:45: + u8 data_blocked; /* True if flow control blocks sending more data */ WARNING: line length of 100 exceeds 80 columns #567: FILE: net/quic/stream.h:46: + u8 done; /* True if application indicated end of stream (FIN sent) */ WARNING: line length of 87 exceeds 80 columns #571: FILE: net/quic/stream.h:50: + u64 max_bytes; /* Maximum offset peer is allowed to send to */ WARNING: line length of 99 exceeds 80 columns #572: FILE: net/quic/stream.h:51: + u64 window; /* Remaining receive window before advertise a new limit */ WARNING: line length of 91 exceeds 80 columns #573: FILE: net/quic/stream.h:52: + u64 bytes; /* Bytes consumed by application from the stream */ WARNING: line length of 94 exceeds 80 columns #576: FILE: net/quic/stream.h:55: + u64 offset; /* Offset up to which data is in buffer or consumed */ WARNING: line length of 86 exceeds 80 columns #577: FILE: net/quic/stream.h:56: + u64 finalsz; /* Final size of the stream if FIN received */ WARNING: line length of 97 exceeds 80 columns #579: FILE: net/quic/stream.h:58: + u32 frags; /* Number of received STREAM frames pending reassembly */ WARNING: line length of 91 exceeds 80 columns #580: FILE: net/quic/stream.h:59: + u8 state; /* Receive stream state, per rfc9000#section-3.2 */ WARNING: line length of 91 exceeds 80 columns #583: FILE: net/quic/stream.h:62: + u8 done; /* True if FIN received and final size validated */ WARNING: line length of 89 exceeds 80 columns #589: FILE: net/quic/stream.h:68: + u64 max_stream_data_bidi_remote; /* initial_max_stream_data_bidi_remote */ WARNING: line length of 88 exceeds 80 columns #590: FILE: net/quic/stream.h:69: + u64 max_stream_data_bidi_local; /* initial_max_stream_data_bidi_local */ WARNING: line length of 81 exceeds 80 columns #591: FILE: net/quic/stream.h:70: + u64 max_stream_data_uni; /* initial_max_stream_data_uni */ WARNING: line length of 83 exceeds 80 columns #595: FILE: net/quic/stream.h:74: + s64 next_bidi_stream_id; /* Next bidi stream ID to open or accept */ WARNING: line length of 82 exceeds 80 columns #596: FILE: net/quic/stream.h:75: + s64 next_uni_stream_id; /* Next uni stream ID to open or accept */ WARNING: line length of 83 exceeds 80 columns #611: FILE: net/quic/stream.h:90: + struct hlist_head *head; /* Hash table storing all active streams */ WARNING: line length of 96 exceeds 80 columns #627: FILE: net/quic/stream.h:106: +struct quic_stream *quic_stream_get(struct quic_stream_table *streams, s64 stream_id, u32 flags, WARNING: line length of 97 exceeds 80 columns #629: FILE: net/quic/stream.h:108: +void quic_stream_put(struct quic_stream_table *streams, struct quic_stream *stream, bool is_serv, WARNING: line length of 100 exceeds 80 columns #632: FILE: net/quic/stream.h:111: +bool quic_stream_max_streams_update(struct quic_stream_table *streams, s64 *max_uni, s64 *max_bidi); WARNING: line length of 89 exceeds 80 columns #633: FILE: net/quic/stream.h:112: +bool quic_stream_id_exceeds(struct quic_stream_table *streams, s64 stream_id, bool send); WARNING: line length of 87 exceeds 80 columns #634: FILE: net/quic/stream.h:113: +struct quic_stream *quic_stream_find(struct quic_stream_table *streams, s64 stream_id); WARNING: line length of 94 exceeds 80 columns #636: FILE: net/quic/stream.h:115: +void quic_stream_get_param(struct quic_stream_table *streams, struct quic_transport_param *p); WARNING: line length of 93 exceeds 80 columns #637: FILE: net/quic/stream.h:116: +void quic_stream_set_param(struct quic_stream_table *streams, struct quic_transport_param *p, total: 0 errors, 80 warnings, 0 checks, 567 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. Commit 443a82783563 ("quic: add stream management") has style problems, please review. NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT BAD_REPORTED_BY_LINK CAMELCASE COMMIT_LOG_LONG_LINE FILE_PATH_CHANGES GIT_COMMIT_ID MACRO_ARG_REUSE NO_AUTHOR_SIGN_OFF NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. total: 0 errors, 80 warnings, 0 checks, 567 lines checked