lkml.org 
[lkml]   [2023]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] bpf: Use E2BIG instead of ENOENT
From

Hi, Alexei, the delete element api of stackmap return E2BIG when the key
size beyond the buckets size, so i try to keep the same approach. Maybe
it's not necessary, anyway, thanks for your reply.

在 2023/11/6 下午11:59, Tao Chen 写道:
>
>
> ---------- Forwarded message ---------
> 发件人: *Alexei Starovoitov* <alexei.starovoitov@gmail.com
> <mailto:alexei.starovoitov@gmail.com>>
> Date: 2023年11月5日周日 04:54
> Subject: Re: [PATCH] bpf: Use E2BIG instead of ENOENT
> To: Tao Chen <chen.dylane@gmail.com <mailto:chen.dylane@gmail.com>>
> Cc: Song Liu <song@kernel.org <mailto:song@kernel.org>>, Jiri Olsa
> <jolsa@kernel.org <mailto:jolsa@kernel.org>>, Alexei Starovoitov
> <ast@kernel.org <mailto:ast@kernel.org>>, Daniel Borkmann
> <daniel@iogearbox.net <mailto:daniel@iogearbox.net>>, Andrii Nakryiko
> <andrii@kernel.org <mailto:andrii@kernel.org>>, Yonghong Song
> <yonghong.song@linux.dev <mailto:yonghong.song@linux.dev>>, Martin KaFai
> Lau <martin.lau@linux.dev <mailto:martin.lau@linux.dev>>, John Fastabend
> <john.fastabend@gmail.com <mailto:john.fastabend@gmail.com>>, Hao Luo
> <haoluo@google.com <mailto:haoluo@google.com>>, bpf <bpf@vger.kernel.org
> <mailto:bpf@vger.kernel.org>>, LKML <linux-kernel@vger.kernel.org
> <mailto:linux-kernel@vger.kernel.org>>
>
>
> On Fri, Nov 3, 2023 at 7:44 PM Tao Chen <chen.dylane@gmail.com
> <mailto:chen.dylane@gmail.com>> wrote:
> >
> > Use E2BIG instead of ENOENT when the key size beyond the buckets size,
> > it seems more meaningful.
>
> seems more meaningful?
> Sorry. That's hardly a reason to break someone's code.

\
 
 \ /
  Last update: 2023-11-20 13:50    [W:0.045 / U:1.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site