Home
last modified time | relevance | path

Searched refs:family (Results 1 – 25 of 56) sorted by relevance

123

/tools/testing/selftests/bpf/
Dtest_select_reuseport.c46 sa_family_t family; member
140 static void sa46_init_loopback(union sa46 *sa, sa_family_t family) in sa46_init_loopback() argument
143 sa->family = family; in sa46_init_loopback()
144 if (sa->family == AF_INET6) in sa46_init_loopback()
150 static void sa46_init_inany(union sa46 *sa, sa_family_t family) in sa46_init_inany() argument
153 sa->family = family; in sa46_init_inany()
154 if (sa->family == AF_INET6) in sa46_init_inany()
229 static void check_data(int type, sa_family_t family, const struct cmd *cmd, in check_data() argument
255 if (family == AF_INET6) { in check_data()
346 static int send_data(int type, sa_family_t family, void *data, size_t len, in send_data() argument
[all …]
Dtest_iptunnel_common.h17 __u16 family; member
30 __u16 family; member
Dtest_flow_dissector.c237 uint16_t dport, int family) in build_udp_header() argument
246 if (family == AF_INET) in build_udp_header()
268 static int l3_length(int family) in l3_length() argument
270 if (family == AF_INET) in l3_length()
396 int family, fd, ret; in setup_tx() local
399 family = cfg_l3_extra; in setup_tx()
401 family = cfg_l3_outer; in setup_tx()
403 family = cfg_l3_inner; in setup_tx()
405 fd = socket(family, SOCK_RAW, IPPROTO_RAW); in setup_tx()
591 static void parse_addr(int family, void *addr, const char *optarg) in parse_addr() argument
[all …]
/tools/power/cpupower/utils/helpers/
Damd.c42 static int get_did(int family, union msr_pstate pstate) in get_did() argument
46 if (family == 0x12) in get_did()
48 else if (family == 0x17 || family == 0x18) in get_did()
56 static int get_cof(int family, union msr_pstate pstate) in get_cof() argument
61 did = get_did(family, pstate); in get_cof()
62 if (family == 0x17 || family == 0x18) { in get_cof()
68 if (family == 0x11) in get_cof()
Dcpuid.c57 cpu_info->family = unknown; in get_cpu_info()
86 &cpu_info->family); in get_cpu_info()
96 cpu_info->family == unknown || in get_cpu_info()
148 if (cpu_info->family == 6) { in get_cpu_info()
Dmisc.c29 if (cpu_info.family == 0x17 || cpu_info.family == 0x18) { in cpufreq_has_boost_support()
/tools/testing/selftests/net/
Dreuseport_addr_any.c30 static void build_rcv_fd(int family, int proto, int *rcv_fds, int count, in build_rcv_fd() argument
40 switch (family) { in build_rcv_fd()
42 addr4.sin_family = family; in build_rcv_fd()
45 else if (!inet_pton(family, addr_str, &addr4.sin_addr.s_addr)) in build_rcv_fd()
55 else if (!inet_pton(family, addr_str, &addr6.sin6_addr)) in build_rcv_fd()
62 error(1, 0, "Unsupported family %d", family); in build_rcv_fd()
71 rcv_fds[i] = socket(family, proto, 0); in build_rcv_fd()
97 static int connect_and_send(int family, int proto) in connect_and_send() argument
106 switch (family) { in connect_and_send()
113 if (!inet_pton(family, IP4_ADDR, &daddr4.sin_addr.s_addr)) in connect_and_send()
[all …]
Dreuseport_bpf_cpu.c34 static void build_rcv_group(int *rcv_fd, size_t len, int family, int proto) in build_rcv_group() argument
42 switch (family) { in build_rcv_group()
56 error(1, 0, "Unsupported family %d", family); in build_rcv_group()
60 rcv_fd[i] = socket(family, proto, 0); in build_rcv_group()
94 static void send_from_cpu(int cpu_id, int family, int proto) in send_from_cpu() argument
102 switch (family) { in send_from_cpu()
126 error(1, 0, "Unsupported family %d", family); in send_from_cpu()
134 fd = socket(family, proto, 0); in send_from_cpu()
184 static void test(int *rcv_fd, int len, int family, int proto) in test() argument
189 build_rcv_group(rcv_fd, len, family, proto); in test()
[all …]
Dtcp_inq.c32 static int family = AF_INET6; variable
36 static void setup_loopback_addr(int family, struct sockaddr_storage *sockaddr) in setup_loopback_addr() argument
41 switch (family) { in setup_loopback_addr()
111 family = PF_INET; in main()
115 family = PF_INET6; in main()
124 server_fd = socket(family, SOCK_STREAM, 0); in main()
127 setup_loopback_addr(family, &listen_addr); in main()
140 fd = socket(family, SOCK_STREAM, 0); in main()
143 setup_loopback_addr(family, &addr); in main()
Dreuseport_bpf_numa.c30 static void build_rcv_group(int *rcv_fd, size_t len, int family, int proto) in build_rcv_group() argument
38 switch (family) { in build_rcv_group()
52 error(1, 0, "Unsupported family %d", family); in build_rcv_group()
56 rcv_fd[i] = socket(family, proto, 0); in build_rcv_group()
107 static void send_from_node(int node_id, int family, int proto) in send_from_node() argument
114 switch (family) { in send_from_node()
138 error(1, 0, "Unsupported family %d", family); in send_from_node()
144 fd = socket(family, proto, 0); in send_from_node()
194 static void test(int *rcv_fd, int len, int family, int proto) in test() argument
199 build_rcv_group(rcv_fd, len, family, proto); in test()
[all …]
Dtcp_fastopen_backup_key.c91 static void build_rcv_fd(int family, int proto, int *rcv_fds) in build_rcv_fd() argument
100 switch (family) { in build_rcv_fd()
102 addr4.sin_family = family; in build_rcv_fd()
116 error(1, 0, "Unsupported family %d", family); in build_rcv_fd()
126 rcv_fds[i] = socket(family, proto, 0); in build_rcv_fd()
143 static int connect_and_send(int family, int proto) in connect_and_send() argument
153 switch (family) { in connect_and_send()
160 if (!inet_pton(family, IP4_ADDR, &daddr4.sin_addr.s_addr)) in connect_and_send()
173 if (!inet_pton(family, IP6_ADDR, &daddr6.sin6_addr)) in connect_and_send()
182 error(1, 0, "Unsupported family %d", family); in connect_and_send()
[all …]
Dudpgro.sh59 local addr1 addr2 pid family="" ipt_cmd=ip6tables
66 family=-4
82 ip netns exec "${PEER_NS}" ./udpgso_bench_rx -G ${family} -b ${addr1} -n 0 &
84 ip netns exec "${PEER_NS}" ./udpgso_bench_rx -C 1000 -R 10 ${family} -b ${addr2%/*} ${rx_args} && \
Dreuseport_dualstack.c31 static void build_rcv_fd(int family, int proto, int *rcv_fds, int count) in build_rcv_fd() argument
38 switch (family) { in build_rcv_fd()
52 error(1, 0, "Unsupported family %d", family); in build_rcv_fd()
56 rcv_fds[i] = socket(family, proto, 0); in build_rcv_fd()
Dreuseaddr_conflict.c29 int family = ipv6 ? AF_INET6 : AF_INET; in open_port() local
51 if ((fd = socket(family, SOCK_STREAM, IPPROTO_TCP)) < 0) { in open_port()
/tools/perf/arch/x86/util/
Dheader.c30 int family = -1, model = -1, step = -1; in __get_cpuid() local
43 family = (a >> 8) & 0xf; /* bits 11 - 8 */ in __get_cpuid()
48 if (family == 0xf) in __get_cpuid()
49 family += (a >> 20) & 0xff; in __get_cpuid()
52 if (family >= 0x6) in __get_cpuid()
55 nb = scnprintf(buffer, sz, fmt, vendor, family, model, step); in __get_cpuid()
/tools/testing/selftests/netfilter/
Dnft_nat.sh176 local family=$1
180 if [ $family = "inet" ];then
185 table $family nat {
193 echo "SKIP: Could not add add $family dnat hook"
243 test $lret -eq 0 && echo "PASS: ipv6 ping to $ns1 was $family NATted to $ns2"
251 local family=$1
255 if [ $family = "inet" ];then
260 table $family nat {
268 if [ $family = "inet" ];then
273 echo "SKIP: Could not add add $family dnat hook"
[all …]
/tools/testing/selftests/bpf/prog_tests/
Dxdp.c6 struct vip key4 = {.protocol = 6, .family = AF_INET}; in test_xdp()
7 struct vip key6 = {.protocol = 6, .family = AF_INET6}; in test_xdp()
8 struct iptnl_info value4 = {.family = AF_INET}; in test_xdp()
9 struct iptnl_info value6 = {.family = AF_INET6}; in test_xdp()
/tools/testing/selftests/networking/timestamping/
Dtxtimestamp.c191 static void print_pktinfo(int family, int ifindex, void *saddr, void *daddr) in print_pktinfo() argument
197 saddr ? inet_ntop(family, saddr, sa, sizeof(sa)) : "unknown", in print_pktinfo()
198 daddr ? inet_ntop(family, daddr, da, sizeof(da)) : "unknown"); in print_pktinfo()
385 static void do_test(int family, unsigned int report_opt) in do_test() argument
400 if (family == PF_INET) in do_test()
416 fd = socket(cfg_use_pf_packet ? PF_PACKET : family, in do_test()
429 if (family == PF_INET) { in do_test()
439 if (family == AF_INET6) { in do_test()
472 if (family == PF_INET) in do_test()
478 fill_header_udp(buf + off, family == PF_INET); in do_test()
[all …]
/tools/testing/selftests/bpf/progs/
Dtest_sk_lookup_kern.c98 __u32 family = 0; in bpf_sk_lookup_uaf() local
103 family = sk->family; in bpf_sk_lookup_uaf()
105 return family; in bpf_sk_lookup_uaf()
113 __u32 family; in bpf_sk_lookup_modptr() local
128 __u32 family; in bpf_sk_lookup_modptr_or_null() local
Dsocket_cookie_prog.c27 if (ctx->family != AF_INET6 || ctx->user_family != AF_INET6) in set_cookie()
47 if (ctx->family != AF_INET6) in update_cookie()
Dtest_xdp.c103 vip.family = AF_INET; in handle_ipv4()
110 if (!tnl || tnl->family != AF_INET) in handle_ipv4()
173 vip.family = AF_INET6; in handle_ipv6()
180 if (!tnl || tnl->family != AF_INET6) in handle_ipv6()
/tools/perf/trace/beauty/
Dsockaddr.c58 char family[32]; in syscall_arg__scnprintf_augmented_sockaddr() local
61 …strarray__scnprintf(&strarray__socket_families, family, sizeof(family), "%d", arg->show_string_pre… in syscall_arg__scnprintf_augmented_sockaddr()
62 printed = scnprintf(bf, size, "{ .family: %s", family); in syscall_arg__scnprintf_augmented_sockaddr()
/tools/perf/arch/s390/annotate/
Dinstructions.c141 unsigned int family; in s390__cpuid_parse() local
149 ret = sscanf(cpuid, "%*[^,],%u,%[^,],%[^,],%[^,],%s", &family, model_c, in s390__cpuid_parse()
152 arch->family = family; in s390__cpuid_parse()
/tools/power/x86/turbostat/
Dturbostat.c94 double discover_bclk(unsigned int family, unsigned int model);
2162 int has_turbo_ratio_group_limits(int family, int model) in has_turbo_ratio_group_limits() argument
2178 dump_turbo_ratio_limits(int family, int model) in dump_turbo_ratio_limits() argument
2186 if (has_turbo_ratio_group_limits(family, model)) { in dump_turbo_ratio_limits()
3211 int probe_nhm_msrs(unsigned int family, unsigned int model) in probe_nhm_msrs() argument
3220 if (family != 6) in probe_nhm_msrs()
3223 bclk = discover_bclk(family, model); in probe_nhm_msrs()
3290 int has_slv_msrs(unsigned int family, unsigned int model) in has_slv_msrs() argument
3303 int is_dnv(unsigned int family, unsigned int model) in is_dnv() argument
3315 int is_bdx(unsigned int family, unsigned int model) in is_bdx() argument
[all …]
/tools/perf/arch/x86/annotate/
Dinstructions.c149 if (arch->family != 6 || arch->model < 0x1e || strstr(ins2, "jmp")) in x86__ins_is_fused()
176 unsigned int family, model, stepping; in x86__cpuid_parse() local
182 ret = sscanf(cpuid, "%*[^,],%u,%u,%u", &family, &model, &stepping); in x86__cpuid_parse()
184 arch->family = family; in x86__cpuid_parse()

123