[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <635b0dad-98bf-41e9-b7b6-1f28da48fc00@redhat.com>
Date: Tue, 4 Nov 2025 13:17:26 +0100
From: Paolo Abeni <pabeni@...hat.com>
To: Xin Long <lucien.xin@...il.com>, network dev <netdev@...r.kernel.org>,
quic@...ts.linux.dev
Cc: davem@...emloft.net, kuba@...nel.org, Eric Dumazet <edumazet@...gle.com>,
Simon Horman <horms@...nel.org>, Stefan Metzmacher <metze@...ba.org>,
Moritz Buhl <mbuhl@...nbsd.org>, Tyler Fanelli <tfanelli@...hat.com>,
Pengtao He <hepengtao@...omi.com>, Thomas Dreibholz <dreibh@...ula.no>,
linux-cifs@...r.kernel.org, Steve French <smfrench@...il.com>,
Namjae Jeon <linkinjeon@...nel.org>, Paulo Alcantara <pc@...guebit.com>,
Tom Talpey <tom@...pey.com>, kernel-tls-handshake@...ts.linux.dev,
Chuck Lever <chuck.lever@...cle.com>, Jeff Layton <jlayton@...nel.org>,
Benjamin Coddington <bcodding@...hat.com>, Steve Dickson
<steved@...hat.com>, Hannes Reinecke <hare@...e.de>,
Alexander Aring <aahringo@...hat.com>, David Howells <dhowells@...hat.com>,
Matthieu Baerts <matttbe@...nel.org>, John Ericson <mail@...nericson.me>,
Cong Wang <xiyou.wangcong@...il.com>, "D . Wythe"
<alibuda@...ux.alibaba.com>, Jason Baron <jbaron@...mai.com>,
illiliti <illiliti@...tonmail.com>, Sabrina Dubroca <sd@...asysnail.net>,
Marcelo Ricardo Leitner <marcelo.leitner@...il.com>,
Daniel Stenberg <daniel@...x.se>,
Andy Gospodarek <andrew.gospodarek@...adcom.com>
Subject: Re: [PATCH net-next v4 10/15] quic: add packet number space
On 10/29/25 3:35 PM, Xin Long wrote:
> +struct quic_pnspace {
> + /* ECN counters indexed by direction (TX/RX) and ECN codepoint (ECT1, ECT0, CE) */
> + u64 ecn_count[QUIC_ECN_DIR_MAX][QUIC_ECN_MAX];
> + unsigned long *pn_map; /* Bit map tracking received packet numbers for ACK generation */
> + u16 pn_map_len; /* Length of the packet number bit map (in bits) */
> + u8 need_sack:1; /* Flag indicating a SACK frame should be sent for this space */
> + u8 sack_path:1; /* Path used for sending the SACK frame */
> +
> + s64 last_max_pn_seen; /* Highest packet number seen before pn_map advanced */
> + u32 last_max_pn_time; /* Timestamp when last_max_pn_seen was received */
> + u32 max_time_limit; /* Time threshold to trigger pn_map advancement on packet receipt */
> + s64 min_pn_seen; /* Smallest packet number received in this space */
> + s64 max_pn_seen; /* Largest packet number received in this space */
> + u32 max_pn_time; /* Time at which max_pn_seen was received */
> + s64 base_pn; /* Packet number corresponding to the start of the pn_map */
> + u32 time; /* Cached current time, or time accept a socket (listen socket) */
There are a few 32 bits holes above you could avoid reordering the fields.
Otherwise LGTM,
Acked-by: Paolo Abeni <pabeni@...hat.com>
Powered by blists - more mailing lists