* [dpdk-dev] [PATCH 0/2] Some fixes for virtio and vhost @ 2018-11-06 6:40 Tiwei Bie 2018-11-06 6:40 ` [dpdk-dev] [PATCH 1/2] vhost: fix IOVA access for packed ring Tiwei Bie ` (2 more replies) 0 siblings, 3 replies; 8+ messages in thread From: Tiwei Bie @ 2018-11-06 6:40 UTC (permalink / raw) To: maxime.coquelin, zhihong.wang, dev Tiwei Bie (2): vhost: fix IOVA access for packed ring net/virtio-user: fix typo in error message drivers/net/virtio/virtio_user_ethdev.c | 2 +- lib/librte_vhost/virtio_net.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) -- 2.19.1 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [dpdk-dev] [PATCH 1/2] vhost: fix IOVA access for packed ring 2018-11-06 6:40 [dpdk-dev] [PATCH 0/2] Some fixes for virtio and vhost Tiwei Bie @ 2018-11-06 6:40 ` Tiwei Bie 2018-11-06 10:54 ` Maxime Coquelin 2018-11-06 6:40 ` [dpdk-dev] [PATCH 2/2] net/virtio-user: fix typo in error message Tiwei Bie 2018-11-09 14:52 ` [dpdk-dev] [PATCH 0/2] Some fixes for virtio and vhost Maxime Coquelin 2 siblings, 1 reply; 8+ messages in thread From: Tiwei Bie @ 2018-11-06 6:40 UTC (permalink / raw) To: maxime.coquelin, zhihong.wang, dev; +Cc: stable We should apply for RO access when receiving packets from the VM and apply for RW access when sending packets to the VM. Fixes: a922401f35cc ("vhost: add Rx support for packed ring") Fixes: ae999ce49dcb ("vhost: add Tx support for packed ring") Cc: stable@dpdk.org Signed-off-by: Tiwei Bie <tiwei.bie@intel.com> --- lib/librte_vhost/virtio_net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_vhost/virtio_net.c b/lib/librte_vhost/virtio_net.c index 8ad30c94a..5e1a1a727 100644 --- a/lib/librte_vhost/virtio_net.c +++ b/lib/librte_vhost/virtio_net.c @@ -598,7 +598,7 @@ reserve_avail_buf_packed(struct virtio_net *dev, struct vhost_virtqueue *vq, avail_idx, &desc_count, buf_vec, &vec_idx, &buf_id, &len, - VHOST_ACCESS_RO) < 0)) + VHOST_ACCESS_RW) < 0)) return -1; len = RTE_MIN(len, size); @@ -1503,7 +1503,7 @@ virtio_dev_tx_packed(struct virtio_net *dev, struct vhost_virtqueue *vq, vq->last_avail_idx, &desc_count, buf_vec, &nr_vec, &buf_id, &dummy_len, - VHOST_ACCESS_RW) < 0)) + VHOST_ACCESS_RO) < 0)) break; if (likely(dev->dequeue_zero_copy == 0)) -- 2.19.1 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [dpdk-dev] [PATCH 1/2] vhost: fix IOVA access for packed ring 2018-11-06 6:40 ` [dpdk-dev] [PATCH 1/2] vhost: fix IOVA access for packed ring Tiwei Bie @ 2018-11-06 10:54 ` Maxime Coquelin 0 siblings, 0 replies; 8+ messages in thread From: Maxime Coquelin @ 2018-11-06 10:54 UTC (permalink / raw) To: Tiwei Bie, zhihong.wang, dev; +Cc: stable On 11/6/18 7:40 AM, Tiwei Bie wrote: > We should apply for RO access when receiving packets from the > VM and apply for RW access when sending packets to the VM. > > Fixes: a922401f35cc ("vhost: add Rx support for packed ring") > Fixes: ae999ce49dcb ("vhost: add Tx support for packed ring") > Cc: stable@dpdk.org > > Signed-off-by: Tiwei Bie <tiwei.bie@intel.com> > --- > lib/librte_vhost/virtio_net.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/lib/librte_vhost/virtio_net.c b/lib/librte_vhost/virtio_net.c > index 8ad30c94a..5e1a1a727 100644 > --- a/lib/librte_vhost/virtio_net.c > +++ b/lib/librte_vhost/virtio_net.c > @@ -598,7 +598,7 @@ reserve_avail_buf_packed(struct virtio_net *dev, struct vhost_virtqueue *vq, > avail_idx, &desc_count, > buf_vec, &vec_idx, > &buf_id, &len, > - VHOST_ACCESS_RO) < 0)) > + VHOST_ACCESS_RW) < 0)) > return -1; > > len = RTE_MIN(len, size); > @@ -1503,7 +1503,7 @@ virtio_dev_tx_packed(struct virtio_net *dev, struct vhost_virtqueue *vq, > vq->last_avail_idx, &desc_count, > buf_vec, &nr_vec, > &buf_id, &dummy_len, > - VHOST_ACCESS_RW) < 0)) > + VHOST_ACCESS_RO) < 0)) > break; > > if (likely(dev->dequeue_zero_copy == 0)) > Ouch, good catch! Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com> Thanks, Maxime ^ permalink raw reply [flat|nested] 8+ messages in thread
* [dpdk-dev] [PATCH 2/2] net/virtio-user: fix typo in error message 2018-11-06 6:40 [dpdk-dev] [PATCH 0/2] Some fixes for virtio and vhost Tiwei Bie 2018-11-06 6:40 ` [dpdk-dev] [PATCH 1/2] vhost: fix IOVA access for packed ring Tiwei Bie @ 2018-11-06 6:40 ` Tiwei Bie 2018-11-08 12:18 ` Jens Freimann 2018-11-09 14:52 ` [dpdk-dev] [PATCH 0/2] Some fixes for virtio and vhost Maxime Coquelin 2 siblings, 1 reply; 8+ messages in thread From: Tiwei Bie @ 2018-11-06 6:40 UTC (permalink / raw) To: maxime.coquelin, zhihong.wang, dev; +Cc: stable The param we are checking is VIRTIO_USER_ARG_PATH, instead of VIRTIO_USER_ARG_QUEUE_SIZE. Fixes: ce2eabdd43ec ("net/virtio-user: add virtual device") Cc: stable@dpdk.org Signed-off-by: Tiwei Bie <tiwei.bie@intel.com> --- drivers/net/virtio/virtio_user_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/virtio/virtio_user_ethdev.c b/drivers/net/virtio/virtio_user_ethdev.c index 61b7c0a38..f8791391a 100644 --- a/drivers/net/virtio/virtio_user_ethdev.c +++ b/drivers/net/virtio/virtio_user_ethdev.c @@ -484,7 +484,7 @@ virtio_user_pmd_probe(struct rte_vdev_device *dev) } } else { PMD_INIT_LOG(ERR, "arg %s is mandatory for virtio_user", - VIRTIO_USER_ARG_QUEUE_SIZE); + VIRTIO_USER_ARG_PATH); goto end; } -- 2.19.1 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [dpdk-dev] [PATCH 2/2] net/virtio-user: fix typo in error message 2018-11-06 6:40 ` [dpdk-dev] [PATCH 2/2] net/virtio-user: fix typo in error message Tiwei Bie @ 2018-11-08 12:18 ` Jens Freimann 0 siblings, 0 replies; 8+ messages in thread From: Jens Freimann @ 2018-11-08 12:18 UTC (permalink / raw) To: Tiwei Bie; +Cc: maxime.coquelin, zhihong.wang, dev, stable On Tue, Nov 06, 2018 at 02:40:22PM +0800, Tiwei Bie wrote: >The param we are checking is VIRTIO_USER_ARG_PATH, instead >of VIRTIO_USER_ARG_QUEUE_SIZE. > >Fixes: ce2eabdd43ec ("net/virtio-user: add virtual device") >Cc: stable@dpdk.org > >Signed-off-by: Tiwei Bie <tiwei.bie@intel.com> >--- > drivers/net/virtio/virtio_user_ethdev.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Jens Freimann <jfreimann@redhat.com> ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [dpdk-dev] [PATCH 0/2] Some fixes for virtio and vhost 2018-11-06 6:40 [dpdk-dev] [PATCH 0/2] Some fixes for virtio and vhost Tiwei Bie 2018-11-06 6:40 ` [dpdk-dev] [PATCH 1/2] vhost: fix IOVA access for packed ring Tiwei Bie 2018-11-06 6:40 ` [dpdk-dev] [PATCH 2/2] net/virtio-user: fix typo in error message Tiwei Bie @ 2018-11-09 14:52 ` Maxime Coquelin 2 siblings, 0 replies; 8+ messages in thread From: Maxime Coquelin @ 2018-11-09 14:52 UTC (permalink / raw) To: Tiwei Bie, zhihong.wang, dev On 11/6/18 7:40 AM, Tiwei Bie wrote: > Tiwei Bie (2): > vhost: fix IOVA access for packed ring > net/virtio-user: fix typo in error message > > drivers/net/virtio/virtio_user_ethdev.c | 2 +- > lib/librte_vhost/virtio_net.c | 4 ++-- > 2 files changed, 3 insertions(+), 3 deletions(-) > Applied to dpdk-next-virtio/master Thanks, Maxime ^ permalink raw reply [flat|nested] 8+ messages in thread
* [dpdk-dev] [PATCH 0/2] Some fixes for virtio and vhost @ 2018-10-25 9:46 Tiwei Bie 2018-10-30 10:56 ` Maxime Coquelin 0 siblings, 1 reply; 8+ messages in thread From: Tiwei Bie @ 2018-10-25 9:46 UTC (permalink / raw) To: maxime.coquelin, zhihong.wang, dev Tiwei Bie (2): net/virtio: drop duplicated reset method net/vhost: fix parameters string drivers/net/vhost/rte_eth_vhost.c | 6 +++++- drivers/net/virtio/virtio_pci.c | 15 --------------- drivers/net/virtio/virtio_pci.h | 1 - drivers/net/virtio/virtio_user_ethdev.c | 1 - 4 files changed, 5 insertions(+), 18 deletions(-) -- 2.19.1 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [dpdk-dev] [PATCH 0/2] Some fixes for virtio and vhost 2018-10-25 9:46 Tiwei Bie @ 2018-10-30 10:56 ` Maxime Coquelin 0 siblings, 0 replies; 8+ messages in thread From: Maxime Coquelin @ 2018-10-30 10:56 UTC (permalink / raw) To: Tiwei Bie, zhihong.wang, dev On 10/25/18 11:46 AM, Tiwei Bie wrote: > Tiwei Bie (2): > net/virtio: drop duplicated reset method > net/vhost: fix parameters string > > drivers/net/vhost/rte_eth_vhost.c | 6 +++++- > drivers/net/virtio/virtio_pci.c | 15 --------------- > drivers/net/virtio/virtio_pci.h | 1 - > drivers/net/virtio/virtio_user_ethdev.c | 1 - > 4 files changed, 5 insertions(+), 18 deletions(-) > Applied to dpdk-next-virtio/master Thanks, Maxime ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2018-11-09 14:52 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2018-11-06 6:40 [dpdk-dev] [PATCH 0/2] Some fixes for virtio and vhost Tiwei Bie 2018-11-06 6:40 ` [dpdk-dev] [PATCH 1/2] vhost: fix IOVA access for packed ring Tiwei Bie 2018-11-06 10:54 ` Maxime Coquelin 2018-11-06 6:40 ` [dpdk-dev] [PATCH 2/2] net/virtio-user: fix typo in error message Tiwei Bie 2018-11-08 12:18 ` Jens Freimann 2018-11-09 14:52 ` [dpdk-dev] [PATCH 0/2] Some fixes for virtio and vhost Maxime Coquelin -- strict thread matches above, loose matches on Subject: below -- 2018-10-25 9:46 Tiwei Bie 2018-10-30 10:56 ` Maxime Coquelin
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).