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 85 exceeds 80 columns #199: FILE: net/quic/stream.c:79: +static struct quic_stream *quic_stream_send_create(struct quic_stream_table *streams, WARNING: line length of 81 exceeds 80 columns #200: FILE: net/quic/stream.c:80: + s64 max_stream_id, u8 is_serv) WARNING: line length of 92 exceeds 80 columns #209: FILE: net/quic/stream.c:89: + /* 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 #219: FILE: net/quic/stream.c:99: + stream->send.max_bytes = streams->send.max_stream_data_uni; WARNING: line length of 95 exceeds 80 columns #221: FILE: net/quic/stream.c:101: + if (streams->send.next_uni_stream_id < stream_id + QUIC_STREAM_ID_STEP) WARNING: line length of 99 exceeds 80 columns #222: FILE: net/quic/stream.c:102: + streams->send.next_uni_stream_id = stream_id + QUIC_STREAM_ID_STEP; WARNING: line length of 88 exceeds 80 columns #230: FILE: net/quic/stream.c:110: + if (streams->send.next_bidi_stream_id < stream_id + QUIC_STREAM_ID_STEP) WARNING: line length of 92 exceeds 80 columns #231: FILE: net/quic/stream.c:111: + streams->send.next_bidi_stream_id = stream_id + QUIC_STREAM_ID_STEP; WARNING: line length of 91 exceeds 80 columns #235: FILE: net/quic/stream.c:115: + 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:116: + 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:118: + 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:119: + stream->recv.max_bytes = streams->recv.max_stream_data_bidi_remote; WARNING: line length of 85 exceeds 80 columns #250: FILE: net/quic/stream.c:130: +static struct quic_stream *quic_stream_recv_create(struct quic_stream_table *streams, WARNING: line length of 81 exceeds 80 columns #251: FILE: net/quic/stream.c:131: + s64 max_stream_id, u8 is_serv) WARNING: line length of 92 exceeds 80 columns #260: FILE: net/quic/stream.c:140: + /* 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 #273: FILE: net/quic/stream.c:153: + if (streams->recv.next_uni_stream_id < stream_id + QUIC_STREAM_ID_STEP) WARNING: line length of 99 exceeds 80 columns #274: FILE: net/quic/stream.c:154: + streams->recv.next_uni_stream_id = stream_id + QUIC_STREAM_ID_STEP; WARNING: line length of 88 exceeds 80 columns #282: FILE: net/quic/stream.c:162: + if (streams->recv.next_bidi_stream_id < stream_id + QUIC_STREAM_ID_STEP) WARNING: line length of 92 exceeds 80 columns #283: FILE: net/quic/stream.c:163: + streams->recv.next_bidi_stream_id = stream_id + QUIC_STREAM_ID_STEP; WARNING: line length of 91 exceeds 80 columns #287: FILE: net/quic/stream.c:167: + stream->send.max_bytes = streams->send.max_stream_data_bidi_remote; WARNING: line length of 90 exceeds 80 columns #288: FILE: net/quic/stream.c:168: + stream->recv.max_bytes = streams->recv.max_stream_data_bidi_local; WARNING: line length of 90 exceeds 80 columns #290: FILE: net/quic/stream.c:170: + stream->send.max_bytes = streams->send.max_stream_data_bidi_local; WARNING: line length of 91 exceeds 80 columns #291: FILE: net/quic/stream.c:171: + stream->recv.max_bytes = streams->recv.max_stream_data_bidi_remote; WARNING: line length of 94 exceeds 80 columns #302: FILE: net/quic/stream.c:182: +static bool quic_stream_id_closed(struct quic_stream_table *streams, s64 stream_id, bool send) WARNING: line length of 88 exceeds 80 columns #315: FILE: net/quic/stream.c:195: +bool quic_stream_id_exceeds(struct quic_stream_table *streams, s64 stream_id, bool send) WARNING: line length of 92 exceeds 80 columns #330: FILE: net/quic/stream.c:210: + return nstreams + streams->send.streams_uni > streams->send.max_streams_uni; WARNING: line length of 86 exceeds 80 columns #337: FILE: net/quic/stream.c:217: + return nstreams + streams->send.streams_bidi > streams->send.max_streams_bidi; WARNING: line length of 90 exceeds 80 columns #341: FILE: net/quic/stream.c:221: +struct quic_stream *quic_stream_send_get(struct quic_stream_table *streams, s64 stream_id, WARNING: line length of 90 exceeds 80 columns #374: FILE: net/quic/stream.c:254: +struct quic_stream *quic_stream_recv_get(struct quic_stream_table *streams, s64 stream_id, WARNING: line length of 90 exceeds 80 columns #406: FILE: net/quic/stream.c:286: +/* Release or clean up a send stream. This function updates stream counters and state when WARNING: line length of 88 exceeds 80 columns #409: FILE: net/quic/stream.c:289: +void quic_stream_send_put(struct quic_stream_table *streams, struct quic_stream *stream, WARNING: line length of 93 exceeds 80 columns #413: FILE: net/quic/stream.c:293: + /* For unidirectional streams, decrement uni count and delete immediately. */ WARNING: line length of 81 exceeds 80 columns #419: FILE: net/quic/stream.c:299: + /* For bidi streams, only proceed if receive side is in a final state. */ WARNING: line length of 91 exceeds 80 columns #426: FILE: net/quic/stream.c:306: + /* Local-initiated stream: mark send done and decrement send.bidi count. */ WARNING: line length of 84 exceeds 80 columns #433: FILE: net/quic/stream.c:313: + /* Remote-initiated stream: mark recv done and decrement recv bidi count. */ WARNING: line length of 93 exceeds 80 columns #445: FILE: net/quic/stream.c:325: +/* Release or clean up a receive stream. This function updates stream counters and state when WARNING: line length of 88 exceeds 80 columns #448: FILE: net/quic/stream.c:328: +void quic_stream_recv_put(struct quic_stream_table *streams, struct quic_stream *stream, WARNING: line length of 91 exceeds 80 columns #467: FILE: net/quic/stream.c:347: + /* Local-initiated stream: mark send done and decrement send.bidi count. */ WARNING: line length of 84 exceeds 80 columns #474: FILE: net/quic/stream.c:354: + /* Remote-initiated stream: mark recv done and decrement recv bidi count. */ WARNING: line length of 87 exceeds 80 columns #486: FILE: net/quic/stream.c:366: +/* Updates the maximum allowed incoming stream IDs if any streams were recently closed. WARNING: line length of 85 exceeds 80 columns #487: FILE: net/quic/stream.c:367: + * Recalculates the max_uni and max_bidi stream ID limits based on the number of open WARNING: line length of 99 exceeds 80 columns #493: FILE: net/quic/stream.c:373: +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 #498: FILE: net/quic/stream.c:378: + ((streams->recv.max_streams_uni - streams->recv.streams_uni) << WARNING: line length of 86 exceeds 80 columns #500: FILE: net/quic/stream.c:380: + *max_uni = quic_stream_id_to_streams(streams->recv.max_uni_stream_id); WARNING: line length of 81 exceeds 80 columns #505: FILE: net/quic/stream.c:385: + streams->recv.next_bidi_stream_id - QUIC_STREAM_ID_STEP + WARNING: line length of 89 exceeds 80 columns #506: FILE: net/quic/stream.c:386: + ((streams->recv.max_streams_bidi - streams->recv.streams_bidi) << WARNING: line length of 88 exceeds 80 columns #508: FILE: net/quic/stream.c:388: + *max_bidi = quic_stream_id_to_streams(streams->recv.max_bidi_stream_id); WARNING: line length of 93 exceeds 80 columns #548: FILE: net/quic/stream.c:428: +void quic_stream_get_param(struct quic_stream_table *streams, struct quic_transport_param *p, WARNING: line length of 91 exceeds 80 columns #552: FILE: net/quic/stream.c:432: + p->max_stream_data_bidi_remote = streams->send.max_stream_data_bidi_remote; WARNING: line length of 89 exceeds 80 columns #553: FILE: net/quic/stream.c:433: + p->max_stream_data_bidi_local = streams->send.max_stream_data_bidi_local; WARNING: line length of 83 exceeds 80 columns #560: FILE: net/quic/stream.c:440: + p->max_stream_data_bidi_remote = streams->recv.max_stream_data_bidi_remote; WARNING: line length of 81 exceeds 80 columns #561: FILE: net/quic/stream.c:441: + p->max_stream_data_bidi_local = streams->recv.max_stream_data_bidi_local; WARNING: line length of 93 exceeds 80 columns #568: FILE: net/quic/stream.c:448: +void quic_stream_set_param(struct quic_stream_table *streams, struct quic_transport_param *p, WARNING: line length of 89 exceeds 80 columns #574: FILE: net/quic/stream.c:454: + streams->send.max_stream_data_bidi_local = p->max_stream_data_bidi_local; WARNING: line length of 91 exceeds 80 columns #575: FILE: net/quic/stream.c:455: + streams->send.max_stream_data_bidi_remote = p->max_stream_data_bidi_remote; WARNING: line length of 85 exceeds 80 columns #584: FILE: net/quic/stream.c:464: + quic_stream_streams_to_id(p->max_streams_bidi, type); WARNING: line length of 84 exceeds 80 columns #589: FILE: net/quic/stream.c:469: + quic_stream_streams_to_id(p->max_streams_uni, type); WARNING: line length of 81 exceeds 80 columns #606: FILE: net/quic/stream.c:486: + streams->recv.max_stream_data_bidi_local = p->max_stream_data_bidi_local; WARNING: line length of 83 exceeds 80 columns #607: FILE: net/quic/stream.c:487: + streams->recv.max_stream_data_bidi_remote = p->max_stream_data_bidi_remote; WARNING: line length of 94 exceeds 80 columns #657: 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 #658: 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 #659: 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 #661: 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 #662: 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 #674: 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 #677: 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 #678: 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 #681: FILE: net/quic/stream.h:41: + u32 errcode; /* Application error code to send in RESET_STREAM */ WARNING: line length of 95 exceeds 80 columns #682: FILE: net/quic/stream.h:42: + u32 frags; /* Number of sent STREAM frames not yet acknowledged */ WARNING: line length of 88 exceeds 80 columns #683: FILE: net/quic/stream.h:43: + u8 state; /* Send stream state, per rfc9000#section-3.1 */ WARNING: line length of 91 exceeds 80 columns #685: 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 #686: 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 #690: 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 #691: FILE: net/quic/stream.h:51: + u64 window; /* Remaining receive window before advertise a new limit */ WARNING: line length of 91 exceeds 80 columns #692: FILE: net/quic/stream.h:52: + u64 bytes; /* Bytes consumed by application from the stream */ WARNING: line length of 94 exceeds 80 columns #695: 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 #696: FILE: net/quic/stream.h:56: + u64 finalsz; /* Final size of the stream if FIN received */ WARNING: line length of 97 exceeds 80 columns #698: FILE: net/quic/stream.h:58: + u32 frags; /* Number of received STREAM frames pending reassembly */ WARNING: line length of 91 exceeds 80 columns #699: FILE: net/quic/stream.h:59: + u8 state; /* Receive stream state, per rfc9000#section-3.2 */ WARNING: line length of 91 exceeds 80 columns #702: 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 #707: FILE: net/quic/stream.h:67: + struct hlist_head *head; /* Hash table storing all active streams */ WARNING: line length of 84 exceeds 80 columns #710: FILE: net/quic/stream.h:70: + /* Parameters received from peer, defined in rfc9000#section-18.2 */ WARNING: line length of 97 exceeds 80 columns #711: 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 #712: 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 #713: FILE: net/quic/stream.h:73: + u64 max_stream_data_uni; /* initial_max_stream_data_uni */ WARNING: line length of 86 exceeds 80 columns #714: FILE: net/quic/stream.h:74: + u64 max_streams_bidi; /* initial_max_streams_bidi */ WARNING: line length of 85 exceeds 80 columns #715: FILE: net/quic/stream.h:75: + u64 max_streams_uni; /* initial_max_streams_uni */ WARNING: line length of 86 exceeds 80 columns #717: 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 #718: 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 #719: FILE: net/quic/stream.h:79: + s64 max_bidi_stream_id; /* Highest allowed bidi stream ID */ WARNING: line length of 83 exceeds 80 columns #720: FILE: net/quic/stream.h:80: + s64 max_uni_stream_id; /* Highest allowed uni stream ID */ WARNING: line length of 84 exceeds 80 columns #721: FILE: net/quic/stream.h:81: + s64 active_stream_id; /* Most recently opened stream ID */ WARNING: line length of 97 exceeds 80 columns #723: 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 #724: 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 #725: FILE: net/quic/stream.h:85: + u16 streams_bidi; /* Number of currently active bidi streams */ WARNING: line length of 84 exceeds 80 columns #726: FILE: net/quic/stream.h:86: + u16 streams_uni; /* Number of currently active uni streams */ WARNING: line length of 82 exceeds 80 columns #729: 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 #730: 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 #731: 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 #732: FILE: net/quic/stream.h:92: + u64 max_stream_data_uni; /* initial_max_stream_data_uni */ WARNING: line length of 86 exceeds 80 columns #733: FILE: net/quic/stream.h:93: + u64 max_streams_bidi; /* initial_max_streams_bidi */ WARNING: line length of 85 exceeds 80 columns #734: FILE: net/quic/stream.h:94: + u64 max_streams_uni; /* initial_max_streams_uni */ WARNING: line length of 92 exceeds 80 columns #736: 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 #737: 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 #738: 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 #739: 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 #741: 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 #742: 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 #743: FILE: net/quic/stream.h:103: + u16 streams_bidi; /* Number of currently open bidi streams */ WARNING: line length of 82 exceeds 80 columns #744: FILE: net/quic/stream.h:104: + u16 streams_uni; /* Number of currently open uni streams */ WARNING: line length of 90 exceeds 80 columns #758: 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 #760: 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 #762: 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 #764: 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 #767: 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 #768: 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 #769: 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 #771: 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 #773: FILE: net/quic/stream.h:133: +void quic_stream_set_param(struct quic_stream_table *streams, struct quic_transport_param *p, total: 0 errors, 122 warnings, 0 checks, 698 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 75a827ca1e4a ("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, 122 warnings, 0 checks, 698 lines checked