Lines Matching refs:port_key
49 static void populate_map(uint32_t port_key, int magic_result) in populate_map() argument
53 ret = bpf_map_update_elem(PORT_A, &port_key, &magic_result, BPF_ANY); in populate_map()
56 ret = bpf_map_update_elem(PORT_H, &port_key, &magic_result, in populate_map()
60 ret = bpf_map_update_elem(A_OF_PORT_A, &port_key, &PORT_A, BPF_ANY); in populate_map()
62 check_map_id(PORT_A, A_OF_PORT_A, port_key); in populate_map()
64 ret = bpf_map_update_elem(H_OF_PORT_A, &port_key, &PORT_A, BPF_NOEXIST); in populate_map()
66 check_map_id(PORT_A, H_OF_PORT_A, port_key); in populate_map()
68 ret = bpf_map_update_elem(H_OF_PORT_H, &port_key, &PORT_H, BPF_NOEXIST); in populate_map()
70 check_map_id(PORT_H, H_OF_PORT_H, port_key); in populate_map()
76 uint32_t result_key = 0, port_key; in test_map_in_map() local
82 port_key = rand() & 0x00FF; in test_map_in_map()
83 populate_map(port_key, magic_result); in test_map_in_map()
87 in6.sin6_port = port_key; in test_map_in_map()