Message ID | 20211014143436.54470-3-lmb@cloudflare.com (mailing list archive) |
---|---|
State | RFC |
Delegated to: | BPF |
Headers | show |
Series | uapi/bpf.h for robots | expand |
Context | Check | Description |
---|---|---|
netdev/tree_selection | success | Not a local patch |
bpf/vmtest-bpf | fail | VM_Test |
bpf/vmtest-bpf-PR | fail | PR summary |
bpf/vmtest-bpf-next | fail | VM_Test |
bpf/vmtest-bpf-next-PR | fail | PR summary |
On Thu, Oct 14, 2021 at 03:34:26PM +0100, Lorenz Bauer wrote: > --- > include/uapi/linux/bpf.h | 17 +++++++++++++---- > 1 file changed, 13 insertions(+), 4 deletions(-) I know I don't take matches without any changelog text, maybe other maintainers are more lax? Also, no signed-off-by:? :( > > diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h > index 78b532d28761..211b9d902006 100644 > --- a/include/uapi/linux/bpf.h > +++ b/include/uapi/linux/bpf.h > @@ -1248,7 +1248,10 @@ enum bpf_stack_build_id_status { > BPF_STACK_BUILD_ID_IP = 2, > }; > > -#define BPF_BUILD_ID_SIZE 20 > +enum { > + BPF_BUILD_ID_SIZE = 20, > +}; > + > struct bpf_stack_build_id { > __s32 status; > unsigned char build_id[BPF_BUILD_ID_SIZE]; > @@ -1258,7 +1261,9 @@ struct bpf_stack_build_id { > }; > }; > > -#define BPF_OBJ_NAME_LEN 16U > +enum { > + BPF_OBJ_NAME_LEN = 16U, > +}; > > union bpf_attr { > struct { /* anonymous struct used by BPF_MAP_CREATE command */ > @@ -5464,7 +5469,9 @@ struct bpf_xdp_sock { > __u32 queue_id; > }; > > -#define XDP_PACKET_HEADROOM 256 > +enum { > + XDP_PACKET_HEADROOM = 256, > +}; > > /* User return codes for XDP prog type. > * A valid XDP program must return one of these defined values. All other > @@ -5582,7 +5589,9 @@ struct sk_reuseport_md { > __bpf_md_ptr(struct bpf_sock *, migrating_sk); > }; > > -#define BPF_TAG_SIZE 8 > +enum { > + BPF_TAG_SIZE = 8, > +}; > > struct bpf_prog_info { > __u32 type; > -- > 2.30.2 >
On Thu, 14 Oct 2021 at 15:43, Greg KH <gregkh@linuxfoundation.org> wrote: > > On Thu, Oct 14, 2021 at 03:34:26PM +0100, Lorenz Bauer wrote: > > --- > > include/uapi/linux/bpf.h | 17 +++++++++++++---- > > 1 file changed, 13 insertions(+), 4 deletions(-) > > I know I don't take matches without any changelog text, maybe other > maintainers are more lax? Hi Greg, The patches aren't ready to go in, I'm looking for feedback. The rationale in the cover letter for the series, I thought the RFC tag would be enough, sorry about that. I expect that there will be a lot of changes (if it lands at all) so I didn't invest the time to write commit descriptions. Lorenz
On Thu, Oct 14, 2021 at 03:47:19PM +0100, Lorenz Bauer wrote: > On Thu, 14 Oct 2021 at 15:43, Greg KH <gregkh@linuxfoundation.org> wrote: > > > > On Thu, Oct 14, 2021 at 03:34:26PM +0100, Lorenz Bauer wrote: > > > --- > > > include/uapi/linux/bpf.h | 17 +++++++++++++---- > > > 1 file changed, 13 insertions(+), 4 deletions(-) > > > > I know I don't take matches without any changelog text, maybe other > > maintainers are more lax? > > Hi Greg, > > The patches aren't ready to go in, I'm looking for feedback. The > rationale in the cover letter for the series, I thought the RFC tag > would be enough, sorry about that. I expect that there will be a lot > of changes (if it lands at all) so I didn't invest the time to write > commit descriptions. commit descriptions are usually the hardest part of the patch to write, but the most important for the reviewers. We optimize for reviewers, not submitters :) thanks, greg k-h
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h index 78b532d28761..211b9d902006 100644 --- a/include/uapi/linux/bpf.h +++ b/include/uapi/linux/bpf.h @@ -1248,7 +1248,10 @@ enum bpf_stack_build_id_status { BPF_STACK_BUILD_ID_IP = 2, }; -#define BPF_BUILD_ID_SIZE 20 +enum { + BPF_BUILD_ID_SIZE = 20, +}; + struct bpf_stack_build_id { __s32 status; unsigned char build_id[BPF_BUILD_ID_SIZE]; @@ -1258,7 +1261,9 @@ struct bpf_stack_build_id { }; }; -#define BPF_OBJ_NAME_LEN 16U +enum { + BPF_OBJ_NAME_LEN = 16U, +}; union bpf_attr { struct { /* anonymous struct used by BPF_MAP_CREATE command */ @@ -5464,7 +5469,9 @@ struct bpf_xdp_sock { __u32 queue_id; }; -#define XDP_PACKET_HEADROOM 256 +enum { + XDP_PACKET_HEADROOM = 256, +}; /* User return codes for XDP prog type. * A valid XDP program must return one of these defined values. All other @@ -5582,7 +5589,9 @@ struct sk_reuseport_md { __bpf_md_ptr(struct bpf_sock *, migrating_sk); }; -#define BPF_TAG_SIZE 8 +enum { + BPF_TAG_SIZE = 8, +}; struct bpf_prog_info { __u32 type;