/* Description: Add a new interface record to the network interface hash table. Returns zero on success, negative values on failure.  */
static int sel_netif_insert(struct sel_netif *netif)
/* Description: Add a new interface record to the network interface hash table. Returns zero on success, negative values on failure.  */
static int sel_netif_insert(struct sel_netif *netif)
{
	int idx;
	if (sel_netif_total >= SEL_NETIF_HASH_MAX)
		return -ENOSPC;
	idx = sel_netif_hashfn(netif->nsec.ifindex);
	list_add_rcu(&netif->list, &sel_netif_hash[idx]);
	sel_netif_total++;
	return 0;
}