bge_atomic_next
uint64_t bge_atomic_next(uint64_t *sp, uint64_t limit);
pkt_slot = bge_atomic_next(&srp->txpkt_next, BGE_SEND_BUF_MAX);