WARNING: line length of 92 exceeds 80 columns #167: 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 #172: 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 #184: 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 #200: FILE: net/quic/stream.c:80: + s64 max_stream_id, bool send, bool is_serv) WARNING: line length of 92 exceeds 80 columns #215: FILE: net/quic/stream.c:95: + /* 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 #226: FILE: net/quic/stream.c:106: + stream->send.max_bytes = limits->max_stream_data_uni; WARNING: line length of 85 exceeds 80 columns #228: FILE: net/quic/stream.c:108: + stream->recv.max_bytes = limits->max_stream_data_uni; WARNING: line length of 96 exceeds 80 columns #231: FILE: net/quic/stream.c:111: + /* Streams must be opened sequentially. Update the next stream ID so the WARNING: line length of 96 exceeds 80 columns #232: FILE: net/quic/stream.c:112: + * correct starting point is known if an out-of-order open is requested. WARNING: line length of 85 exceeds 80 columns #234: FILE: net/quic/stream.c:114: + limits->next_uni_stream_id = stream_id + QUIC_STREAM_ID_STEP; WARNING: line length of 91 exceeds 80 columns #243: FILE: net/quic/stream.c:123: + stream->send.max_bytes = streams->send.max_stream_data_bidi_remote; WARNING: line length of 90 exceeds 80 columns #244: FILE: net/quic/stream.c:124: + stream->recv.max_bytes = streams->recv.max_stream_data_bidi_local; WARNING: line length of 90 exceeds 80 columns #246: FILE: net/quic/stream.c:126: + stream->send.max_bytes = streams->send.max_stream_data_bidi_local; WARNING: line length of 91 exceeds 80 columns #247: FILE: net/quic/stream.c:127: + stream->recv.max_bytes = streams->recv.max_stream_data_bidi_remote; WARNING: line length of 94 exceeds 80 columns #261: FILE: net/quic/stream.c:141: +static bool quic_stream_id_closed(struct quic_stream_table *streams, s64 stream_id, bool send) WARNING: line length of 83 exceeds 80 columns #263: FILE: net/quic/stream.c:143: + struct quic_stream_limits *limits = send ? &streams->send : &streams->recv; WARNING: line length of 88 exceeds 80 columns #271: FILE: net/quic/stream.c:151: +bool quic_stream_id_exceeds(struct quic_stream_table *streams, s64 stream_id, bool send) WARNING: line length of 92 exceeds 80 columns #286: FILE: net/quic/stream.c:166: + return nstreams + streams->send.streams_uni > streams->send.max_streams_uni; WARNING: line length of 86 exceeds 80 columns #293: FILE: net/quic/stream.c:173: + return nstreams + streams->send.streams_bidi > streams->send.max_streams_bidi; WARNING: line length of 90 exceeds 80 columns #297: FILE: net/quic/stream.c:177: +struct quic_stream *quic_stream_send_get(struct quic_stream_table *streams, s64 stream_id, WARNING: line length of 90 exceeds 80 columns #330: FILE: net/quic/stream.c:210: +struct quic_stream *quic_stream_recv_get(struct quic_stream_table *streams, s64 stream_id, WARNING: line length of 90 exceeds 80 columns #362: FILE: net/quic/stream.c:242: +/* Common helper for handling bidi stream cleanup in both send and recv put operations. */ WARNING: line length of 95 exceeds 80 columns #363: FILE: net/quic/stream.c:243: +static void quic_stream_bidi_put(struct quic_stream_table *streams, struct quic_stream *stream, WARNING: line length of 91 exceeds 80 columns #367: FILE: net/quic/stream.c:247: + /* Local-initiated stream: mark send done and decrement send.bidi count. */ WARNING: line length of 92 exceeds 80 columns #373: FILE: net/quic/stream.c:253: + /* Remote-initiated stream: mark recv done and decrement recv bidi count. */ WARNING: line length of 92 exceeds 80 columns #386: FILE: net/quic/stream.c:266: +/* Release or clean up a send stream. This function updates stream counters and state when a WARNING: line length of 96 exceeds 80 columns #387: FILE: net/quic/stream.c:267: + * send stream has either successfully sent all data or has been reset. Requires sock lock held. WARNING: line length of 88 exceeds 80 columns #389: FILE: net/quic/stream.c:269: +void quic_stream_send_put(struct quic_stream_table *streams, struct quic_stream *stream, WARNING: line length of 93 exceeds 80 columns #393: FILE: net/quic/stream.c:273: + /* For unidirectional streams, decrement uni count and delete immediately. */ WARNING: line length of 81 exceeds 80 columns #399: FILE: net/quic/stream.c:279: + /* For bidi streams, only proceed if receive side is in a final state. */ WARNING: line length of 93 exceeds 80 columns #408: FILE: net/quic/stream.c:288: +/* Release or clean up a receive stream. This function updates stream counters and state when WARNING: line length of 92 exceeds 80 columns #409: FILE: net/quic/stream.c:289: + * the receive side has either consumed all data or has been reset. Requires sock lock held. WARNING: line length of 88 exceeds 80 columns #411: FILE: net/quic/stream.c:291: +void quic_stream_recv_put(struct quic_stream_table *streams, struct quic_stream *stream, WARNING: line length of 87 exceeds 80 columns #435: FILE: net/quic/stream.c:315: +/* Updates the maximum allowed incoming stream IDs if any streams were recently closed. WARNING: line length of 85 exceeds 80 columns #436: FILE: net/quic/stream.c:316: + * Recalculates the max_uni and max_bidi stream ID limits based on the number of open WARNING: line length of 99 exceeds 80 columns #442: FILE: net/quic/stream.c:322: +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 #447: FILE: net/quic/stream.c:327: + ((streams->recv.max_streams_uni - streams->recv.streams_uni) << WARNING: line length of 86 exceeds 80 columns #449: FILE: net/quic/stream.c:329: + *max_uni = quic_stream_id_to_streams(streams->recv.max_uni_stream_id); WARNING: line length of 81 exceeds 80 columns #454: FILE: net/quic/stream.c:334: + streams->recv.next_bidi_stream_id - QUIC_STREAM_ID_STEP + WARNING: line length of 89 exceeds 80 columns #455: FILE: net/quic/stream.c:335: + ((streams->recv.max_streams_bidi - streams->recv.streams_bidi) << WARNING: line length of 88 exceeds 80 columns #457: FILE: net/quic/stream.c:337: + *max_bidi = quic_stream_id_to_streams(streams->recv.max_bidi_stream_id); WARNING: line length of 93 exceeds 80 columns #497: FILE: net/quic/stream.c:377: +void quic_stream_get_param(struct quic_stream_table *streams, struct quic_transport_param *p) WARNING: line length of 88 exceeds 80 columns #499: FILE: net/quic/stream.c:379: + struct quic_stream_limits *limits = p->remote ? &streams->send : &streams->recv; WARNING: line length of 93 exceeds 80 columns #509: FILE: net/quic/stream.c:389: +void quic_stream_set_param(struct quic_stream_table *streams, struct quic_transport_param *p, WARNING: line length of 88 exceeds 80 columns #512: FILE: net/quic/stream.c:392: + struct quic_stream_limits *limits = p->remote ? &streams->send : &streams->recv; WARNING: line length of 95 exceeds 80 columns #530: FILE: net/quic/stream.c:410: + limits->max_bidi_stream_id = quic_stream_streams_to_id(p->max_streams_bidi, bidi_type); WARNING: line length of 92 exceeds 80 columns #533: FILE: net/quic/stream.c:413: + limits->max_uni_stream_id = quic_stream_streams_to_id(p->max_streams_uni, uni_type); WARNING: line length of 94 exceeds 80 columns #558: 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 #559: 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 #560: 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 #562: 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 #563: 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 #575: 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 #578: 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 #579: 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 #582: FILE: net/quic/stream.h:41: + u32 errcode; /* Application error code to send in RESET_STREAM */ WARNING: line length of 95 exceeds 80 columns #583: FILE: net/quic/stream.h:42: + u32 frags; /* Number of sent STREAM frames not yet acknowledged */ WARNING: line length of 88 exceeds 80 columns #584: FILE: net/quic/stream.h:43: + u8 state; /* Send stream state, per rfc9000#section-3.1 */ WARNING: line length of 91 exceeds 80 columns #586: FILE: net/quic/stream.h:45: + u8 data_blocked:1; /* True if flow control blocks sending more data */ WARNING: line length of 100 exceeds 80 columns #587: FILE: net/quic/stream.h:46: + u8 done:1; /* True if application indicated end of stream (FIN sent) */ WARNING: line length of 87 exceeds 80 columns #591: 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 #592: FILE: net/quic/stream.h:51: + u64 window; /* Remaining receive window before advertise a new limit */ WARNING: line length of 91 exceeds 80 columns #593: FILE: net/quic/stream.h:52: + u64 bytes; /* Bytes consumed by application from the stream */ WARNING: line length of 94 exceeds 80 columns #596: 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 #597: FILE: net/quic/stream.h:56: + u64 finalsz; /* Final size of the stream if FIN received */ WARNING: line length of 97 exceeds 80 columns #599: FILE: net/quic/stream.h:58: + u32 frags; /* Number of received STREAM frames pending reassembly */ WARNING: line length of 91 exceeds 80 columns #600: FILE: net/quic/stream.h:59: + u8 state; /* Receive stream state, per rfc9000#section-3.2 */ WARNING: line length of 91 exceeds 80 columns #603: FILE: net/quic/stream.h:62: + u8 done:1; /* True if FIN received and final size validated */ WARNING: line length of 89 exceeds 80 columns #609: 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 #610: 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 #611: FILE: net/quic/stream.h:70: + u64 max_stream_data_uni; /* initial_max_stream_data_uni */ WARNING: line length of 83 exceeds 80 columns #615: 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 #616: 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 #631: FILE: net/quic/stream.h:90: + struct hlist_head *head; /* Hash table storing all active streams */ WARNING: line length of 90 exceeds 80 columns #647: FILE: net/quic/stream.h:106: +struct quic_stream *quic_stream_send_get(struct quic_stream_table *streams, s64 stream_id, WARNING: line length of 90 exceeds 80 columns #649: FILE: net/quic/stream.h:108: +struct quic_stream *quic_stream_recv_get(struct quic_stream_table *streams, s64 stream_id, WARNING: line length of 88 exceeds 80 columns #651: FILE: net/quic/stream.h:110: +void quic_stream_send_put(struct quic_stream_table *streams, struct quic_stream *stream, WARNING: line length of 88 exceeds 80 columns #653: FILE: net/quic/stream.h:112: +void quic_stream_recv_put(struct quic_stream_table *streams, struct quic_stream *stream, WARNING: line length of 100 exceeds 80 columns #656: FILE: net/quic/stream.h:115: +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 #657: FILE: net/quic/stream.h:116: +bool quic_stream_id_exceeds(struct quic_stream_table *streams, s64 stream_id, bool send); WARNING: line length of 87 exceeds 80 columns #658: FILE: net/quic/stream.h:117: +struct quic_stream *quic_stream_find(struct quic_stream_table *streams, s64 stream_id); WARNING: line length of 94 exceeds 80 columns #660: FILE: net/quic/stream.h:119: +void quic_stream_get_param(struct quic_stream_table *streams, struct quic_transport_param *p); WARNING: line length of 93 exceeds 80 columns #661: FILE: net/quic/stream.h:120: +void quic_stream_set_param(struct quic_stream_table *streams, struct quic_transport_param *p, total: 0 errors, 83 warnings, 0 checks, 586 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 9671c63af7f0 ("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, 83 warnings, 0 checks, 586 lines checked