[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <269646ef.6122.18b37cb5c27.Coremail.00107082@163.com>
Date: Mon, 16 Oct 2023 17:22:36 +0800 (CST)
From: "David Wang" <00107082@....com>
To: "Florian Westphal" <fw@...len.de>
Cc: "Daniel Xu" <dxu@...uu.xyz>,
"Pablo Neira Ayuso" <pablo@...filter.org>,
"Jozsef Kadlecsik" <kadlec@...filter.org>,
netfilter-devel@...r.kernel.org, coreteam@...filter.org,
linux-kernel@...r.kernel.org, bpf@...r.kernel.org
Subject: Re:Re: [PATCH] uapi/netfilter: Change netfilter hook verdict code
definition from macro to enum
At 2023-09-28 19:53:59, "Florian Westphal" <fw@...len.de> wrote:
>
>I was about to apply this as-is, but Pablo Neira would prefer to
>keep the defines as well.
>
>So, as a compromise, I would suggest to just *add*
>
>/* verdicts available to BPF are exported via vmlinux.h */
>enum {
> NF_DROP = 0,
> NF_ACCEPT = 1,
>};
>
>#define NF_DROP 0
>...
>
>This way BTF won't have the other verdicts, but ATM those
>cannot be used in BPF programs anyway.
>
>Would you mind making a new version of the patch?
>Otherwise I can mangle it locally here as needed.
Sorry for this late response, I got caught up by an unexpected personal "crisis" for quite a long while..
Hope you have already made the change, and it is OK.
David
Powered by blists - more mailing lists