/* Hashes ip_vs_dest in ip_vs_rtable by <proto,addr,port>. should be called with locked tables.  */
static int ip_vs_rs_hash(struct ip_vs_dest *dest)
/* Hashes ip_vs_dest in ip_vs_rtable by <proto,addr,port>. should be called with locked tables.  */
static int ip_vs_rs_hash(struct ip_vs_dest *dest)
{
	unsigned hash;
	if (!list_empty(&dest->d_list)) {
		return 0;
	}
	hash = ip_vs_rs_hashkey(dest->af, &dest->addr, dest->port);
	list_add(&dest->d_list, &ip_vs_rtable[hash]);
	return 1;
}