Home
last modified time | relevance | path

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

/openbmc/linux/samples/bpf/
H A 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()
197 prefix_value->gw = route.gw; in read_route()
202 prefix_value, 0 in read_route()
216 prefix_value->prefix[0] && in read_route()
218 prefix_value->prefix[1] && in read_route()
227 prefix_value->prefix[i] = in read_route()
229 prefix_value->value = in read_route()
232 prefix_value->gw = route.gw; in read_route()
[all …]
H A 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()