DPDK patches and discussions
 help / color / mirror / Atom feed
From: Adrian Moreno <amorenoz@redhat.com>
To: dev@dpdk.org
Cc: yinan.wang@intel.com, patrick.fu@intel.com, amorenoz@redhat.com
Subject: [dpdk-dev] [PATCH v2 0/3] virtio-user: fix virtio-user server mode
Date: Tue, 20 Oct 2020 17:20:49 +0200	[thread overview]
Message-ID: <20201020152052.389446-1-amorenoz@redhat.com> (raw)

This series addresses some issues identified in the virtio-user driver
when configured in server mode.

Firstly, properly identify the backend type in this mode.

Secondly, ensure no get/set status commands are sent before protocol
feature negotiation to avoid sending them to a backend that does not support them

And finally, add get/set status as per virtio spec so that it can work with
modern vhost-user backends that rely on this message to start the device.

--
v1->v2:
Added patch 2 and 3 addressing additional issues
Check errno to select vhost-user backend and log the detected backend
type


Adrian Moreno (3):
  virtio-user: fix backend selection if stat fails
  virtio_user: don't set/get_status until FEATURES_OK
  virtio-user: set status on virtio-user reconnect

 drivers/net/virtio/virtio_user/vhost_user.c   | 10 ++++++----
 .../net/virtio/virtio_user/virtio_user_dev.c  |  7 +++++++
 .../net/virtio/virtio_user/virtio_user_dev.h  |  1 +
 drivers/net/virtio/virtio_user_ethdev.c       | 20 ++++++++++++++++---
 4 files changed, 31 insertions(+), 7 deletions(-)

-- 
2.26.2


             reply	other threads:[~2020-10-20 15:21 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-20 15:20 Adrian Moreno [this message]
2020-10-20 15:20 ` [dpdk-dev] [PATCH v2 1/3] virtio-user: fix backend selection if stat fails Adrian Moreno
2020-10-20 15:26   ` Maxime Coquelin
2020-10-20 16:52   ` Kevin Traynor
2020-10-20 15:20 ` [dpdk-dev] [PATCH v2 2/3] virtio_user: don't set/get_status until FEATURES_OK Adrian Moreno
2020-10-20 16:17   ` Maxime Coquelin
2020-10-20 15:20 ` [dpdk-dev] [PATCH v2 3/3] virtio-user: set status on virtio-user reconnect Adrian Moreno
2020-10-20 16:42   ` Maxime Coquelin
2020-10-22  4:01     ` Wang, Yinan
2020-10-22  7:13       ` Maxime Coquelin
2020-10-22  7:37         ` Xia, Chenbo
2020-10-22  8:12           ` Adrian Moreno
2020-10-22  8:32             ` Maxime Coquelin
2020-10-23  5:21               ` Jiang, YuX

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201020152052.389446-1-amorenoz@redhat.com \
    --to=amorenoz@redhat.com \
    --cc=dev@dpdk.org \
    --cc=patrick.fu@intel.com \
    --cc=yinan.wang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).