On Tue, May 12, 2020 at 10:03 AM Yonghong Song <yhs@xxxxxx> wrote: > > > > On 5/12/20 9:30 AM, Lorenzo Bianconi wrote: > > xdp_redirect_cpu is currently failing in bpf_prog_load_xattr() > > allocating cpu_map map if CONFIG_NR_CPUS is less than 64 since > > cpu_map_alloc() requires max_entries to be less than NR_CPUS. > > Set cpu_map max_entries according to NR_CPUS in xdp_redirect_cpu_kern.c > > and get currently running cpus in xdp_redirect_cpu_user.c > > > > Signed-off-by: Lorenzo Bianconi <lorenzo@xxxxxxxxxx> > > Acked-by: Yonghong Song <yhs@xxxxxx> Applied. Thanks