WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #113: new file mode 100644 WARNING: line length of 86 exceeds 80 columns #175: FILE: net/quic/stream.c:58: +struct quic_stream *quic_stream_find(struct quic_stream_table *streams, s64 stream_id) WARNING: line length of 90 exceeds 80 columns #187: FILE: net/quic/stream.c:70: +static void quic_stream_add(struct quic_stream_table *streams, struct quic_stream *stream) WARNING: line length of 85 exceeds 80 columns #202: FILE: net/quic/stream.c:85: +static struct quic_stream *quic_stream_send_create(struct quic_stream_table *streams, WARNING: line length of 81 exceeds 80 columns #203: FILE: net/quic/stream.c:86: + s64 max_stream_id, u8 is_serv) WARNING: line length of 92 exceeds 80 columns #212: 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 83 exceeds 80 columns #222: FILE: net/quic/stream.c:105: + stream->send.max_bytes = streams->send.max_stream_data_uni; WARNING: line length of 95 exceeds 80 columns #224: FILE: net/quic/stream.c:107: + if (streams->send.next_uni_stream_id < stream_id + QUIC_STREAM_ID_STEP) WARNING: line length of 99 exceeds 80 columns #225: FILE: net/quic/stream.c:108: + streams->send.next_uni_stream_id = stream_id + QUIC_STREAM_ID_STEP; WARNING: line length of 88 exceeds 80 columns #233: FILE: net/quic/stream.c:116: + if (streams->send.next_bidi_stream_id < stream_id + QUIC_STREAM_ID_STEP) WARNING: line length of 92 exceeds 80 columns #234: FILE: net/quic/stream.c:117: + streams->send.next_bidi_stream_id = stream_id + QUIC_STREAM_ID_STEP; WARNING: line length of 91 exceeds 80 columns #238: FILE: net/quic/stream.c:121: + stream->send.max_bytes = streams->send.max_stream_data_bidi_remote; WARNING: line length of 90 exceeds 80 columns #239: FILE: net/quic/stream.c:122: + stream->recv.max_bytes = streams->recv.max_stream_data_bidi_local; WARNING: line length of 90 exceeds 80 columns #241: FILE: net/quic/stream.c:124: + stream->send.max_bytes = streams->send.max_stream_data_bidi_local; WARNING: line length of 91 exceeds 80 columns #242: FILE: net/quic/stream.c:125: + stream->recv.max_bytes = streams->recv.max_stream_data_bidi_remote; WARNING: line length of 85 exceeds 80 columns #253: FILE: net/quic/stream.c:136: +static struct quic_stream *quic_stream_recv_create(struct quic_stream_table *streams, WARNING: line length of 81 exceeds 80 columns #254: FILE: net/quic/stream.c:137: + s64 max_stream_id, u8 is_serv) WARNING: line length of 92 exceeds 80 columns #263: FILE: net/quic/stream.c:146: + /* 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 #276: FILE: net/quic/stream.c:159: + if (streams->recv.next_uni_stream_id < stream_id + QUIC_STREAM_ID_STEP) WARNING: line length of 99 exceeds 80 columns #277: FILE: net/quic/stream.c:160: + streams->recv.next_uni_stream_id = stream_id + QUIC_STREAM_ID_STEP; WARNING: line length of 88 exceeds 80 columns #285: FILE: net/quic/stream.c:168: + if (streams->recv.next_bidi_stream_id < stream_id + QUIC_STREAM_ID_STEP) WARNING: line length of 92 exceeds 80 columns #286: FILE: net/quic/stream.c:169: + streams->recv.next_bidi_stream_id = stream_id + QUIC_STREAM_ID_STEP; WARNING: line length of 91 exceeds 80 columns #290: FILE: net/quic/stream.c:173: + stream->send.max_bytes = streams->send.max_stream_data_bidi_remote; WARNING: line length of 90 exceeds 80 columns #291: FILE: net/quic/stream.c:174: + stream->recv.max_bytes = streams->recv.max_stream_data_bidi_local; WARNING: line length of 90 exceeds 80 columns #293: FILE: net/quic/stream.c:176: + stream->send.max_bytes = streams->send.max_stream_data_bidi_local; WARNING: line length of 91 exceeds 80 columns #294: FILE: net/quic/stream.c:177: + stream->recv.max_bytes = streams->recv.max_stream_data_bidi_remote; WARNING: line length of 88 exceeds 80 columns #305: FILE: net/quic/stream.c:188: +static bool quic_stream_id_send_closed(struct quic_stream_table *streams, s64 stream_id) WARNING: line length of 88 exceeds 80 columns #318: FILE: net/quic/stream.c:201: +static bool quic_stream_id_recv_closed(struct quic_stream_table *streams, s64 stream_id) WARNING: line length of 89 exceeds 80 columns #331: FILE: net/quic/stream.c:214: +static bool quic_stream_id_recv_exceeds(struct quic_stream_table *streams, s64 stream_id) WARNING: line length of 82 exceeds 80 columns #344: FILE: net/quic/stream.c:227: +bool quic_stream_id_send_exceeds(struct quic_stream_table *streams, s64 stream_id) WARNING: line length of 89 exceeds 80 columns #359: FILE: net/quic/stream.c:242: + if (nstreams + streams->send.streams_uni > streams->send.max_streams_uni) WARNING: line length of 91 exceeds 80 columns #364: FILE: net/quic/stream.c:247: + if (nstreams + streams->send.streams_bidi > streams->send.max_streams_bidi) WARNING: line length of 90 exceeds 80 columns #371: FILE: net/quic/stream.c:254: +struct quic_stream *quic_stream_send_get(struct quic_stream_table *streams, s64 stream_id, WARNING: line length of 90 exceeds 80 columns #404: FILE: net/quic/stream.c:287: +struct quic_stream *quic_stream_recv_get(struct quic_stream_table *streams, s64 stream_id, WARNING: line length of 90 exceeds 80 columns #436: FILE: net/quic/stream.c:319: +/* Release or clean up a send stream. This function updates stream counters and state when WARNING: line length of 88 exceeds 80 columns #439: FILE: net/quic/stream.c:322: +void quic_stream_send_put(struct quic_stream_table *streams, struct quic_stream *stream, WARNING: line length of 93 exceeds 80 columns #443: FILE: net/quic/stream.c:326: + /* For unidirectional streams, decrement uni count and delete immediately. */ WARNING: line length of 81 exceeds 80 columns #449: FILE: net/quic/stream.c:332: + /* For bidi streams, only proceed if receive side is in a final state. */ WARNING: line length of 91 exceeds 80 columns #456: FILE: net/quic/stream.c:339: + /* Local-initiated stream: mark send done and decrement send.bidi count. */ WARNING: line length of 84 exceeds 80 columns #463: FILE: net/quic/stream.c:346: + /* Remote-initiated stream: mark recv done and decrement recv bidi count. */ WARNING: line length of 86 exceeds 80 columns #471: FILE: net/quic/stream.c:354: + if (stream->recv.state == QUIC_STREAM_RECV_STATE_READ || !stream->recv.offset) WARNING: line length of 93 exceeds 80 columns #475: FILE: net/quic/stream.c:358: +/* Release or clean up a receive stream. This function updates stream counters and state when WARNING: line length of 88 exceeds 80 columns #478: FILE: net/quic/stream.c:361: +void quic_stream_recv_put(struct quic_stream_table *streams, struct quic_stream *stream, WARNING: line length of 91 exceeds 80 columns #497: FILE: net/quic/stream.c:380: + /* Local-initiated stream: mark send done and decrement send.bidi count. */ WARNING: line length of 84 exceeds 80 columns #504: FILE: net/quic/stream.c:387: + /* Remote-initiated stream: mark recv done and decrement recv bidi count. */ WARNING: line length of 86 exceeds 80 columns #512: FILE: net/quic/stream.c:395: + if (stream->recv.state == QUIC_STREAM_RECV_STATE_READ || !stream->recv.offset) WARNING: line length of 87 exceeds 80 columns #516: FILE: net/quic/stream.c:399: +/* Updates the maximum allowed incoming stream IDs if any streams were recently closed. WARNING: line length of 85 exceeds 80 columns #517: FILE: net/quic/stream.c:400: + * Recalculates the max_uni and max_bidi stream ID limits based on the number of open WARNING: line length of 99 exceeds 80 columns #523: FILE: net/quic/stream.c:406: +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 #528: FILE: net/quic/stream.c:411: + ((streams->recv.max_streams_uni - streams->recv.streams_uni) << WARNING: line length of 86 exceeds 80 columns #530: FILE: net/quic/stream.c:413: + *max_uni = quic_stream_id_to_streams(streams->recv.max_uni_stream_id); WARNING: line length of 81 exceeds 80 columns #535: FILE: net/quic/stream.c:418: + streams->recv.next_bidi_stream_id - QUIC_STREAM_ID_STEP + WARNING: line length of 89 exceeds 80 columns #536: FILE: net/quic/stream.c:419: + ((streams->recv.max_streams_bidi - streams->recv.streams_bidi) << WARNING: line length of 88 exceeds 80 columns #538: FILE: net/quic/stream.c:421: + *max_bidi = quic_stream_id_to_streams(streams->recv.max_bidi_stream_id); WARNING: line length of 93 exceeds 80 columns #580: FILE: net/quic/stream.c:463: +void quic_stream_get_param(struct quic_stream_table *streams, struct quic_transport_param *p, WARNING: line length of 91 exceeds 80 columns #584: FILE: net/quic/stream.c:467: + p->max_stream_data_bidi_remote = streams->send.max_stream_data_bidi_remote; WARNING: line length of 89 exceeds 80 columns #585: FILE: net/quic/stream.c:468: + p->max_stream_data_bidi_local = streams->send.max_stream_data_bidi_local; WARNING: line length of 83 exceeds 80 columns #592: FILE: net/quic/stream.c:475: + p->max_stream_data_bidi_remote = streams->recv.max_stream_data_bidi_remote; WARNING: line length of 81 exceeds 80 columns #593: FILE: net/quic/stream.c:476: + p->max_stream_data_bidi_local = streams->recv.max_stream_data_bidi_local; WARNING: line length of 93 exceeds 80 columns #600: FILE: net/quic/stream.c:483: +void quic_stream_set_param(struct quic_stream_table *streams, struct quic_transport_param *p, WARNING: line length of 89 exceeds 80 columns #606: FILE: net/quic/stream.c:489: + streams->send.max_stream_data_bidi_local = p->max_stream_data_bidi_local; WARNING: line length of 91 exceeds 80 columns #607: FILE: net/quic/stream.c:490: + streams->send.max_stream_data_bidi_remote = p->max_stream_data_bidi_remote; WARNING: line length of 85 exceeds 80 columns #616: FILE: net/quic/stream.c:499: + quic_stream_streams_to_id(p->max_streams_bidi, type); WARNING: line length of 84 exceeds 80 columns #621: FILE: net/quic/stream.c:504: + quic_stream_streams_to_id(p->max_streams_uni, type); WARNING: line length of 81 exceeds 80 columns #638: FILE: net/quic/stream.c:521: + streams->recv.max_stream_data_bidi_local = p->max_stream_data_bidi_local; WARNING: line length of 83 exceeds 80 columns #639: FILE: net/quic/stream.c:522: + streams->recv.max_stream_data_bidi_remote = p->max_stream_data_bidi_remote; WARNING: line length of 94 exceeds 80 columns #689: 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 #690: 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 #691: 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 #693: 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 #694: 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 #706: 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 #709: 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 #710: 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 #713: FILE: net/quic/stream.h:41: + u32 errcode; /* Application error code to send in RESET_STREAM */ WARNING: line length of 95 exceeds 80 columns #714: FILE: net/quic/stream.h:42: + u32 frags; /* Number of sent STREAM frames not yet acknowledged */ WARNING: line length of 88 exceeds 80 columns #715: FILE: net/quic/stream.h:43: + u8 state; /* Send stream state, per rfc9000#section-3.1 */ WARNING: line length of 91 exceeds 80 columns #717: FILE: net/quic/stream.h:45: + u8 data_blocked:1; /* True if flow control blocks sending more data */ WARNING: line length of 98 exceeds 80 columns #718: FILE: net/quic/stream.h:46: + u8 stop_sent:1; /* True if STOP_SENDING has been sent, not acknowledged */ WARNING: line length of 100 exceeds 80 columns #719: FILE: net/quic/stream.h:47: + u8 done:1; /* True if application indicated end of stream (FIN sent) */ WARNING: line length of 87 exceeds 80 columns #723: FILE: net/quic/stream.h:51: + u64 max_bytes; /* Maximum offset peer is allowed to send to */ WARNING: line length of 99 exceeds 80 columns #724: FILE: net/quic/stream.h:52: + u64 window; /* Remaining receive window before advertise a new limit */ WARNING: line length of 91 exceeds 80 columns #725: FILE: net/quic/stream.h:53: + u64 bytes; /* Bytes consumed by application from the stream */ WARNING: line length of 94 exceeds 80 columns #728: FILE: net/quic/stream.h:56: + u64 offset; /* Offset up to which data is in buffer or consumed */ WARNING: line length of 86 exceeds 80 columns #729: FILE: net/quic/stream.h:57: + u64 finalsz; /* Final size of the stream if FIN received */ WARNING: line length of 97 exceeds 80 columns #731: FILE: net/quic/stream.h:59: + u32 frags; /* Number of received STREAM frames pending reassembly */ WARNING: line length of 91 exceeds 80 columns #732: FILE: net/quic/stream.h:60: + u8 state; /* Receive stream state, per rfc9000#section-3.2 */ WARNING: line length of 91 exceeds 80 columns #733: FILE: net/quic/stream.h:61: + u8 done:1; /* True if FIN received and final size validated */ WARNING: line length of 83 exceeds 80 columns #738: FILE: net/quic/stream.h:66: + struct quic_hash_table ht; /* Hash table storing all active streams */ WARNING: line length of 84 exceeds 80 columns #741: FILE: net/quic/stream.h:69: + /* Parameters received from peer, defined in rfc9000#section-18.2 */ WARNING: line length of 97 exceeds 80 columns #742: FILE: net/quic/stream.h:70: + u64 max_stream_data_bidi_remote; /* initial_max_stream_data_bidi_remote */ WARNING: line length of 96 exceeds 80 columns #743: FILE: net/quic/stream.h:71: + u64 max_stream_data_bidi_local; /* initial_max_stream_data_bidi_local */ WARNING: line length of 89 exceeds 80 columns #744: FILE: net/quic/stream.h:72: + u64 max_stream_data_uni; /* initial_max_stream_data_uni */ WARNING: line length of 86 exceeds 80 columns #745: FILE: net/quic/stream.h:73: + u64 max_streams_bidi; /* initial_max_streams_bidi */ WARNING: line length of 85 exceeds 80 columns #746: FILE: net/quic/stream.h:74: + u64 max_streams_uni; /* initial_max_streams_uni */ WARNING: line length of 86 exceeds 80 columns #748: FILE: net/quic/stream.h:76: + s64 next_bidi_stream_id; /* Next bidi stream ID to be opened */ WARNING: line length of 85 exceeds 80 columns #749: FILE: net/quic/stream.h:77: + s64 next_uni_stream_id; /* Next uni stream ID to be opened */ WARNING: line length of 84 exceeds 80 columns #750: FILE: net/quic/stream.h:78: + s64 max_bidi_stream_id; /* Highest allowed bidi stream ID */ WARNING: line length of 83 exceeds 80 columns #751: FILE: net/quic/stream.h:79: + s64 max_uni_stream_id; /* Highest allowed uni stream ID */ WARNING: line length of 84 exceeds 80 columns #752: FILE: net/quic/stream.h:80: + s64 active_stream_id; /* Most recently opened stream ID */ WARNING: line length of 97 exceeds 80 columns #754: FILE: net/quic/stream.h:82: + u8 bidi_blocked:1; /* True if STREAMS_BLOCKED_BIDI was sent and not ACKed */ WARNING: line length of 96 exceeds 80 columns #755: FILE: net/quic/stream.h:83: + u8 uni_blocked:1; /* True if STREAMS_BLOCKED_UNI was sent and not ACKed */ WARNING: line length of 85 exceeds 80 columns #756: FILE: net/quic/stream.h:84: + u16 streams_bidi; /* Number of currently active bidi streams */ WARNING: line length of 84 exceeds 80 columns #757: FILE: net/quic/stream.h:85: + u16 streams_uni; /* Number of currently active uni streams */ WARNING: line length of 82 exceeds 80 columns #760: FILE: net/quic/stream.h:88: + /* Our advertised limits to the peer, per rfc9000#section-18.2 */ WARNING: line length of 97 exceeds 80 columns #761: FILE: net/quic/stream.h:89: + u64 max_stream_data_bidi_remote; /* initial_max_stream_data_bidi_remote */ WARNING: line length of 96 exceeds 80 columns #762: FILE: net/quic/stream.h:90: + u64 max_stream_data_bidi_local; /* initial_max_stream_data_bidi_local */ WARNING: line length of 89 exceeds 80 columns #763: FILE: net/quic/stream.h:91: + u64 max_stream_data_uni; /* initial_max_stream_data_uni */ WARNING: line length of 86 exceeds 80 columns #764: FILE: net/quic/stream.h:92: + u64 max_streams_bidi; /* initial_max_streams_bidi */ WARNING: line length of 85 exceeds 80 columns #765: FILE: net/quic/stream.h:93: + u64 max_streams_uni; /* initial_max_streams_uni */ WARNING: line length of 92 exceeds 80 columns #767: FILE: net/quic/stream.h:95: + s64 next_bidi_stream_id; /* Next expected bidi stream ID from peer */ WARNING: line length of 91 exceeds 80 columns #768: FILE: net/quic/stream.h:96: + s64 next_uni_stream_id; /* Next expected uni stream ID from peer */ WARNING: line length of 90 exceeds 80 columns #769: FILE: net/quic/stream.h:97: + s64 max_bidi_stream_id; /* Current allowed bidi stream ID range */ WARNING: line length of 89 exceeds 80 columns #770: FILE: net/quic/stream.h:98: + s64 max_uni_stream_id; /* Current allowed uni stream ID range */ WARNING: line length of 87 exceeds 80 columns #772: FILE: net/quic/stream.h:100: + u8 bidi_pending:1; /* True if MAX_STREAMS_BIDI needs to be sent */ WARNING: line length of 86 exceeds 80 columns #773: FILE: net/quic/stream.h:101: + u8 uni_pending:1; /* True if MAX_STREAMS_UNI needs to be sent */ WARNING: line length of 83 exceeds 80 columns #774: FILE: net/quic/stream.h:102: + u16 streams_bidi; /* Number of currently open bidi streams */ WARNING: line length of 82 exceeds 80 columns #775: FILE: net/quic/stream.h:103: + u16 streams_uni; /* Number of currently open uni streams */ WARNING: line length of 90 exceeds 80 columns #789: FILE: net/quic/stream.h:117: +struct quic_stream *quic_stream_send_get(struct quic_stream_table *streams, s64 stream_id, WARNING: line length of 90 exceeds 80 columns #791: FILE: net/quic/stream.h:119: +struct quic_stream *quic_stream_recv_get(struct quic_stream_table *streams, s64 stream_id, WARNING: line length of 88 exceeds 80 columns #793: FILE: net/quic/stream.h:121: +void quic_stream_send_put(struct quic_stream_table *streams, struct quic_stream *stream, WARNING: line length of 88 exceeds 80 columns #795: FILE: net/quic/stream.h:123: +void quic_stream_recv_put(struct quic_stream_table *streams, struct quic_stream *stream, WARNING: line length of 100 exceeds 80 columns #798: FILE: net/quic/stream.h:126: +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 #799: FILE: net/quic/stream.h:127: +struct quic_stream *quic_stream_find(struct quic_stream_table *streams, s64 stream_id); WARNING: line length of 83 exceeds 80 columns #800: FILE: net/quic/stream.h:128: +bool quic_stream_id_send_exceeds(struct quic_stream_table *streams, s64 stream_id); WARNING: line length of 93 exceeds 80 columns #802: FILE: net/quic/stream.h:130: +void quic_stream_get_param(struct quic_stream_table *streams, struct quic_transport_param *p, WARNING: line length of 93 exceeds 80 columns #804: FILE: net/quic/stream.h:132: +void quic_stream_set_param(struct quic_stream_table *streams, struct quic_transport_param *p, total: 0 errors, 127 warnings, 0 checks, 732 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 0ebde79ac833 ("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, 127 warnings, 0 checks, 732 lines checked