[dpdk-dev] [PATCH 4/6] vhost: add Tx zero copy

2016-08-23 Thread Yuanhan Liu
On Tue, Aug 23, 2016 at 04:04:30PM +0200, Maxime Coquelin wrote: > > > On 08/23/2016 10:10 AM, Yuanhan Liu wrote: > >The basic idea of Tx zero copy is, instead of copying data from the > >desc buf, here we let the mbuf reference the desc buf addr directly. > > > >Doing so, however, has one major

[dpdk-dev] [PATCH 4/6] vhost: add Tx zero copy

2016-08-23 Thread Maxime Coquelin
On 08/23/2016 04:31 PM, Yuanhan Liu wrote: > On Tue, Aug 23, 2016 at 04:04:30PM +0200, Maxime Coquelin wrote: >> >> >> On 08/23/2016 10:10 AM, Yuanhan Liu wrote: >>> The basic idea of Tx zero copy is, instead of copying data from the >>> desc buf, here we let the mbuf reference the desc buf addr

[dpdk-dev] [PATCH 4/6] vhost: add Tx zero copy

2016-08-23 Thread Yuanhan Liu
The basic idea of Tx zero copy is, instead of copying data from the desc buf, here we let the mbuf reference the desc buf addr directly. Doing so, however, has one major issue: we can't update the used ring at the end of rte_vhost_dequeue_burst. Because we don't do the copy here, an update of the

[dpdk-dev] [PATCH 4/6] vhost: add Tx zero copy

2016-08-23 Thread Maxime Coquelin
On 08/23/2016 10:10 AM, Yuanhan Liu wrote: > The basic idea of Tx zero copy is, instead of copying data from the > desc buf, here we let the mbuf reference the desc buf addr directly. > > Doing so, however, has one major issue: we can't update the used ring > at the end of rte_vhost_dequeue_burst