projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81584c2
)
bpf, cpumap: Remove unused cmap field from bpf_cpu_map_entry
author
Hou Tao
<houtao1@huawei.com>
Fri, 28 Jul 2023 01:49:41 +0000
(09:49 +0800)
committer
Martin KaFai Lau
<martin.lau@kernel.org>
Tue, 1 Aug 2023 01:26:08 +0000
(18:26 -0700)
Since commit
cdfafe98cabe
("xdp: Make cpumap flush_list common for all
map instances"), cmap is no longer used, so just remove it.
Signed-off-by: Hou Tao <houtao1@huawei.com>
Acked-by: Jesper Dangaard Brouer <hawk@kernel.org>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link:
https://lore.kernel.org/r/20230728014942.892272-2-houtao@huaweicloud.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
kernel/bpf/cpumap.c
patch
|
blob
|
history
diff --git
a/kernel/bpf/cpumap.c
b/kernel/bpf/cpumap.c
index
6ae02be
..
0a16e30
100644
(file)
--- a/
kernel/bpf/cpumap.c
+++ b/
kernel/bpf/cpumap.c
@@
-60,8
+60,6
@@
struct bpf_cpu_map_entry {
/* XDP can run multiple RX-ring queues, need __percpu enqueue store */
struct xdp_bulk_queue __percpu *bulkq;
- struct bpf_cpu_map *cmap;
-
/* Queue with potential multi-producers, and single-consumer kthread */
struct ptr_ring *queue;
struct task_struct *kthread;
@@
-588,7
+586,6
@@
static long cpu_map_update_elem(struct bpf_map *map, void *key, void *value,
rcpu = __cpu_map_entry_alloc(map, &cpumap_value, key_cpu);
if (!rcpu)
return -ENOMEM;
- rcpu->cmap = cmap;
}
rcu_read_lock();
__cpu_map_entry_replace(cmap, key_cpu, rcpu);