[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC net-next 16/18] bpf: export function __bpf_map_get
From: |
Prashant Bhole |
Subject: |
[RFC net-next 16/18] bpf: export function __bpf_map_get |
Date: |
Tue, 26 Nov 2019 19:07:42 +0900 |
From: Jason Wang <address@hidden>
__bpf_map_get is necessary to get verify whether an fd corresponds
to a bpf map, without adding a refcount on that map. After exporting
it can be used by a kernel module.
Signed-off-by: Jason Wang <address@hidden>
Signed-off-by: Prashant Bhole <address@hidden>
---
kernel/bpf/syscall.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/bpf/syscall.c b/kernel/bpf/syscall.c
index e3461ec59570..e524ab1e7c64 100644
--- a/kernel/bpf/syscall.c
+++ b/kernel/bpf/syscall.c
@@ -737,6 +737,7 @@ struct bpf_map *__bpf_map_get(struct fd f)
return f.file->private_data;
}
+EXPORT_SYMBOL(__bpf_map_get);
void bpf_map_inc(struct bpf_map *map)
{
--
2.20.1
- [RFC net-next 00/18] virtio_net XDP offload, Prashant Bhole, 2019/11/26
- [RFC net-next 04/18] tuntap: check tun_msg_ctl type at necessary places, Prashant Bhole, 2019/11/26
- [RFC net-next 16/18] bpf: export function __bpf_map_get,
Prashant Bhole <=
- [RFC net-next 18/18] virtio_net: restrict bpf helper calls from offloaded program, Prashant Bhole, 2019/11/26
- [RFC net-next 14/18] virtio_net: add XDP prog offload infrastructure, Prashant Bhole, 2019/11/26
- [RFC net-next 12/18] virtio-net: store xdp_prog in device, Prashant Bhole, 2019/11/26
- [RFC net-next 17/18] virtio_net: implment XDP map offload functionality, Prashant Bhole, 2019/11/26
- [RFC net-next 15/18] virtio_net: implement XDP prog offload functionality, Prashant Bhole, 2019/11/26
- [RFC net-next 10/18] tun: handle XDP_TX action of offloaded program, Prashant Bhole, 2019/11/26
- [RFC net-next 09/18] tun: add a way to inject Tx path packet into Rx path, Prashant Bhole, 2019/11/26
- [RFC net-next 07/18] tun: set offloaded xdp program, Prashant Bhole, 2019/11/26