FreeBSD/sys/dev/cxgb/ulp/tom/cxgb_listen.c
/*
 * Add a listen_ctx entry to the listen hash table.
 */
Add a listen_ctx entry to the listen hash table.
Add a listen_ctx entry to the listen hash table .
static void
listen_hash_add(struct tom_data *td, struct listen_ctx *lctx)
{
	int bucket = listen_hashfn(lctx->inp, td->listen_mask);
	mtx_lock(&td->lctx_hash_lock);
	LIST_INSERT_HEAD(&td->listen_hash[bucket], lctx, link);
	td->lctx_count++;
	mtx_unlock(&td->lctx_hash_lock);
}
static void listen_hash_add ( struct tom_data * td , struct listen_ctx * lctx ) { int bucket = listen_hashfn ( lctx -> inp , td -> listen_mask ) ; mtx_lock ( & td -> lctx_hash_lock ) ; LIST_INSERT_HEAD ( & td -> listen_hash [ bucket ] , lctx , link ) ; td -> lctx_count ++ ; mtx_unlock ( & td -> lctx_hash_lock ) ; }
Add a listen_ctx entry to the listen hash table.
Add a listen_ctx entry to the listen hash table .