Re: [PATCH bpf-next v4] bpf: Lift hashtab key_size limit

2020-10-28 Thread Andrii Nakryiko
On Wed, Oct 28, 2020 at 3:21 PM Florian Lehner wrote: > > Currently key_size of hashtab is limited to MAX_BPF_STACK. > As the key of hashtab can also be a value from a per cpu map it can be > larger than MAX_BPF_STACK. > > The use-case for this patch originates to implement allow/disallow > lists

[PATCH bpf-next v4] bpf: Lift hashtab key_size limit

2020-10-28 Thread Florian Lehner
Currently key_size of hashtab is limited to MAX_BPF_STACK. As the key of hashtab can also be a value from a per cpu map it can be larger than MAX_BPF_STACK. The use-case for this patch originates to implement allow/disallow lists for files and file paths. The maximum length of file paths is define