Home
last modified time | relevance | path

Searched refs:port_key (Results 1 – 3 of 3) sorted by relevance

/linux/samples/bpf/
A Dtest_map_in_map_user.c48 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()
65 check_map_id(PORT_A, H_OF_PORT_A, port_key); 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()
[all …]
A Dtest_map_in_map_kern.c112 u32 port_key; in trace_sys_connect() local
139 port_key = port; in trace_sys_connect()
154 inner_map = bpf_map_lookup_elem(outer_map, &port_key); in trace_sys_connect()
161 ret = do_reg_lookup(inner_map, port_key); in trace_sys_connect()
164 inline_ret = do_inline_array_lookup(inner_map, port_key); in trace_sys_connect()
166 inline_ret = do_inline_hash_lookup(inner_map, port_key); in trace_sys_connect()
/linux/drivers/net/bonding/
A Dbond_netlink.c429 int port_key = in bond_changelink() local
432 bond_opt_initval(&newval, port_key); in bond_changelink()

Completed in 5 milliseconds