/* Return the hash index value for the specified address.  */
static int hash_get_index(__u8 *addr)
/* Return the hash index value for the specified address.  */
static int hash_get_index(__u8 *addr)
{
	int i, j, bitval;
	int hash_index = 0;
	for (j = 0; j < 6; j++) {
		for (i = 0, bitval = 0; i < 8; i++)
			bitval ^= hash_bit_value(i*6 + j, addr);
		hash_index |= (bitval << j);
	}
	return hash_index;
}