Home
last modified time | relevance | path

Searched refs:net (Results 1 – 9 of 9) sorted by relevance

/kernel/bpf/
Dnet_namespace.c22 struct net *net; member
56 static void netns_bpf_run_array_detach(struct net *net, in netns_bpf_run_array_detach() argument
61 run_array = rcu_replace_pointer(net->bpf.run_array[type], NULL, in netns_bpf_run_array_detach()
66 static int link_index(struct net *net, enum netns_bpf_attach_type type, in link_index() argument
72 list_for_each_entry(pos, &net->bpf.links[type], node) { in link_index()
80 static int link_count(struct net *net, enum netns_bpf_attach_type type) in link_count() argument
85 list_for_each(pos, &net->bpf.links[type]) in link_count()
90 static void fill_prog_array(struct net *net, enum netns_bpf_attach_type type, in fill_prog_array() argument
96 list_for_each_entry(pos, &net->bpf.links[type], node) { in fill_prog_array()
108 struct net *net; in bpf_netns_link_release() local
[all …]
Doffload.c270 struct net *net; in bpf_prog_offload_info_fill_ns() local
277 net = dev_net(aux->offload->netdev); in bpf_prog_offload_info_fill_ns()
278 get_net(net); in bpf_prog_offload_info_fill_ns()
279 ns = &net->ns; in bpf_prog_offload_info_fill_ns()
361 struct net *net = current->nsproxy->net_ns; in bpf_map_offload_map_alloc() local
380 offmap->netdev = __dev_get_by_index(net, attr->map_ifindex); in bpf_map_offload_map_alloc()
497 struct net *net; in bpf_map_offload_info_fill_ns() local
504 net = dev_net(args->offmap->netdev); in bpf_map_offload_info_fill_ns()
505 get_net(net); in bpf_map_offload_info_fill_ns()
506 ns = &net->ns; in bpf_map_offload_info_fill_ns()
DKconfig52 /proc/sys/net/core/bpf_jit_enable
53 /proc/sys/net/core/bpf_jit_harden (optional)
54 /proc/sys/net/core/bpf_jit_kallsyms (optional)
63 When CONFIG_BPF_JIT_ALWAYS_ON is enabled, /proc/sys/net/core/bpf_jit_enable
Ddevmap.c839 static struct bpf_dtab_netdev *__dev_map_alloc_node(struct net *net, in __dev_map_alloc_node() argument
853 dev->dev = dev_get_by_index(net, val->ifindex); in __dev_map_alloc_node()
888 static int __dev_map_update_elem(struct net *net, struct bpf_map *map, in __dev_map_update_elem() argument
912 dev = __dev_map_alloc_node(net, dtab, &val, i); in __dev_map_update_elem()
935 static int __dev_map_hash_update_elem(struct net *net, struct bpf_map *map, in __dev_map_hash_update_elem() argument
957 dev = __dev_map_alloc_node(net, dtab, &val, idx); in __dev_map_hash_update_elem()
Dcgroup.c2281 const struct net *net = ctx ? sock_net(ctx->sk) : &init_net; in BPF_CALL_1() local
2283 return net->net_cookie; in BPF_CALL_1()
/kernel/
Daudit.c108 struct net *net; member
207 struct net *net; member
291 static struct sock *audit_get_sk(const struct net *net) in audit_get_sk() argument
295 if (!net) in audit_get_sk()
298 aunet = net_generic(net, audit_net_id); in audit_get_sk()
482 put_net(ac->net); in auditd_conn_free()
498 static int auditd_set(struct pid *pid, u32 portid, struct net *net, in auditd_set() argument
505 if (!pid || !net) in auditd_set()
513 ac_new->net = get_net(net); in auditd_set()
692 struct net *net; in auditd_send_unicast_skb() local
[all …]
Daudit.h242 struct net *net; member
Dauditfilter.c1185 dest->net = get_net(sock_net(NETLINK_CB(request_skb).sk)); in audit_list_rules_send()
1196 put_net(dest->net); in audit_list_rules_send()
/kernel/power/
DKconfig55 from <http://suspend.sf.net>.