Messages in this thread | | | From | Quentin Monnet <> | Date | Tue, 15 Nov 2022 20:19:05 +0000 | Subject | Re: [PATCH bpf-next v2] bpftool: Check argc first before "file" in do_batch() |
| |
On Tue, 15 Nov 2022 at 18:42, <sdf@google.com> wrote: > > On 11/15, Tiezhu Yang wrote: > > If the parameters for batch are more than 2, check argc first can > > return immediately, no need to use is_prefix() to check "file" with > > a little overhead and then check argc, it is better to check "file" > > only when the parameters for batch are 2. > > > Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> > > Acked-by: Stanislav Fomichev <sdf@google.com>
Reviewed-by: Quentin Monnet <quentin@isovalent.com>
Thanks
| |