Lines Matching refs:port_key
48 static void populate_map(uint32_t port_key, int magic_result) in populate_map() argument
52 ret = bpf_map_update_elem(PORT_A, &port_key, &magic_result, BPF_ANY); in populate_map()
55 ret = bpf_map_update_elem(PORT_H, &port_key, &magic_result, in populate_map()
59 ret = bpf_map_update_elem(A_OF_PORT_A, &port_key, &PORT_A, BPF_ANY); in populate_map()
61 check_map_id(PORT_A, A_OF_PORT_A, port_key); in populate_map()
63 ret = bpf_map_update_elem(H_OF_PORT_A, &port_key, &PORT_A, BPF_NOEXIST); in populate_map()
65 check_map_id(PORT_A, H_OF_PORT_A, port_key); in populate_map()
67 ret = bpf_map_update_elem(H_OF_PORT_H, &port_key, &PORT_H, BPF_NOEXIST); in populate_map()
69 check_map_id(PORT_H, H_OF_PORT_H, port_key); in populate_map()
75 uint32_t result_key = 0, port_key; in test_map_in_map() local
81 port_key = rand() & 0x00FF; in test_map_in_map()
82 populate_map(port_key, magic_result); in test_map_in_map()
86 in6.sin6_port = port_key; in test_map_in_map()