Home
last modified time | relevance | path

Searched refs:direct_entry (Results 1 – 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/samples/bpf/
Dxdp_router_ipv4_kern.c141 struct direct_map *direct_entry; in xdp_router_ipv4_prog() local
145 direct_entry = bpf_map_lookup_elem(&exact_match, &dest_ip); in xdp_router_ipv4_prog()
147 if (direct_entry && direct_entry->mac && direct_entry->arp.mac) { in xdp_router_ipv4_prog()
148 src_mac = &direct_entry->mac; in xdp_router_ipv4_prog()
149 dest_mac = &direct_entry->arp.mac; in xdp_router_ipv4_prog()
150 forward_to = direct_entry->ifindex; in xdp_router_ipv4_prog()
Dxdp_router_ipv4_user.c146 } direct_entry; in read_route() local
216 direct_entry.mac = route.mac & 0xffffffffffff; in read_route()
217 direct_entry.ifindex = route.iface; in read_route()
218 direct_entry.arp.mac = 0; in read_route()
219 direct_entry.arp.dst = 0; in read_route()
227 &direct_entry.arp.mac) == 0) in read_route()
228 direct_entry.arp.dst = route.dst; in read_route()
231 &direct_entry, 0) == 0); in read_route()
392 } direct_entry; in read_arp() local
422 &direct_entry) == 0) { in read_arp()
[all …]
/kernel/linux/linux-5.10/drivers/misc/lkdtm/
Dcore.c35 static ssize_t direct_entry(struct file *f, const char __user *user_buf,
49 (_symbol) ? lkdtm_debugfs_entry : direct_entry
52 # define CRASHPOINT_WRITE(_symbol) direct_entry
359 static ssize_t direct_entry(struct file *f, const char __user *user_buf, in direct_entry() function