[Click] Query about HashContainer & HashAllocator

Yogesh Mundada yhm at cc.gatech.edu
Mon Jun 22 23:25:26 EDT 2009


Hi,

Arptable, uses SizedHashAllocator to allocate entries. Is that similar
to slab_cache?
Can I use combination of slab_cache & placement new to manage entries
in HashContainer?

HashContainer operations, are they RCU safe?
In Arptable, I see that ReadWrite lock is used to insert/delete
entries. If these operations are RCU safe, then may be I dont need to
use spin locks.

-Yogesh


More information about the click mailing list