From fbba0a3bf2dbfd86e48efe9745af9f94203d5f80 Mon Sep 17 00:00:00 2001 From: Mohammad Abdul Awal Date: Thu, 11 May 2017 13:36:12 +0100 Subject: Added rte_ring wrapper functions to support dpdk-17.05 and older version Change-Id: I5cfcff8be275ab2a2fb4ad6a62777a8cb88f425b Signed-off-by: Mohammad Abdul Awal --- lib/libtle_l4p/tcp_ctl.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/libtle_l4p/tcp_ctl.h') diff --git a/lib/libtle_l4p/tcp_ctl.h b/lib/libtle_l4p/tcp_ctl.h index 8ffb924..f7e70e3 100644 --- a/lib/libtle_l4p/tcp_ctl.h +++ b/lib/libtle_l4p/tcp_ctl.h @@ -49,10 +49,10 @@ calc_rx_wnd(const struct tle_tcp_stream *s, uint32_t scale) /* peer doesn't support WSCALE option, wnd size is limited to 64K */ if (scale == TCP_WSCALE_NONE) { - wnd = s->rx.q->prod.mask << TCP_WSCALE_DEFAULT; + wnd = _rte_ring_get_mask(s->rx.q) << TCP_WSCALE_DEFAULT; return RTE_MIN(wnd, (uint32_t)UINT16_MAX); } else - return s->rx.q->prod.mask << scale; + return _rte_ring_get_mask(s->rx.q) << scale; } /* empty stream's receive queue */ @@ -74,7 +74,7 @@ empty_lq(struct tle_tcp_stream *s, struct stbl *st) struct stbl_entry *se[MAX_PKT_BURST]; do { - n = rte_ring_dequeue_burst(s->rx.q, (void **)se, RTE_DIM(se)); + n = _rte_ring_dequeue_burst(s->rx.q, (void **)se, RTE_DIM(se)); for (i = 0; i != n; i++) { mb = stbl_get_pkt(se[i]); get_pkt_info(mb, &pi, &si); -- cgit 1.2.3-korg