WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #116: new file mode 100644 WARNING: line length of 86 exceeds 80 columns #165: FILE: net/quic/stream.c:45: +struct quic_stream *quic_stream_find(struct quic_stream_table *streams, s64 stream_id) WARNING: line length of 81 exceeds 80 columns #167: FILE: net/quic/stream.c:47: + struct quic_shash_head *head = quic_stream_head(&streams->ht, stream_id); WARNING: line length of 90 exceeds 80 columns #177: FILE: net/quic/stream.c:57: +static void quic_stream_add(struct quic_stream_table *streams, struct quic_stream *stream) WARNING: line length of 85 exceeds 80 columns #192: FILE: net/quic/stream.c:72: +static struct quic_stream *quic_stream_send_create(struct quic_stream_table *streams, WARNING: line length of 81 exceeds 80 columns #193: FILE: net/quic/stream.c:73: + s64 max_stream_id, u8 is_serv) WARNING: line length of 92 exceeds 80 columns #202: FILE: net/quic/stream.c:82: + /* rfc9000#section-2.1: A stream ID that is used out of order results in all streams WARNING: line length of 83 exceeds 80 columns #212: FILE: net/quic/stream.c:92: + stream->send.max_bytes = streams->send.max_stream_data_uni; WARNING: line length of 95 exceeds 80 columns #214: FILE: net/quic/stream.c:94: + if (streams->send.next_uni_stream_id < stream_id + QUIC_STREAM_ID_STEP) WARNING: line length of 99 exceeds 80 columns #215: FILE: net/quic/stream.c:95: + streams->send.next_uni_stream_id = stream_id + QUIC_STREAM_ID_STEP; WARNING: line length of 88 exceeds 80 columns #223: FILE: net/quic/stream.c:103: + if (streams->send.next_bidi_stream_id < stream_id + QUIC_STREAM_ID_STEP) WARNING: line length of 92 exceeds 80 columns #224: FILE: net/quic/stream.c:104: + streams->send.next_bidi_stream_id = stream_id + QUIC_STREAM_ID_STEP; WARNING: line length of 91 exceeds 80 columns #228: FILE: net/quic/stream.c:108: + stream->send.max_bytes = streams->send.max_stream_data_bidi_remote; WARNING: line length of 90 exceeds 80 columns #229: FILE: net/quic/stream.c:109: + stream->recv.max_bytes = streams->recv.max_stream_data_bidi_local; WARNING: line length of 90 exceeds 80 columns #231: FILE: net/quic/stream.c:111: + stream->send.max_bytes = streams->send.max_stream_data_bidi_local; WARNING: line length of 91 exceeds 80 columns #232: FILE: net/quic/stream.c:112: + stream->recv.max_bytes = streams->recv.max_stream_data_bidi_remote; WARNING: line length of 85 exceeds 80 columns #243: FILE: net/quic/stream.c:123: +static struct quic_stream *quic_stream_recv_create(struct quic_stream_table *streams, WARNING: line length of 81 exceeds 80 columns #244: FILE: net/quic/stream.c:124: + s64 max_stream_id, u8 is_serv) WARNING: line length of 92 exceeds 80 columns #253: FILE: net/quic/stream.c:133: + /* rfc9000#section-2.1: A stream ID that is used out of order results in all streams WARNING: line length of 95 exceeds 80 columns #266: FILE: net/quic/stream.c:146: + if (streams->recv.next_uni_stream_id < stream_id + QUIC_STREAM_ID_STEP) WARNING: line length of 99 exceeds 80 columns #267: FILE: net/quic/stream.c:147: + streams->recv.next_uni_stream_id = stream_id + QUIC_STREAM_ID_STEP; WARNING: line length of 88 exceeds 80 columns #275: FILE: net/quic/stream.c:155: + if (streams->recv.next_bidi_stream_id < stream_id + QUIC_STREAM_ID_STEP) WARNING: line length of 92 exceeds 80 columns #276: FILE: net/quic/stream.c:156: + streams->recv.next_bidi_stream_id = stream_id + QUIC_STREAM_ID_STEP; WARNING: line length of 91 exceeds 80 columns #280: FILE: net/quic/stream.c:160: + stream->send.max_bytes = streams->send.max_stream_data_bidi_remote; WARNING: line length of 90 exceeds 80 columns #281: FILE: net/quic/stream.c:161: + stream->recv.max_bytes = streams->recv.max_stream_data_bidi_local; WARNING: line length of 90 exceeds 80 columns #283: FILE: net/quic/stream.c:163: + stream->send.max_bytes = streams->send.max_stream_data_bidi_local; WARNING: line length of 91 exceeds 80 columns #284: FILE: net/quic/stream.c:164: + stream->recv.max_bytes = streams->recv.max_stream_data_bidi_remote; WARNING: line length of 94 exceeds 80 columns #295: FILE: net/quic/stream.c:175: +static bool quic_stream_id_closed(struct quic_stream_table *streams, s64 stream_id, bool send) WARNING: line length of 88 exceeds 80 columns #308: FILE: net/quic/stream.c:188: +bool quic_stream_id_exceeds(struct quic_stream_table *streams, s64 stream_id, bool send) WARNING: line length of 92 exceeds 80 columns #323: FILE: net/quic/stream.c:203: + return nstreams + streams->send.streams_uni > streams->send.max_streams_uni; WARNING: line length of 86 exceeds 80 columns #330: FILE: net/quic/stream.c:210: + return nstreams + streams->send.streams_bidi > streams->send.max_streams_bidi; WARNING: line length of 90 exceeds 80 columns #334: FILE: net/quic/stream.c:214: +struct quic_stream *quic_stream_send_get(struct quic_stream_table *streams, s64 stream_id, WARNING: line length of 90 exceeds 80 columns #367: FILE: net/quic/stream.c:247: +struct quic_stream *quic_stream_recv_get(struct quic_stream_table *streams, s64 stream_id, WARNING: line length of 90 exceeds 80 columns #399: FILE: net/quic/stream.c:279: +/* Release or clean up a send stream. This function updates stream counters and state when WARNING: line length of 88 exceeds 80 columns #402: FILE: net/quic/stream.c:282: +void quic_stream_send_put(struct quic_stream_table *streams, struct quic_stream *stream, WARNING: line length of 93 exceeds 80 columns #406: FILE: net/quic/stream.c:286: + /* For unidirectional streams, decrement uni count and delete immediately. */ WARNING: line length of 81 exceeds 80 columns #412: FILE: net/quic/stream.c:292: + /* For bidi streams, only proceed if receive side is in a final state. */ WARNING: line length of 91 exceeds 80 columns #419: FILE: net/quic/stream.c:299: + /* Local-initiated stream: mark send done and decrement send.bidi count. */ WARNING: line length of 84 exceeds 80 columns #426: FILE: net/quic/stream.c:306: + /* Remote-initiated stream: mark recv done and decrement recv bidi count. */ WARNING: line length of 93 exceeds 80 columns #438: FILE: net/quic/stream.c:318: +/* Release or clean up a receive stream. This function updates stream counters and state when WARNING: line length of 88 exceeds 80 columns #441: FILE: net/quic/stream.c:321: +void quic_stream_recv_put(struct quic_stream_table *streams, struct quic_stream *stream, WARNING: line length of 91 exceeds 80 columns #460: FILE: net/quic/stream.c:340: + /* Local-initiated stream: mark send done and decrement send.bidi count. */ WARNING: line length of 84 exceeds 80 columns #467: FILE: net/quic/stream.c:347: + /* Remote-initiated stream: mark recv done and decrement recv bidi count. */ WARNING: line length of 87 exceeds 80 columns #479: FILE: net/quic/stream.c:359: +/* Updates the maximum allowed incoming stream IDs if any streams were recently closed. WARNING: line length of 85 exceeds 80 columns #480: FILE: net/quic/stream.c:360: + * Recalculates the max_uni and max_bidi stream ID limits based on the number of open WARNING: line length of 99 exceeds 80 columns #486: FILE: net/quic/stream.c:366: +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 #491: FILE: net/quic/stream.c:371: + ((streams->recv.max_streams_uni - streams->recv.streams_uni) << WARNING: line length of 86 exceeds 80 columns #493: FILE: net/quic/stream.c:373: + *max_uni = quic_stream_id_to_streams(streams->recv.max_uni_stream_id); WARNING: line length of 81 exceeds 80 columns #498: FILE: net/quic/stream.c:378: + streams->recv.next_bidi_stream_id - QUIC_STREAM_ID_STEP + WARNING: line length of 89 exceeds 80 columns #499: FILE: net/quic/stream.c:379: + ((streams->recv.max_streams_bidi - streams->recv.streams_bidi) << WARNING: line length of 88 exceeds 80 columns #501: FILE: net/quic/stream.c:381: + *max_bidi = quic_stream_id_to_streams(streams->recv.max_bidi_stream_id); WARNING: line length of 93 exceeds 80 columns #543: FILE: net/quic/stream.c:423: +void quic_stream_get_param(struct quic_stream_table *streams, struct quic_transport_param *p, WARNING: line length of 91 exceeds 80 columns #547: FILE: net/quic/stream.c:427: + p->max_stream_data_bidi_remote = streams->send.max_stream_data_bidi_remote; WARNING: line length of 89 exceeds 80 columns #548: FILE: net/quic/stream.c:428: + p->max_stream_data_bidi_local = streams->send.max_stream_data_bidi_local; WARNING: line length of 83 exceeds 80 columns #555: FILE: net/quic/stream.c:435: + p->max_stream_data_bidi_remote = streams->recv.max_stream_data_bidi_remote; WARNING: line length of 81 exceeds 80 columns #556: FILE: net/quic/stream.c:436: + p->max_stream_data_bidi_local = streams->recv.max_stream_data_bidi_local; WARNING: line length of 93 exceeds 80 columns #563: FILE: net/quic/stream.c:443: +void quic_stream_set_param(struct quic_stream_table *streams, struct quic_transport_param *p, WARNING: line length of 89 exceeds 80 columns #569: FILE: net/quic/stream.c:449: + streams->send.max_stream_data_bidi_local = p->max_stream_data_bidi_local; WARNING: line length of 91 exceeds 80 columns #570: FILE: net/quic/stream.c:450: + streams->send.max_stream_data_bidi_remote = p->max_stream_data_bidi_remote; WARNING: line length of 85 exceeds 80 columns #579: FILE: net/quic/stream.c:459: + quic_stream_streams_to_id(p->max_streams_bidi, type); WARNING: line length of 84 exceeds 80 columns #584: FILE: net/quic/stream.c:464: + quic_stream_streams_to_id(p->max_streams_uni, type); WARNING: line length of 81 exceeds 80 columns #601: FILE: net/quic/stream.c:481: + streams->recv.max_stream_data_bidi_local = p->max_stream_data_bidi_local; WARNING: line length of 83 exceeds 80 columns #602: FILE: net/quic/stream.c:482: + streams->recv.max_stream_data_bidi_remote = p->max_stream_data_bidi_remote; WARNING: line length of 94 exceeds 80 columns #652: 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 #653: 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 #654: 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 #656: 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 #657: 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 #669: 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 #672: 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 #673: 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 #676: FILE: net/quic/stream.h:41: + u32 errcode; /* Application error code to send in RESET_STREAM */ WARNING: line length of 95 exceeds 80 columns #677: FILE: net/quic/stream.h:42: + u32 frags; /* Number of sent STREAM frames not yet acknowledged */ WARNING: line length of 88 exceeds 80 columns #678: FILE: net/quic/stream.h:43: + u8 state; /* Send stream state, per rfc9000#section-3.1 */ WARNING: line length of 91 exceeds 80 columns #680: 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 #681: 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 #685: 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 #686: FILE: net/quic/stream.h:51: + u64 window; /* Remaining receive window before advertise a new limit */ WARNING: line length of 91 exceeds 80 columns #687: FILE: net/quic/stream.h:52: + u64 bytes; /* Bytes consumed by application from the stream */ WARNING: line length of 94 exceeds 80 columns #690: 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 #691: FILE: net/quic/stream.h:56: + u64 finalsz; /* Final size of the stream if FIN received */ WARNING: line length of 97 exceeds 80 columns #693: FILE: net/quic/stream.h:58: + u32 frags; /* Number of received STREAM frames pending reassembly */ WARNING: line length of 91 exceeds 80 columns #694: FILE: net/quic/stream.h:59: + u8 state; /* Receive stream state, per rfc9000#section-3.2 */ WARNING: line length of 91 exceeds 80 columns #697: FILE: net/quic/stream.h:62: + u8 done:1; /* True if FIN received and final size validated */ WARNING: line length of 83 exceeds 80 columns #702: FILE: net/quic/stream.h:67: + struct quic_shash_table ht; /* Hash table storing all active streams */ WARNING: line length of 84 exceeds 80 columns #705: FILE: net/quic/stream.h:70: + /* Parameters received from peer, defined in rfc9000#section-18.2 */ WARNING: line length of 97 exceeds 80 columns #706: FILE: net/quic/stream.h:71: + u64 max_stream_data_bidi_remote; /* initial_max_stream_data_bidi_remote */ WARNING: line length of 96 exceeds 80 columns #707: FILE: net/quic/stream.h:72: + u64 max_stream_data_bidi_local; /* initial_max_stream_data_bidi_local */ WARNING: line length of 89 exceeds 80 columns #708: FILE: net/quic/stream.h:73: + u64 max_stream_data_uni; /* initial_max_stream_data_uni */ WARNING: line length of 86 exceeds 80 columns #709: FILE: net/quic/stream.h:74: + u64 max_streams_bidi; /* initial_max_streams_bidi */ WARNING: line length of 85 exceeds 80 columns #710: FILE: net/quic/stream.h:75: + u64 max_streams_uni; /* initial_max_streams_uni */ WARNING: line length of 86 exceeds 80 columns #712: FILE: net/quic/stream.h:77: + s64 next_bidi_stream_id; /* Next bidi stream ID to be opened */ WARNING: line length of 85 exceeds 80 columns #713: FILE: net/quic/stream.h:78: + s64 next_uni_stream_id; /* Next uni stream ID to be opened */ WARNING: line length of 84 exceeds 80 columns #714: FILE: net/quic/stream.h:79: + s64 max_bidi_stream_id; /* Highest allowed bidi stream ID */ WARNING: line length of 83 exceeds 80 columns #715: FILE: net/quic/stream.h:80: + s64 max_uni_stream_id; /* Highest allowed uni stream ID */ WARNING: line length of 84 exceeds 80 columns #716: FILE: net/quic/stream.h:81: + s64 active_stream_id; /* Most recently opened stream ID */ WARNING: line length of 97 exceeds 80 columns #718: FILE: net/quic/stream.h:83: + u8 bidi_blocked:1; /* True if STREAMS_BLOCKED_BIDI was sent and not ACKed */ WARNING: line length of 96 exceeds 80 columns #719: FILE: net/quic/stream.h:84: + u8 uni_blocked:1; /* True if STREAMS_BLOCKED_UNI was sent and not ACKed */ WARNING: line length of 85 exceeds 80 columns #720: FILE: net/quic/stream.h:85: + u16 streams_bidi; /* Number of currently active bidi streams */ WARNING: line length of 84 exceeds 80 columns #721: FILE: net/quic/stream.h:86: + u16 streams_uni; /* Number of currently active uni streams */ WARNING: line length of 82 exceeds 80 columns #724: FILE: net/quic/stream.h:89: + /* Our advertised limits to the peer, per rfc9000#section-18.2 */ WARNING: line length of 97 exceeds 80 columns #725: FILE: net/quic/stream.h:90: + u64 max_stream_data_bidi_remote; /* initial_max_stream_data_bidi_remote */ WARNING: line length of 96 exceeds 80 columns #726: FILE: net/quic/stream.h:91: + u64 max_stream_data_bidi_local; /* initial_max_stream_data_bidi_local */ WARNING: line length of 89 exceeds 80 columns #727: FILE: net/quic/stream.h:92: + u64 max_stream_data_uni; /* initial_max_stream_data_uni */ WARNING: line length of 86 exceeds 80 columns #728: FILE: net/quic/stream.h:93: + u64 max_streams_bidi; /* initial_max_streams_bidi */ WARNING: line length of 85 exceeds 80 columns #729: FILE: net/quic/stream.h:94: + u64 max_streams_uni; /* initial_max_streams_uni */ WARNING: line length of 92 exceeds 80 columns #731: FILE: net/quic/stream.h:96: + s64 next_bidi_stream_id; /* Next expected bidi stream ID from peer */ WARNING: line length of 91 exceeds 80 columns #732: FILE: net/quic/stream.h:97: + s64 next_uni_stream_id; /* Next expected uni stream ID from peer */ WARNING: line length of 90 exceeds 80 columns #733: FILE: net/quic/stream.h:98: + s64 max_bidi_stream_id; /* Current allowed bidi stream ID range */ WARNING: line length of 89 exceeds 80 columns #734: FILE: net/quic/stream.h:99: + s64 max_uni_stream_id; /* Current allowed uni stream ID range */ WARNING: line length of 87 exceeds 80 columns #736: FILE: net/quic/stream.h:101: + u8 bidi_pending:1; /* True if MAX_STREAMS_BIDI needs to be sent */ WARNING: line length of 86 exceeds 80 columns #737: FILE: net/quic/stream.h:102: + u8 uni_pending:1; /* True if MAX_STREAMS_UNI needs to be sent */ WARNING: line length of 83 exceeds 80 columns #738: FILE: net/quic/stream.h:103: + u16 streams_bidi; /* Number of currently open bidi streams */ WARNING: line length of 82 exceeds 80 columns #739: FILE: net/quic/stream.h:104: + u16 streams_uni; /* Number of currently open uni streams */ WARNING: line length of 90 exceeds 80 columns #753: FILE: net/quic/stream.h:118: +struct quic_stream *quic_stream_send_get(struct quic_stream_table *streams, s64 stream_id, WARNING: line length of 90 exceeds 80 columns #755: FILE: net/quic/stream.h:120: +struct quic_stream *quic_stream_recv_get(struct quic_stream_table *streams, s64 stream_id, WARNING: line length of 88 exceeds 80 columns #757: FILE: net/quic/stream.h:122: +void quic_stream_send_put(struct quic_stream_table *streams, struct quic_stream *stream, WARNING: line length of 88 exceeds 80 columns #759: FILE: net/quic/stream.h:124: +void quic_stream_recv_put(struct quic_stream_table *streams, struct quic_stream *stream, WARNING: line length of 100 exceeds 80 columns #762: FILE: net/quic/stream.h:127: +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 #763: FILE: net/quic/stream.h:128: +bool quic_stream_id_exceeds(struct quic_stream_table *streams, s64 stream_id, bool send); WARNING: line length of 87 exceeds 80 columns #764: FILE: net/quic/stream.h:129: +struct quic_stream *quic_stream_find(struct quic_stream_table *streams, s64 stream_id); WARNING: line length of 93 exceeds 80 columns #766: FILE: net/quic/stream.h:131: +void quic_stream_get_param(struct quic_stream_table *streams, struct quic_transport_param *p, WARNING: line length of 93 exceeds 80 columns #768: FILE: net/quic/stream.h:133: +void quic_stream_set_param(struct quic_stream_table *streams, struct quic_transport_param *p, total: 0 errors, 123 warnings, 0 checks, 693 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 1de3c7352ffd ("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 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, 123 warnings, 0 checks, 693 lines checked