Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/infiniband/core/
Diwpm_util.c407 int iwpm_compare_sockaddr(struct sockaddr_storage *a_sockaddr, in iwpm_compare_sockaddr() argument
410 if (a_sockaddr->ss_family != b_sockaddr->ss_family) in iwpm_compare_sockaddr()
412 if (a_sockaddr->ss_family == AF_INET) { in iwpm_compare_sockaddr()
414 (struct sockaddr_in *)a_sockaddr; in iwpm_compare_sockaddr()
422 } else if (a_sockaddr->ss_family == AF_INET6) { in iwpm_compare_sockaddr()
424 (struct sockaddr_in6 *)a_sockaddr; in iwpm_compare_sockaddr()
528 static int get_hash_bucket(struct sockaddr_storage *a_sockaddr, in get_hash_bucket() argument
533 if (a_sockaddr->ss_family == AF_INET) { in get_hash_bucket()
534 a_hash = iwpm_ipv4_jhash((struct sockaddr_in *) a_sockaddr); in get_hash_bucket()
537 } else if (a_sockaddr->ss_family == AF_INET6) { in get_hash_bucket()
[all …]
Diwpm_util.h200 int iwpm_compare_sockaddr(struct sockaddr_storage *a_sockaddr,