]> git.baikalelectronics.ru Git - kernel.git/commit
cpumap: Formalize map value as a named struct
authorLorenzo Bianconi <lorenzo@kernel.org>
Tue, 14 Jul 2020 13:56:37 +0000 (15:56 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 16 Jul 2020 15:00:32 +0000 (17:00 +0200)
commit432afcba9f6814c4036b1ead6d4e92ef52c29764
tree70ade60a61ea7f007193c1b908817cae13c43638
parent18770f2c60a32f6ebd4f0119c74b06f06c68d82f
cpumap: Formalize map value as a named struct

As it has been already done for devmap, introduce 'struct bpf_cpumap_val'
to formalize the expected values that can be passed in for a CPUMAP.
Update cpumap code to use the struct.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Link: https://lore.kernel.org/bpf/754f950674665dae6139c061d28c1d982aaf4170.1594734381.git.lorenzo@kernel.org
include/uapi/linux/bpf.h
kernel/bpf/cpumap.c
tools/include/uapi/linux/bpf.h