WARNING: line length of 88 exceeds 80 columns #83: FILE: net/quic/pnspace.c:21: + space->pn_map = kzalloc(BITS_TO_BYTES(QUIC_PN_MAP_INITIAL), GFP_KERNEL); WARNING: line length of 85 exceeds 80 columns #103: FILE: net/quic/pnspace.c:41: +/* Expand the bitmap tracking received packet numbers. Ensures the pn_map bitmap can WARNING: line length of 83 exceeds 80 columns #104: FILE: net/quic/pnspace.c:42: + * cover at least @size packet numbers. Allocates a larger bitmap, copies existing WARNING: line length of 84 exceeds 80 columns #107: FILE: net/quic/pnspace.c:45: + * Returns: 1 if the bitmap was successfully grown, 0 on failure or if the requested WARNING: line length of 87 exceeds 80 columns #118: FILE: net/quic/pnspace.c:56: + inc = ALIGN((size - space->pn_map_len), BITS_PER_LONG) + QUIC_PN_MAP_INCREMENT; WARNING: line length of 82 exceeds 80 columns #149: FILE: net/quic/pnspace.c:87: + test_bit(pn - space->base_pn, space->pn_map))) WARNING: line length of 83 exceeds 80 columns #164: FILE: net/quic/pnspace.c:102: + offset = (u16)find_next_zero_bit(space->pn_map, space->pn_map_len, offset); WARNING: line length of 84 exceeds 80 columns #166: FILE: net/quic/pnspace.c:104: + bitmap_shift_right(space->pn_map, space->pn_map, offset, space->pn_map_len); WARNING: line length of 81 exceeds 80 columns #170: FILE: net/quic/pnspace.c:108: + * reception of @pn. Advances base_pn if possible, and updates max/min/last seen WARNING: line length of 90 exceeds 80 columns #182: FILE: net/quic/pnspace.c:120: + /* Initialize base_pn based on the peer's first packet number since peer's WARNING: line length of 84 exceeds 80 columns #189: FILE: net/quic/pnspace.c:127: + /* Ignore packets with number less than current base (already processed). */ WARNING: line length of 89 exceeds 80 columns #193: FILE: net/quic/pnspace.c:131: + /* If gap is beyond current map length, try to grow the bitmap to accommodate. */ WARNING: line length of 97 exceeds 80 columns #203: FILE: net/quic/pnspace.c:141: + if (space->base_pn == pn) { /* If packet is exactly at base_pn (next expected packet). */ WARNING: line length of 94 exceeds 80 columns #204: FILE: net/quic/pnspace.c:142: + if (quic_pnspace_has_gap(space)) /* Advance base_pn to next unacked packet. */ WARNING: line length of 88 exceeds 80 columns #212: FILE: net/quic/pnspace.c:150: + /* Only update min and last_max_pn_seen if this packet is the current max_pn. */ WARNING: line length of 83 exceeds 80 columns #216: FILE: net/quic/pnspace.c:154: + /* Check if enough time has elapsed or enough packets have been received to WARNING: line length of 83 exceeds 80 columns #220: FILE: net/quic/pnspace.c:158: + if (space->max_pn_time < space->last_max_pn_time + space->max_time_limit && WARNING: line length of 83 exceeds 80 columns #224: FILE: net/quic/pnspace.c:162: + /* Advance base_pn if last_max_pn_seen is ahead of current base_pn. This is WARNING: line length of 83 exceeds 80 columns #225: FILE: net/quic/pnspace.c:163: + * needed because QUIC doesn't retransmit packets; retransmitted frames are WARNING: line length of 85 exceeds 80 columns #237: FILE: net/quic/pnspace.c:175: +/* Find the next gap in received packet numbers. Scans pn_map for a gap starting from WARNING: line length of 83 exceeds 80 columns #238: FILE: net/quic/pnspace.c:176: + * *@iter. A gap is a contiguous block of unreceived packets between received ones. WARNING: line length of 83 exceeds 80 columns #247: FILE: net/quic/pnspace.c:185: + start_ = (u16)find_next_zero_bit(space->pn_map, space->pn_map_len, offset); WARNING: line length of 85 exceeds 80 columns #261: FILE: net/quic/pnspace.c:199: +/* Generate gap acknowledgment blocks (GABs). GABs describe ranges of unacknowledged WARNING: line length of 86 exceeds 80 columns #266: FILE: net/quic/pnspace.c:204: +u16 quic_pnspace_num_gabs(struct quic_pnspace *space, struct quic_gap_ack_block *gabs) WARNING: line length of 84 exceeds 80 columns #275: FILE: net/quic/pnspace.c:213: + /* Loop through all gaps until the end of the window or max allowed gaps. */ WARNING: line length of 85 exceeds 80 columns #279: FILE: net/quic/pnspace.c:217: + gabs[ngaps].end = (u16)(space->max_pn_seen - space->base_pn); WARNING: line length of 91 exceeds 80 columns #328: FILE: net/quic/pnspace.h:35: +/* Represents a gap (range of missing packets) in the ACK map. The values are offsets from WARNING: line length of 90 exceeds 80 columns #355: FILE: net/quic/pnspace.h:62: + /* ECN counters indexed by direction (TX/RX) and ECN codepoint (ECT1, ECT0, CE) */ WARNING: line length of 97 exceeds 80 columns #357: FILE: net/quic/pnspace.h:64: + unsigned long *pn_map; /* Bit map tracking received packet numbers for ACK generation */ WARNING: line length of 83 exceeds 80 columns #358: FILE: net/quic/pnspace.h:65: + u16 pn_map_len; /* Length of the packet number bit map (in bits) */ WARNING: line length of 96 exceeds 80 columns #359: FILE: net/quic/pnspace.h:66: + u8 need_sack:1; /* Flag indicating a SACK frame should be sent for this space */ WARNING: line length of 87 exceeds 80 columns #362: FILE: net/quic/pnspace.h:69: + s64 last_max_pn_seen; /* Highest packet number seen before pn_map advanced */ WARNING: line length of 82 exceeds 80 columns #363: FILE: net/quic/pnspace.h:70: + u64 last_max_pn_time; /* Timestamp when last_max_pn_seen was received */ WARNING: line length of 83 exceeds 80 columns #364: FILE: net/quic/pnspace.h:71: + 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:72: + 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:74: + s64 base_pn; /* Packet number corresponding to the start of the pn_map */ WARNING: line length of 97 exceeds 80 columns #368: FILE: net/quic/pnspace.h:75: + u64 time; /* Cached current timestamp, or latest socket accept timestamp */ WARNING: line length of 84 exceeds 80 columns #370: FILE: net/quic/pnspace.h:77: + s64 max_pn_acked_seen; /* Largest packet number acknowledged by the peer */ WARNING: line length of 87 exceeds 80 columns #371: FILE: net/quic/pnspace.h:78: + u64 max_pn_acked_time; /* Timestamp when max_pn_acked_seen was acknowledged */ WARNING: line length of 91 exceeds 80 columns #372: FILE: net/quic/pnspace.h:79: + u64 last_sent_time; /* Timestamp when the last ack-eliciting packet was sent */ WARNING: line length of 96 exceeds 80 columns #373: FILE: net/quic/pnspace.h:80: + u64 loss_time; /* Timestamp after which the next packet can be declared lost */ WARNING: line length of 100 exceeds 80 columns #376: FILE: net/quic/pnspace.h:83: + u32 max_time_limit; /* Time threshold to trigger pn_map advancement on packet receipt */ WARNING: line length of 95 exceeds 80 columns #377: FILE: net/quic/pnspace.h:84: + u32 inflight; /* Bytes of all ack-eliciting frames in flight in this space */ WARNING: line length of 81 exceeds 80 columns #380: 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 #405: 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 #425: 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 #427: 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 #428: 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 #429: 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 #430: 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 #431: 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 #432: 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 #438: FILE: net/quic/pnspace.h:145: +u16 quic_pnspace_num_gabs(struct quic_pnspace *space, struct quic_gap_ack_block *gabs); total: 0 errors, 53 warnings, 0 checks, 435 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 df5c2cbfb720 ("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 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, 53 warnings, 0 checks, 435 lines checked