Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796104046; b=CI2ge6x945SAycYI3D2vw0X8lxj3JGsFC0hs3IF7k2hy7SefhxwNkzGhzt7YaNALksP1 IgZhrg+rjI0V6X8GOAjqhQkbdS2XuXW8aAlXcbqFKkNNadgpidEGPKCcOAwStXNISaBK2 pHibSALEj4aUePdZooH77C5C2qaE3PpIIVTq7Tf6/WZ0uQRfZQV9FBSsPHr4wVnfqb1hT HPSl2R8CuXxe3JmBbQyYYr70lov8KsdM5u5aAInNYDuY/2cp58yTkt6R/kf6RXOq344kx 0GZIq7+BNeOAX1wUQupx+ON4c/w3Bl/PAHWvifuny87cqPJ1KaI4DEznZLsICGRkX0Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796104046; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=v9TecpP+baDMFJaHJXe4yQqRHsK9G66qI1VxjMoQ8MY=; b=B9thhldkyhPrcGtxL2LGDtgVNfHykVktgSvqvm3mi31HecGJEIFoqnasj1Bkr1sBIa5p lp+u48mVhfBvRE4oGDk9xo5Cov/86DQwCA8v/5NDupJlP0m+BkS+056jS28gd26L7BZvE gBV5zt8SMsR+bf8TPDkztIX+C7PndoFmYUKuY5zX+7Na73m9aHonUaXYzb4vQQnrbxKG3 UBUxZOFLjoY7i/eEIPcdW3tMa/rRQnUXdOngC1pzLZMWG+uHlPMxQS/NQDz/WrwfmF34d UdxfUXcOmpJvdrJFLvdfxVnOCBxrdt+eE7skdsYRBXqFqo158Jegyt7yDXfTdWT+52g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=AyCIcRPE; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 89600606A325 for ; Tue, 1 Dec 2026 05:47:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=AyCIcRPE Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52A0E1F00893; Tue, 1 Dec 2026 05:47:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796104046; bh=v9TecpP+baDMFJaHJXe4yQqRHsK9G66qI1VxjMoQ8MY=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=AyCIcRPEjdCZpmE5tLh8DhVoGVkv5q6lLSDUlNoaUChplMriakYq2OnC5vRYtVFek qYkOpcfHSEoMl0POzA/0zku+acR2cgcDstBlqEcnUyPfAWKpRDFfjOWTQ9xHZ51VLJ hB9f1Yt/egrYrW2rWXzyefEx2/XhwLb5Cs98QYlae+XtH5OIBkk/Exc8geruqgud3B 2px5EbeeoyNzIwbOpGivtHss3iFzSovMc85XTX1be7If2CnA3huer4nPdgenXxAYm+ FPuUab+8DlozYRQ6NBqE5h4zVuIrXx9ZilAgky6RLRrA8REZQ6vC2oBTipJsm8jpPp QRv9ZbdPjiP5w== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH bpf-next v1 71/73] bpf: Let a struct_ops say what a cancelled program returns Reply-To: sashiko-reviews@lists.linux.dev To: "Kumar Kartikeya Dwivedi" , bpf@vger.kernel.org In-Reply-To: References: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Dec 2026 05:47:25 +0000 X-Mailing-List: bpf@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] bpf: non-standard multi-line comment style above bpf_qdisc_cancelled_retval() -- commit 244ad2a9c98f183d25b7f3f7eb78663a3d90e39b Author: Kumar Kartikeya Dwivedi bpf: Let a struct_ops say what a cancelled program returns This commit adds a cancelled_retval() callback to struct bpf_struct_ops so struct_ops implementations can specify the return value of a cancelled program, and implements it for bpf_qdisc. > diff --git a/net/sched/bpf_qdisc.c b/net/sched/bpf_qdisc.c > index 5098cf5a487c0..4b274c76163af 100644 > --- a/net/sched/bpf_qdisc.c > +++ b/net/sched/bpf_qdisc.c > @@ -453,6 +453,26 @@ static int bpf_qdisc_validate(void *kdata) > return 0; > } > =20 > +/* What a program returns when the kernel cancels it, which ends the pro= gram > + * early, for example at a loop that runs out of time: > + * > + * ->enqueue() NET_XMIT_DROP. The program may not have queued the packet= , and > + * the kernel has freed the packet if the program still held it. > + * ->init() -ECANCELED, so that qdisc_create() calls ->destroy() and fre= es > + * the qdisc, as for any ->init() that fails. > + * ->dequeue() returns NULL. ->reset() and ->destroy() return nothing. > + */ [Severity: Low] This isn't a bug, but BPF multi-line comments place the opening /* on its own line with the comment text starting on the next line. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/cover.1796099737.gi= t.memxor@gmail.com?part=3D71