Searched refs:num_u16 (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_flow_dissector.c | 143 static unsigned long add_csum_hword(const uint16_t *start, int num_u16) in add_csum_hword() argument 148 for (i = 0; i < num_u16; i++) in add_csum_hword() 154 static uint16_t build_ip_csum(const uint16_t *start, int num_u16, in build_ip_csum() argument 157 sum += add_csum_hword(start, num_u16); in build_ip_csum() 215 int num_u16 = sizeof(iph->saddr); /* halfwords: twice byte len */ in build_udp_v4_csum() local 217 pseudo_sum = add_csum_hword((void *) &iph->saddr, num_u16); in build_udp_v4_csum() 228 int num_u16 = sizeof(ip6h->saddr); /* halfwords: twice byte len */ in build_udp_v6_csum() local 230 pseudo_sum = add_csum_hword((void *) &ip6h->saddr, num_u16); in build_udp_v6_csum()
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | psock_snd.c | 54 static unsigned long add_csum_hword(const uint16_t *start, int num_u16) in add_csum_hword() argument 59 for (i = 0; i < num_u16; i++) in add_csum_hword() 65 static uint16_t build_ip_csum(const uint16_t *start, int num_u16, in build_ip_csum() argument 68 sum += add_csum_hword(start, num_u16); in build_ip_csum()
|