[dpdk-dev] [PATCH 3/6] vhost: introduce last avail idx for Tx

2016-08-23 Thread Yuanhan Liu
So far, we retrieve both the used ring avail ring idx by last_used_idx var; it won't be a problem because we used ring is updated immediately after those avail entries are consumed. But that's not true when Tx zero copy is enabled, that used ring is updated only when the mbuf is consumed. Thus, we

[dpdk-dev] [PATCH 3/6] vhost: introduce last avail idx for Tx

2016-08-23 Thread Maxime Coquelin
On 08/23/2016 10:10 AM, Yuanhan Liu wrote: > So far, we retrieve both the used ring avail ring idx by last_used_idx > var; it won't be a problem because we used ring is updated immediately > after those avail entries are consumed. > > But that's not true when Tx zero copy is enabled, that used ri