Re: [RFC PATCH v3] Documentation/bpf: Document API stability expectations for kfuncs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 02, 2023 at 12:55:08PM +0100, Toke Høiland-Jørgensen wrote:
> David Vernet <void@xxxxxxxxxxxxx> writes:
> 
> > On Wed, Feb 01, 2023 at 06:44:48PM +0100, Toke Høiland-Jørgensen wrote:
> >> Following up on the discussion at the BPF office hours (and subsequent
> >> discussion), this patch adds a description of API stability expectations
> >> for kfuncs. The goal here is to manage user expectations about what kind of
> >> stability can be expected for kfuncs exposed by the kernel.
> >> 
> >> Since the traditional BPF helpers are basically considered frozen at this
> >> point, kfuncs will be the way all new functionality will be exposed to BPF
> >> going forward. This makes it important to document their stability
> >> guarantees, especially since the perception up until now has been that
> >> kfuncs should always be considered "unstable" in the sense of "may go away
> >> or change at any time". Which in turn makes some users reluctant to use
> >> them because they don't want to rely on functionality that may be removed
> >> in future kernel versions.
> >> 
> >> This patch adds a section to the kfuncs documentation outlining how we as a
> >> community think about kfunc stability. The description is a bit vague and
> >> wishy-washy at times, but since there does not seem to be consensus to
> >> commit to any kind of hard stability guarantees at this point, I feat this
> >> is the best we can do.
> >> 
> >> I put this topic on the agenda again for tomorrow's office hours, but
> >> wanted to send this out ahead of time, to give people a chance to read it
> >> and think about whether it makes sense or if there's a better approach.
> >> 
> >> Previous discussion:
> >> https://lore.kernel.org/r/20230117212731.442859-1-toke@xxxxxxxxxx
> >
> > Again, thanks a lot for writing this down and getting a real / tangible
> > conversation started.
> 
> You're welcome! Just a few quick notes on one or two points below, we
> can continue the discussion at the office hours:

Hey Toke,

Sounds good, I just read over your notes / points and am happy to
discuss more in office hours as you suggested. Just wanted to give you a
heads up well that just I sent out a proposal which you can read in [0].

[0]: https://lore.kernel.org/all/20230202163056.658641-1-void@xxxxxxxxxxxxx/

I know it's short notice (sorry about that, did my best to get it all
ready as soon as possible before office hours), but if you happen to
have time to read over it before we meet that would be great. If not, no
worries, I can just tell you the gist of what I'm proposing when we talk
in office hours in half an hour.

Thanks,
David



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux