WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #57: new file mode 100644 WARNING: line length of 88 exceeds 80 columns #81: FILE: net/quic/pnspace.c:20: + space->pn_map = kzalloc(BITS_TO_BYTES(QUIC_PN_MAP_INITIAL), GFP_KERNEL); WARNING: line length of 85 exceeds 80 columns #101: FILE: net/quic/pnspace.c:40: +/* Expand the bitmap tracking received packet numbers. Ensures the pn_map bitmap can WARNING: line length of 83 exceeds 80 columns #102: FILE: net/quic/pnspace.c:41: + * cover at least @size packet numbers. Allocates a larger bitmap, copies existing WARNING: line length of 84 exceeds 80 columns #105: FILE: net/quic/pnspace.c:44: + * Returns: 1 if the bitmap was successfully grown, 0 on failure or if the requested WARNING: line length of 87 exceeds 80 columns #116: FILE: net/quic/pnspace.c:55: + inc = ALIGN((size - space->pn_map_len), BITS_PER_LONG) + QUIC_PN_MAP_INCREMENT; WARNING: line length of 82 exceeds 80 columns #147: FILE: net/quic/pnspace.c:86: + test_bit(pn - space->base_pn, space->pn_map))) WARNING: line length of 83 exceeds 80 columns #162: FILE: net/quic/pnspace.c:101: + offset = (u16)find_next_zero_bit(space->pn_map, space->pn_map_len, offset); WARNING: line length of 84 exceeds 80 columns #164: FILE: net/quic/pnspace.c:103: + bitmap_shift_right(space->pn_map, space->pn_map, offset, space->pn_map_len); WARNING: line length of 81 exceeds 80 columns #168: FILE: net/quic/pnspace.c:107: + * reception of @pn. Advances base_pn if possible, and updates max/min/last seen WARNING: line length of 90 exceeds 80 columns #180: FILE: net/quic/pnspace.c:119: + /* Initialize base_pn based on the peer's first packet number since peer's WARNING: line length of 84 exceeds 80 columns #187: FILE: net/quic/pnspace.c:126: + /* Ignore packets with number less than current base (already processed). */ WARNING: line length of 89 exceeds 80 columns #191: FILE: net/quic/pnspace.c:130: + /* If gap is beyond current map length, try to grow the bitmap to accommodate. */ WARNING: line length of 97 exceeds 80 columns #201: FILE: net/quic/pnspace.c:140: + if (space->base_pn == pn) { /* If packet is exactly at base_pn (next expected packet). */ WARNING: line length of 94 exceeds 80 columns #202: FILE: net/quic/pnspace.c:141: + if (quic_pnspace_has_gap(space)) /* Advance base_pn to next unacked packet. */ WARNING: line length of 88 exceeds 80 columns #210: FILE: net/quic/pnspace.c:149: + /* Only update min and last_max_pn_seen if this packet is the current max_pn. */ WARNING: line length of 83 exceeds 80 columns #214: FILE: net/quic/pnspace.c:153: + /* Check if enough time has elapsed or enough packets have been received to WARNING: line length of 83 exceeds 80 columns #218: FILE: net/quic/pnspace.c:157: + if (space->max_pn_time < space->last_max_pn_time + space->max_time_limit && WARNING: line length of 83 exceeds 80 columns #222: FILE: net/quic/pnspace.c:161: + /* Advance base_pn if last_max_pn_seen is ahead of current base_pn. This is WARNING: line length of 83 exceeds 80 columns #223: FILE: net/quic/pnspace.c:162: + * needed because QUIC doesn't retransmit packets; retransmitted frames are WARNING: line length of 85 exceeds 80 columns #235: FILE: net/quic/pnspace.c:174: +/* Find the next gap in received packet numbers. Scans pn_map for a gap starting from WARNING: line length of 83 exceeds 80 columns #236: FILE: net/quic/pnspace.c:175: + * *@iter. A gap is a contiguous block of unreceived packets between received ones. WARNING: line length of 83 exceeds 80 columns #245: FILE: net/quic/pnspace.c:184: + start_ = (u16)find_next_zero_bit(space->pn_map, space->pn_map_len, offset); WARNING: line length of 85 exceeds 80 columns #259: FILE: net/quic/pnspace.c:198: +/* Generate gap acknowledgment blocks (GABs). GABs describe ranges of unacknowledged WARNING: line length of 86 exceeds 80 columns #264: FILE: net/quic/pnspace.c:203: +u16 quic_pnspace_num_gabs(struct quic_pnspace *space, struct quic_gap_ack_block *gabs) WARNING: line length of 84 exceeds 80 columns #273: FILE: net/quic/pnspace.c:212: + /* Loop through all gaps until the end of the window or max allowed gaps. */ WARNING: line length of 85 exceeds 80 columns #277: FILE: net/quic/pnspace.c:216: + gabs[ngaps].end = (u16)(space->max_pn_seen - space->base_pn); WARNING: line length of 91 exceeds 80 columns #327: FILE: net/quic/pnspace.h:36: +/* Represents a gap (range of missing packets) in the ACK map. The values are offsets from WARNING: line length of 90 exceeds 80 columns #354: FILE: net/quic/pnspace.h:63: + /* ECN counters indexed by direction (TX/RX) and ECN codepoint (ECT1, ECT0, CE) */ WARNING: line length of 97 exceeds 80 columns #356: FILE: net/quic/pnspace.h:65: + unsigned long *pn_map; /* Bit map tracking received packet numbers for ACK generation */ WARNING: line length of 83 exceeds 80 columns #357: FILE: net/quic/pnspace.h:66: + u16 pn_map_len; /* Length of the packet number bit map (in bits) */ WARNING: line length of 96 exceeds 80 columns #358: FILE: net/quic/pnspace.h:67: + u8 need_sack:1; /* Flag indicating a SACK frame should be sent for this space */ WARNING: line length of 87 exceeds 80 columns #361: FILE: net/quic/pnspace.h:70: + s64 last_max_pn_seen; /* Highest packet number seen before pn_map advanced */ WARNING: line length of 82 exceeds 80 columns #362: FILE: net/quic/pnspace.h:71: + u32 last_max_pn_time; /* Timestamp when last_max_pn_seen was received */ WARNING: line length of 100 exceeds 80 columns #363: FILE: net/quic/pnspace.h:72: + u32 max_time_limit; /* Time threshold to trigger pn_map advancement on packet receipt */ WARNING: line length of 83 exceeds 80 columns #364: FILE: net/quic/pnspace.h:73: + s64 min_pn_seen; /* Smallest packet number received in this space */ WARNING: line length of 82 exceeds 80 columns #365: FILE: net/quic/pnspace.h:74: + s64 max_pn_seen; /* Largest packet number received in this space */ WARNING: line length of 92 exceeds 80 columns #367: FILE: net/quic/pnspace.h:76: + s64 base_pn; /* Packet number corresponding to the start of the pn_map */ WARNING: line length of 98 exceeds 80 columns #368: FILE: net/quic/pnspace.h:77: + u32 time; /* Cached current time, or time accept a socket (listen socket) */ WARNING: line length of 84 exceeds 80 columns #370: FILE: net/quic/pnspace.h:79: + s64 max_pn_acked_seen; /* Largest packet number acknowledged by the peer */ WARNING: line length of 86 exceeds 80 columns #371: FILE: net/quic/pnspace.h:80: + u32 max_pn_acked_time; /* Time at which max_pn_acked_seen was acknowledged */ WARNING: line length of 86 exceeds 80 columns #372: FILE: net/quic/pnspace.h:81: + u32 last_sent_time; /* Time when the last ack-eliciting packet was sent */ WARNING: line length of 91 exceeds 80 columns #373: FILE: net/quic/pnspace.h:82: + u32 loss_time; /* Time after which the next packet can be declared lost */ WARNING: line length of 95 exceeds 80 columns #374: FILE: net/quic/pnspace.h:83: + u32 inflight; /* Bytes of all ack-eliciting frames in flight in this space */ WARNING: line length of 81 exceeds 80 columns #378: FILE: net/quic/pnspace.h:87: +static inline void quic_pnspace_set_max_pn_acked_seen(struct quic_pnspace *space, WARNING: line length of 81 exceeds 80 columns #403: FILE: net/quic/pnspace.h:112: +static inline void quic_pnspace_inc_ecn_count(struct quic_pnspace *space, u8 ecn) WARNING: line length of 88 exceeds 80 columns #423: FILE: net/quic/pnspace.h:132: +static inline int quic_pnspace_set_ecn_count(struct quic_pnspace *space, u64 *ecn_count) WARNING: line length of 86 exceeds 80 columns #425: FILE: net/quic/pnspace.h:134: + if (space->ecn_count[QUIC_ECN_PEER][QUIC_ECN_ECT0] < ecn_count[QUIC_ECN_ECT0]) WARNING: line length of 90 exceeds 80 columns #426: FILE: net/quic/pnspace.h:135: + space->ecn_count[QUIC_ECN_PEER][QUIC_ECN_ECT0] = ecn_count[QUIC_ECN_ECT0]; WARNING: line length of 86 exceeds 80 columns #427: FILE: net/quic/pnspace.h:136: + if (space->ecn_count[QUIC_ECN_PEER][QUIC_ECN_ECT1] < ecn_count[QUIC_ECN_ECT1]) WARNING: line length of 90 exceeds 80 columns #428: FILE: net/quic/pnspace.h:137: + space->ecn_count[QUIC_ECN_PEER][QUIC_ECN_ECT1] = ecn_count[QUIC_ECN_ECT1]; WARNING: line length of 84 exceeds 80 columns #429: FILE: net/quic/pnspace.h:138: + if (space->ecn_count[QUIC_ECN_PEER][QUIC_ECN_CE] < ecn_count[QUIC_ECN_CE]) { WARNING: line length of 86 exceeds 80 columns #430: FILE: net/quic/pnspace.h:139: + space->ecn_count[QUIC_ECN_PEER][QUIC_ECN_CE] = ecn_count[QUIC_ECN_CE]; WARNING: line length of 87 exceeds 80 columns #436: FILE: net/quic/pnspace.h:145: +u16 quic_pnspace_num_gabs(struct quic_pnspace *space, struct quic_gap_ack_block *gabs); total: 0 errors, 54 warnings, 0 checks, 434 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 9b4d41e49b66 ("quic: add packet number space") 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, 54 warnings, 0 checks, 434 lines checked