Searched refs:direct_entry (Results 1 – 3 of 3) sorted by relevance
| /Linux-v4.19/samples/bpf/ |
| D | xdp_router_ipv4_kern.c | 141 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()
|
| D | xdp_router_ipv4_user.c | 130 } direct_entry; in read_route() local 204 direct_entry.mac = route.mac & 0xffffffffffff; in read_route() 205 direct_entry.ifindex = route.iface; in read_route() 206 direct_entry.arp.mac = 0; in read_route() 207 direct_entry.arp.dst = 0; in read_route() 212 if (bpf_map_lookup_elem(map_fd[2], &route.dst, &direct_entry.arp.mac) == 0) in read_route() 213 direct_entry.arp.dst = route.dst; in read_route() 214 assert(bpf_map_update_elem(map_fd[3], &route.dst, &direct_entry, 0) == 0); in read_route() 376 } direct_entry; in read_arp() local 405 &direct_entry) == 0) { in read_arp() [all …]
|
| /Linux-v4.19/drivers/misc/lkdtm/ |
| D | core.c | 55 static ssize_t direct_entry(struct file *f, const char __user *user_buf, 69 (_symbol) ? lkdtm_debugfs_entry : direct_entry 72 # define CRASHPOINT_WRITE(_symbol) direct_entry 368 static ssize_t direct_entry(struct file *f, const char __user *user_buf, in direct_entry() function
|