* Re: [dpdk-dev] [PATCH] vhost: fix batch enqueue only handle few packets
2019-11-07 14:37 [dpdk-dev] [PATCH] vhost: fix batch enqueue only handle few packets Marvin Liu
@ 2019-11-07 8:11 ` Maxime Coquelin
2019-11-07 8:20 ` Maxime Coquelin
1 sibling, 0 replies; 5+ messages in thread
From: Maxime Coquelin @ 2019-11-07 8:11 UTC (permalink / raw)
To: Marvin Liu, tiwei.bie, zhihong.wang; +Cc: dev
On 11/7/19 3:37 PM, Marvin Liu wrote:
> After enqueue function finished, packet index has been increased. Batch
> enqueue function should retrieve mbuf structure pointed by that index.
>
> Fixes: 0294211bb6dc ("vhost: optimize packed ring enqueue")
>
> Signed-off-by: Marvin Liu <yong.liu@intel.com>
> ---
> lib/librte_vhost/virtio_net.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
We definitely need Vhost-user and Virtio-user functional testing in the
CI.
Thanks,
Maxime
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-dev] [PATCH] vhost: fix batch enqueue only handle few packets
2019-11-07 14:37 [dpdk-dev] [PATCH] vhost: fix batch enqueue only handle few packets Marvin Liu
2019-11-07 8:11 ` Maxime Coquelin
@ 2019-11-07 8:20 ` Maxime Coquelin
2019-11-07 8:29 ` Liu, Yong
1 sibling, 1 reply; 5+ messages in thread
From: Maxime Coquelin @ 2019-11-07 8:20 UTC (permalink / raw)
To: Marvin Liu, tiwei.bie, zhihong.wang; +Cc: dev
On 11/7/19 3:37 PM, Marvin Liu wrote:
> After enqueue function finished, packet index has been increased. Batch
> enqueue function should retrieve mbuf structure pointed by that index.
>
> Fixes: 0294211bb6dc ("vhost: optimize packed ring enqueue")
>
> Signed-off-by: Marvin Liu <yong.liu@intel.com>
> ---
> lib/librte_vhost/virtio_net.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Applied to dpdk-next-virtio/master
Can you please run again the performance benchmarks, and see what is the
loss, if any?
Thanks,
Maxime
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-dev] [PATCH] vhost: fix batch enqueue only handle few packets
2019-11-07 8:20 ` Maxime Coquelin
@ 2019-11-07 8:29 ` Liu, Yong
2019-11-07 9:59 ` Liu, Yong
0 siblings, 1 reply; 5+ messages in thread
From: Liu, Yong @ 2019-11-07 8:29 UTC (permalink / raw)
To: Maxime Coquelin, Bie, Tiwei, Wang, Zhihong; +Cc: dev
> -----Original Message-----
> From: Maxime Coquelin <maxime.coquelin@redhat.com>
> Sent: Thursday, November 07, 2019 4:20 PM
> To: Liu, Yong <yong.liu@intel.com>; Bie, Tiwei <tiwei.bie@intel.com>; Wang,
> Zhihong <zhihong.wang@intel.com>
> Cc: dev@dpdk.org
> Subject: Re: [PATCH] vhost: fix batch enqueue only handle few packets
>
>
>
> On 11/7/19 3:37 PM, Marvin Liu wrote:
> > After enqueue function finished, packet index has been increased. Batch
> > enqueue function should retrieve mbuf structure pointed by that index.
> >
> > Fixes: 0294211bb6dc ("vhost: optimize packed ring enqueue")
> >
> > Signed-off-by: Marvin Liu <yong.liu@intel.com>
> > ---
> > lib/librte_vhost/virtio_net.c | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
>
> Applied to dpdk-next-virtio/master
>
> Can you please run again the performance benchmarks, and see what is the
> loss, if any?
>
Sure, I will rerun the performance benchmarks.
Thanks,
Marvin
> Thanks,
> Maxime
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-dev] [PATCH] vhost: fix batch enqueue only handle few packets
2019-11-07 8:29 ` Liu, Yong
@ 2019-11-07 9:59 ` Liu, Yong
0 siblings, 0 replies; 5+ messages in thread
From: Liu, Yong @ 2019-11-07 9:59 UTC (permalink / raw)
To: 'Maxime Coquelin', Bie, Tiwei, Wang, Zhihong
Cc: 'dev@dpdk.org'
> -----Original Message-----
> From: Liu, Yong
> Sent: Thursday, November 07, 2019 4:29 PM
> To: Maxime Coquelin <maxime.coquelin@redhat.com>; Bie, Tiwei
> <tiwei.bie@intel.com>; Wang, Zhihong <zhihong.wang@intel.com>
> Cc: dev@dpdk.org
> Subject: RE: [PATCH] vhost: fix batch enqueue only handle few packets
>
>
>
> > -----Original Message-----
> > From: Maxime Coquelin <maxime.coquelin@redhat.com>
> > Sent: Thursday, November 07, 2019 4:20 PM
> > To: Liu, Yong <yong.liu@intel.com>; Bie, Tiwei <tiwei.bie@intel.com>;
> Wang,
> > Zhihong <zhihong.wang@intel.com>
> > Cc: dev@dpdk.org
> > Subject: Re: [PATCH] vhost: fix batch enqueue only handle few packets
> >
> >
> >
> > On 11/7/19 3:37 PM, Marvin Liu wrote:
> > > After enqueue function finished, packet index has been increased.
> Batch
> > > enqueue function should retrieve mbuf structure pointed by that index.
> > >
> > > Fixes: 0294211bb6dc ("vhost: optimize packed ring enqueue")
> > >
> > > Signed-off-by: Marvin Liu <yong.liu@intel.com>
> > > ---
> > > lib/librte_vhost/virtio_net.c | 3 ++-
> > > 1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > Applied to dpdk-next-virtio/master
> >
> > Can you please run again the performance benchmarks, and see what is the
> > loss, if any?
> >
> Sure, I will rerun the performance benchmarks.
>
latest result with gcc9.0.1.
+---------------------------------------------------+
| | 19.08 | + opt |
|-----------------------------------|-------|-------|
| 1518B PvP | 2.63M | 3.07M |
|-----------------------------------|-------|-------|
| 64B loopback | 7.81M | 12.3M |
|-----------------------------------|-------|-------|
| 1518B loopback | 3.59M | 4.54M |
|-----------------------------------|-------|-------|
| 16K chained loopback | 297K | 322K |
|-----------------------------------|-------|-------|
| 50% 256B + 50% 16K | 688K | 959K |
|-----------------------------------|-------|-------|
| pktgen_sample03_burst_single_flow | 5.78M | 5.80M |
+---------------------------------------------------+
> Thanks,
> Marvin
>
> > Thanks,
> > Maxime
^ permalink raw reply [flat|nested] 5+ messages in thread
* [dpdk-dev] [PATCH] vhost: fix batch enqueue only handle few packets
@ 2019-11-07 14:37 Marvin Liu
2019-11-07 8:11 ` Maxime Coquelin
2019-11-07 8:20 ` Maxime Coquelin
0 siblings, 2 replies; 5+ messages in thread
From: Marvin Liu @ 2019-11-07 14:37 UTC (permalink / raw)
To: maxime.coquelin, tiwei.bie, zhihong.wang; +Cc: dev, Marvin Liu
After enqueue function finished, packet index has been increased. Batch
enqueue function should retrieve mbuf structure pointed by that index.
Fixes: 0294211bb6dc ("vhost: optimize packed ring enqueue")
Signed-off-by: Marvin Liu <yong.liu@intel.com>
---
lib/librte_vhost/virtio_net.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/librte_vhost/virtio_net.c b/lib/librte_vhost/virtio_net.c
index cde7498c7..f77944f5b 100644
--- a/lib/librte_vhost/virtio_net.c
+++ b/lib/librte_vhost/virtio_net.c
@@ -1155,7 +1155,8 @@ virtio_dev_rx_packed(struct virtio_net *dev,
rte_prefetch0(&vq->desc_packed[vq->last_avail_idx]);
if (remained >= PACKED_BATCH_SIZE) {
- if (!virtio_dev_rx_batch_packed(dev, vq, pkts)) {
+ if (!virtio_dev_rx_batch_packed(dev, vq,
+ &pkts[pkt_idx])) {
pkt_idx += PACKED_BATCH_SIZE;
remained -= PACKED_BATCH_SIZE;
continue;
--
2.17.1
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-11-07 9:59 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-07 14:37 [dpdk-dev] [PATCH] vhost: fix batch enqueue only handle few packets Marvin Liu
2019-11-07 8:11 ` Maxime Coquelin
2019-11-07 8:20 ` Maxime Coquelin
2019-11-07 8:29 ` Liu, Yong
2019-11-07 9:59 ` Liu, Yong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).