Home
last modified time | relevance | path

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

/Linux-v6.1/tools/testing/selftests/bpf/progs/
Dtest_select_reuseport_kern.c64 int _select_by_skb_data(struct sk_reuseport_md *reuse_md) in _select_by_skb_data() argument
76 data = reuse_md->data; in _select_by_skb_data()
77 data_end = reuse_md->data_end; in _select_by_skb_data()
78 data_check.len = reuse_md->len; in _select_by_skb_data()
79 data_check.eth_protocol = reuse_md->eth_protocol; in _select_by_skb_data()
80 data_check.ip_protocol = reuse_md->ip_protocol; in _select_by_skb_data()
81 data_check.hash = reuse_md->hash; in _select_by_skb_data()
82 data_check.bind_inany = reuse_md->bind_inany; in _select_by_skb_data()
84 if (bpf_skb_load_bytes_relative(reuse_md, in _select_by_skb_data()
90 if (bpf_skb_load_bytes_relative(reuse_md, in _select_by_skb_data()
[all …]
Dtest_migrate_reuseport.c98 int migrate_reuseport(struct sk_reuseport_md *reuse_md) in migrate_reuseport() argument
103 if (!reuse_md->migrating_sk) in migrate_reuseport()
106 state = reuse_md->migrating_sk->state; in migrate_reuseport()
107 cookie = bpf_get_socket_cookie(reuse_md->sk); in migrate_reuseport()
113 err = bpf_sk_select_reuseport(reuse_md, &reuseport_map, key, flags); in migrate_reuseport()
125 if (!reuse_md->len) in migrate_reuseport()