src/stx/stl/trex_stl_stream_vm.h
static inline
uint64_t inc_mod_list(uint64_t size, uint64_t index, uint64_t step) {
    int next;
    next = (int)(index + step);
    if (next >= size) next = next - size;
    return next;
}
/**
 * two functions ahead are used by both control plane and
 * dataplane to allow fast inc/dec and handle overflow
 *
 * size - value list size
 * index - current index in value list
 * step - how many to advance / go back
 */
two functions ahead are used by both control plane and
dataplane to allow fast inc/dec and handle overflow

value list size
index - current index in value list
step - how many to advance / go back
two functions ahead are used by both control plane and dataplane to allow fast inc / dec and handle overflow value list size index - current index in value list step - how many to advance / go back
static inline
uint64_t inc_mod_list(uint64_t size, uint64_t index, uint64_t step) {
    int next;
    next = (int)(index + step);
    if (next >= size) next = next - size;
    return next;
}
static inline uint64_t inc_mod_list ( uint64_t size , uint64_t index , uint64_t step ) { int next ; next = ( int ) ( index + step ) ; if ( next >= size ) next = next - size ; return next ; }
two functions ahead are used by both control plane and
 dataplane to allow fast inc/dec and handle overflow
two functions ahead are used by both control plane and dataplane to allow fast inc / dec and handle overflow