TIDHASH
#define TIDHASH(tid, udp) (tid & (udp)->hash_mask)
#define TIDHASH(tid, hash_sz) ((tid) & ((hash_sz) - 1))