diff options
| author | David S. Miller <davem@davemloft.net> | 2017-03-23 01:45:46 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-03-23 01:45:46 +0300 |
| commit | 9bdf64d511c5c23e39b7a58ff4056d839060c026 (patch) | |
| tree | a546eefbd355792aa544c0f220b38bab4493b1aa /include/linux | |
| parent | b4f0a66155564aaf7e98492e027efad9f797c244 (diff) | |
| parent | fb30d4b71214aa1811e997f8f753b14b46d5b912 (diff) | |
| download | linux-9bdf64d511c5c23e39b7a58ff4056d839060c026.tar.xz | |
Merge branch 'bpf-map-in-map'
Martin KaFai Lau says:
====================
bpf: Add map-in-map support
This patchset adds map-in-map support (map->map).
One use case is the (vips -> webservers) in the L4 load balancer so
that different vips can be backed by different set of webservers.
Please refer to the individual commit log for details.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/bpf.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/bpf.h b/include/linux/bpf.h index da8c64ca8dc9..2ae39a3e9ead 100644 --- a/include/linux/bpf.h +++ b/include/linux/bpf.h @@ -50,6 +50,7 @@ struct bpf_map { const struct bpf_map_ops *ops; struct work_struct work; atomic_t usercnt; + struct bpf_map *inner_map_meta; }; struct bpf_map_type_list { @@ -276,6 +277,8 @@ int bpf_stackmap_copy(struct bpf_map *map, void *key, void *value); int bpf_fd_array_map_update_elem(struct bpf_map *map, struct file *map_file, void *key, void *value, u64 map_flags); void bpf_fd_array_map_clear(struct bpf_map *map); +int bpf_fd_htab_map_update_elem(struct bpf_map *map, struct file *map_file, + void *key, void *value, u64 map_flags); /* memcpy that is used with 8-byte aligned pointers, power-of-8 size and * forced to use 'long' read/writes to try to atomically copy long counters. |
