Home
last modified time | relevance | path

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

/Linux-v6.6/samples/bpf/
Dtest_map_in_map_user.c49 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
[all …]
Dtest_map_in_map.bpf.c111 u32 port_key; in BPF_KSYSCALL() local
135 port_key = port; in BPF_KSYSCALL()
150 inner_map = bpf_map_lookup_elem(outer_map, &port_key); in BPF_KSYSCALL()
157 ret = do_reg_lookup(inner_map, port_key); in BPF_KSYSCALL()
160 inline_ret = do_inline_array_lookup(inner_map, port_key); in BPF_KSYSCALL()
162 inline_ret = do_inline_hash_lookup(inner_map, port_key); in BPF_KSYSCALL()
/Linux-v6.6/drivers/net/bonding/
Dbond_netlink.c512 int port_key = in bond_changelink() local
515 bond_opt_initval(&newval, port_key); in bond_changelink()