n = __rte_ring_hts_move_prod_head(r, n, behavior,
&head, &free);
break;
+ case RTE_RING_SYNC_MT:
+ case RTE_RING_SYNC_MT_RTS:
default:
/* unsupported mode, shouldn't be here */
RTE_ASSERT(0);
n = 0;
+ free = 0;
}
if (free_space != NULL)
__rte_ring_enqueue_elems(r, tail, obj_table, esize, n);
__rte_ring_hts_set_head_tail(&r->hts_prod, tail, n, 1);
break;
+ case RTE_RING_SYNC_MT:
+ case RTE_RING_SYNC_MT_RTS:
default:
/* unsupported mode, shouldn't be here */
RTE_ASSERT(0);
n = __rte_ring_hts_move_cons_head(r, n, behavior,
&head, &avail);
break;
+ case RTE_RING_SYNC_MT:
+ case RTE_RING_SYNC_MT_RTS:
default:
/* unsupported mode, shouldn't be here */
RTE_ASSERT(0);
n = 0;
+ avail = 0;
}
if (n != 0)
n = __rte_ring_hts_get_tail(&r->hts_cons, &tail, n);
__rte_ring_hts_set_head_tail(&r->hts_cons, tail, n, 0);
break;
+ case RTE_RING_SYNC_MT:
+ case RTE_RING_SYNC_MT_RTS:
default:
/* unsupported mode, shouldn't be here */
RTE_ASSERT(0);