Re: [PATCH v2 bpf-next 8/8] selftest: add tests for XDP programs in CPUMAP entries

2020-06-22 Thread Andrii Nakryiko
On Fri, Jun 19, 2020 at 9:55 PM Lorenzo Bianconi wrote: > > Similar to what have been done for DEVMAP, introduce tests to verify > ability to add a XDP program to an entry in a CPUMAP. > Verify CPUMAP programs can not be attached to devices as a normal > XDP program, and only programs with BPF_XDP

[PATCH v2 bpf-next 8/8] selftest: add tests for XDP programs in CPUMAP entries

2020-06-19 Thread Lorenzo Bianconi
Similar to what have been done for DEVMAP, introduce tests to verify ability to add a XDP program to an entry in a CPUMAP. Verify CPUMAP programs can not be attached to devices as a normal XDP program, and only programs with BPF_XDP_CPUMAP attach type can be loaded in a CPUMAP. Signed-off-by: Lore