/* Description: Searches the domain hash table and returns a pointer to the hash table entry if found, otherwise NULL is returned. The caller is responsibile for the rcu hash table locks (i.e. the caller much call rcu_read_lock()).  */
static struct netlbl_dom_map* netlbl_domhsh_search(const char *domain)
/* Description: Searches the domain hash table and returns a pointer to the hash table entry if found, otherwise NULL is returned. The caller is responsibile for the rcu hash table locks (i.e. the caller much call rcu_read_lock()).  */
static struct netlbl_dom_map* netlbl_domhsh_search(const char *domain)
{
	u32 bkt;
	struct list_head *bkt_list;
	struct netlbl_dom_map *iter;
	if (domain != NULL) {
		bkt = netlbl_domhsh_hash(domain);
		bkt_list = &rcu_dereference(netlbl_domhsh)->tbl[bkt];
		list_for_each_entry_rcu(iter, bkt_list, list)
			if (iter->valid && strcmp(iter->domain, domain) == 0)
				return iter;
	}
	return NULL;
}