FreeBSD/sys/netinet6/in6_pcbgroup.c
/*
 * Map a (hashtype, hash) tuple into a connection group, or NULL if the hash 
 * information is insufficient to identify the pcbgroup.  This might occur if
 * a TCP packet turnsup with a 2-tuple hash, or if an RSS hash is present but
 * RSS is not compiled into the kernel.
 */
Map a (hashtype, hash) tuple into a connection group, or NULL if the hash
information is insufficient to identify the pcbgroup.  This might occur if
a TCP packet turnsup with a 2-tuple hash, or if an RSS hash is present but
RSS is not compiled into the kernel.
Map a ( hashtype hash ) tuple into a connection group or NULL if the hash information is insufficient to identify the pcbgroup . This might occur if a TCP packet turnsup with a 2 - tuple hash or if an RSS hash is present but RSS is not compiled into the kernel .
struct inpcbgroup *
in6_pcbgroup_byhash(struct inpcbinfo *pcbinfo, u_int hashtype, uint32_t hash)
{
#ifdef RSS
	if ((pcbinfo->ipi_hashfields == IPI_HASHFIELDS_4TUPLE &&
	    hashtype == M_HASHTYPE_RSS_TCP_IPV6) ||
	    (pcbinfo->ipi_hashfields == IPI_HASHFIELDS_4TUPLE &&
	    hashtype == M_HASHTYPE_RSS_UDP_IPV6) ||
	    (pcbinfo->ipi_hashfields == IPI_HASHFIELDS_2TUPLE &&
	    hashtype == M_HASHTYPE_RSS_IPV6))
		return (&pcbinfo->ipi_pcbgroups[
		    in6_pcbgroup_getbucket(pcbinfo, hash)]);
#endif
	return (NULL);
}
struct inpcbgroup * in6_pcbgroup_byhash ( struct inpcbinfo * pcbinfo , u_int hashtype , uint32_t hash ) { #ifdef RSS if ( ( pcbinfo -> ipi_hashfields == IPI_HASHFIELDS_4TUPLE && hashtype == M_HASHTYPE_RSS_TCP_IPV6 ) || ( pcbinfo -> ipi_hashfields == IPI_HASHFIELDS_4TUPLE && hashtype == M_HASHTYPE_RSS_UDP_IPV6 ) || ( pcbinfo -> ipi_hashfields == IPI_HASHFIELDS_2TUPLE && hashtype == M_HASHTYPE_RSS_IPV6 ) ) return ( & pcbinfo -> ipi_pcbgroups [ in6_pcbgroup_getbucket ( pcbinfo , hash ) ] ) ; #endif return ( NULL ) ; }
Map a (hashtype, hash) tuple into a connection group, or NULL if the hash
 information is insufficient to identify the pcbgroup.
Map a ( hashtype hash ) tuple into a connection group or NULL if the hash information is insufficient to identify the pcbgroup .