Home
last modified time | relevance | path

Searched refs:prefix_value (Results 1 – 2 of 2) sorted by relevance

/linux-5.19.10/samples/bpf/
Dxdp_router_ipv4_user.c163 } *prefix_value; in read_route() local
166 prefix_value = alloca(sizeof(*prefix_value)); in read_route()
192 prefix_value) < 0) { in read_route()
194 prefix_value->prefix[i] = prefix_key->data[i]; in read_route()
195 prefix_value->value = route.mac & 0xffffffffffff; in read_route()
196 prefix_value->ifindex = route.iface; in read_route()
197 prefix_value->gw = route.gw; in read_route()
198 prefix_value->metric = route.metric; in read_route()
202 prefix_value, 0 in read_route()
216 prefix_value->prefix[0] && in read_route()
[all …]
Dxdp_router_ipv4.bpf.c127 struct trie_value *prefix_value; in xdp_router_ipv4_prog() local
137 prefix_value = bpf_map_lookup_elem(&lpm_map, &key4); in xdp_router_ipv4_prog()
138 if (!prefix_value) in xdp_router_ipv4_prog()
141 forward_to = prefix_value->ifindex; in xdp_router_ipv4_prog()
142 src_mac = &prefix_value->value; in xdp_router_ipv4_prog()
148 if (!prefix_value->gw) in xdp_router_ipv4_prog()
152 &prefix_value->gw); in xdp_router_ipv4_prog()