From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 486AF2207D for ; Wed, 13 Dec 2023 21:08:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JA7dCLZ+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B1AEC433C9; Wed, 13 Dec 2023 21:08:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702501688; bh=QSbOOGOaIMeM+ibCAHIj+X3KXcfCh6g+WLS87aj3bMo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=JA7dCLZ+W7AiCDTH1Oiuq6TPjyb964qY7pslUSXmQ+K0QVSvMZHSEMteIPizpfNs3 BRUwvUNvKyK9B1UYwLK7J4LGBBzhM45LDvsBrFKYUiD1caaSB5v2EovnDXOx3A54Lq qbhNWRdt7pDqKolOuHG+RiAIMZz+1z/nJtRr+dVmT2XCmqXBeHGpmvWZ66phx2klzr KOEb9EZFDEZsi5eFzQ8Fk6VFOIUHAoBzX1uMq7sXH1hbCHnoxeOXt7J09Rvs9IyKkn i/t0Xo5I6YX/ona6JfQFBQEw+j6LfOs9CFl4ksN4HIR4SuM0tlkSbnS3OIN93qe6bG 9L1NM+Dh6Hefw== Date: Wed, 13 Dec 2023 13:08:07 -0800 From: Jakub Kicinski To: Jamal Hadi Salim Cc: Jamal Hadi Salim , Eric Dumazet , Victor Nogueira , xiyou.wangcong@gmail.com, jiri@resnulli.us, davem@davemloft.net, pabeni@redhat.com, daniel@iogearbox.net, dcaratti@redhat.com, netdev@vger.kernel.org, kernel@mojatatu.com Subject: Re: [PATCH net-next v3 2/3] net: sched: Make tc-related drop reason more flexible for remaining qdiscs Message-ID: <20231213130807.503e1332@kernel.org> In-Reply-To: References: <20231205205030.3119672-1-victor@mojatatu.com> <20231205205030.3119672-3-victor@mojatatu.com> <20231211182534.09392034@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 13 Dec 2023 13:36:31 -0500 Jamal Hadi Salim wrote: > Putting this to rest: > Other than fq codel, the others that deal with multiple skbs due to > gso segments. So the conclusion is: if we have a bunch in the list > then they all suffer the same fate. So a single reason for the list is > sufficient. Alright. I'm still a bit confused about the cb, tho. struct qdisc_skb_cb is the state struct. But we put the drop reason in struct tc_skb_cb. How does that work. Qdiscs will assume they own all of qdisc_skb_cb::data ? Maybe some documentation about the lifetimes of these things would clarify things?