History

bpf: Add generic support for update and delete batch ops

This commit adds generic support for update and delete batch ops that can be used for almost all the bpf maps. These commands share the same UAPI attr that lookup and lookup_and_delete batch ops use and the syscall commands are: BPF_MAP_UPDATE_BATCH BPF_MAP_DELETE_BATCH The main difference between update/delete and lookup batch ops is that for update/delete keys/values must be specified for userspace and because of that, neither in_batch nor out_batch are used.

Brian Vazquez committed 6 years ago

Commit aa2e93b1 parent cb4d03a3 files · +127 −0Browse files

Showing the changes to include/uapi/linux (1 of 3 files). Show all

Unified · Split

include/uapi/linux/bpf.h+2−0
@@ -108,6 +108,8 @@ enum bpf_cmd { · 107 unmodified lines
108 BPF_MAP_FREEZE,108 BPF_MAP_FREEZE,
109 BPF_BTF_GET_NEXT_ID,109 BPF_BTF_GET_NEXT_ID,
110 BPF_MAP_LOOKUP_BATCH,110 BPF_MAP_LOOKUP_BATCH,
111 BPF_MAP_UPDATE_BATCH,
112 BPF_MAP_DELETE_BATCH,
111};113};
112 114
113enum bpf_map_type {115enum bpf_map_type {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t