Article View: linux.kernel.netdev
Article #4604Re: [PATCH bpf-next 5/6] libbpf: Add bpf_link_create_log API
From: Leon Hwang
Date: Sun, 18 Oct 2026 16:33
Date: Sun, 18 Oct 2026 16:33
41 lines
7850 bytes
7850 bytes
On 2026/10/17 23:03, bot+bpf-ci@kernel.org wrote:
>> libbpf: Add bpf_link_create_log API
>
> TL;DR: Commit message only: the rationale for adding bpf_link_create_log()
> instead of extending bpf_link_create_opts is vague ("it seems not proper") and
> one sentence is self-contradictory; no code issues raised.
>
>> libbpf: Add bpf_link_create_log API
>>
>> Add a new API to accept the log opts, instead of extending the existing
>> struct bpf_link_create_opts.
>>
>> In the struct bpf_link_create_opts, it seems not proper to append a
>> tailing common log field prior to those variant length fields.
>>
>> Add a new API to avoid breaking the struct bpf_link_create_opts.
>>
>> Signed-off-by: Leon Hwang <leon.hwang@linux.dev>
>
> This isn't a bug, but could the changelog say more concretely why a log
> field cannot be added to struct bpf_link_create_opts (for example, the
> trailing union growing for future link types), rather than "it seems not
> proper"?
>
> The sentence "append a tailing common log field prior to those variant
> length fields" also reads as self-contradictory, since "append" and "prior
> to" point in opposite directions.
Will describe my justification with a concrete case in the next revision.
Thanks,
Leon
>
>
> ---
> AI reviewed your patch. Please fix the bug or email reply why it's not a bug.
> See: https://github.com/kernel-patches/vmtest/blob/master/ci/claude/README.md
>
> CI run summary: https://github.com/kernel-patches/bpf/actions/runs/39042048581
Technical Details
Message-ID:
<4600eb22-3075-454b-8d6f-d8e01f092e5e@linux.dev>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-348100-linux-kernel-netdev=dewy.ruReferences:
<20261017142649.51047-6-leon.hwang@linux.dev> <d8f51a15d54c296421230d26a3c7b1bb535c9bd98e15eb52dd36344c3690c053@mail.kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-348100-linux-kernel-netdev=dewy.ru From: leon.hwang@linux.dev (Leon Hwang) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH bpf-next 5/6] libbpf: Add bpf_link_create_log API Date: Mon, 19 Oct 2026 00:33:00 +0800 Organization: Usenet Network Message-ID: <4600eb22-3075-454b-8d6f-d8e01f092e5e@linux.dev> References: <20261017142649.51047-6-leon.hwang@linux.dev> <d8f51a15d54c296421230d26a3c7b1bb535c9bd98e15eb52dd36344c3690c053@mail.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="3371969"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:1At+yLbair/J4+pvFew1yhZid0Y= sha256:uc0W1hJ7Em0UzHf0joCd8CkvjXP6IL2Iui7n/9qQQVo= sha1:7ZM8ExsJ9zZOTsi9SdpqJ16H494= sha256:oZ9ToDHGIK7/N+cACqWila9SR6xE1NEu4Brw0Me/scM= Content-Language: en-US List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 6325F11084E; Sun, 18 Oct 2026 19:36:35 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=linux.dev X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OGVb0oSVHVL7; Sun, 18 Oct 2026 19:36:32 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-348100-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.dev X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 22131110837; Sun, 18 Oct 2026 19:36:24 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id A8285335A6; Sun, 18 Oct 2026 16:33:22 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 04BED3DE441; Sun, 18 Oct 2026 16:33:19 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="MU6Tq3F2" X-Received: from mta0.migadu.com (out-45.mta0.migadu.com [91.218.175.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 765CD3DDAFE for <netdev@vger.kernel.org>; Sun, 18 Oct 2026 16:33:13 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.45 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792341198; cv=none; b=t0hWYrXSewYnTqUy8YlWyIrn1YqJ84958Z2PueG8Hj/HHIMm36M9RIaJDD4xyyVIG5tJGxUWCF0JbvLdVOBtEXveK5mRmZj8rnUgLO9Dcouv0iuwFy/KR6+l8YGWL9yIBitU3LBqy6vxMLrWJ6Blcul4/6mjgQjfHCFqKOprYCw= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792341198; c=relaxed/simple; bh=ojksHLeipKPRkqBzkwdonsEV9b1jH0qB2Zw+8QFvt2w=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Hv9rup2mA9jk5YACbzXrRzhRWxC/QOMXpIbm6P7KP6ugqeRAU71XZKIwv9y13cKAEcyeHPaj2t1iV7xInCVqkaH17o5Im77xnxTAcO4q5Gdir5Fpl+NBkwtwPW9Vi/XHRtYQB8m2tzmVvKEUj39ihj5GuY2dTJvpChXea14FPAM= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=MU6Tq3F2; arc=none smtp.client-ip=91.218.175.45 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Envelope-To: netdev@vger.kernel.org X-DKIM-Signature: a=rsa-sha256; bh=ojksHLeipKPRkqBzkwdonsEV9b1jH0qB2Zw+8QFvt2w=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1792341192; v=1; x=1792945992; b=MU6Tq3F2JtlJvHtQqgd3/5uLKQSfx1QSgtMX5c8jzBCoWO9VmO9IyIdHwmYF5ekZqJbDiK9N ViKhXvxC9x/wi3ko2ehWvlg/SdnvRcuKZkyFg+wM/eLgLDTSV8WAKEFY1f44Abo+XyFHCAbK/qS wpIGlmxD+XySAK7mFLfZQQ2M= X-Envelope-To: netdev@vger.kernel.org X-Received: by smtp.migadu.com with ESMTPS id 4a67c33501ed153d; Sun, 18 Oct 2026 16:33:11 +0000 X-Mizu-Trace-ID: 4a67c33501ed153d X-Migadu-Flow: FLOW_OUT X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-User-Agent: Mozilla Thunderbird X-Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, eddyz87@gmail.com, memxor@gmail.com, martin.lau@linux.dev, song@kernel.org, yonghong.song@linux.dev, jolsa@kernel.org, emil@etsalapatis.com, ihor.solodrai@linux.dev, hawk@kernel.org, john.fastabend@gmail.com, sdf@fomichev.me, rostedt@goodmis.org, mhiramat@kernel.org, mathieu.desnoyers@efficios.com, shuah@kernel.org, kuniyu@google.com, liuhangbin@gmail.com, mkarsten@uwaterloo.ca, masashi.honma@gmail.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, martin.lau@kernel.org, mason@kernel.org X-In-Reply-To: <d8f51a15d54c296421230d26a3c7b1bb535c9bd98e15eb52dd36344c3690c053@mail.kernel.org>