From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id EDBDFA04DC; Tue, 20 Oct 2020 17:21:04 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BCB95BAF4; Tue, 20 Oct 2020 17:21:03 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by dpdk.org (Postfix) with ESMTP id 097CAAD54 for ; Tue, 20 Oct 2020 17:21:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1603207260; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jGnxhOEK8m9lmFbuBruFwzp7dbBLnt96edmXoIp87i8=; b=NJYDWmWIU3gdDnRkSJz+xaNmb5X23AifsM/p2KZRV1YjA1m6/LzvUDhLJtcc4Nys/ZE68B 9EwjQztnsQslEBZrZ+AkceqCU5bfpUQUSl6n9z19BUkJcBVmujaidFViT9/55WdCQKac7/ k4sajqayFTxU1Um6fmWxaKWH3QWcHiQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-428-jMTpWttPN2OEKsKOKclR8g-1; Tue, 20 Oct 2020 11:20:57 -0400 X-MC-Unique: jMTpWttPN2OEKsKOKclR8g-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 594D018BE16C; Tue, 20 Oct 2020 15:20:56 +0000 (UTC) Received: from amorenoz.users.ipa.redhat.com (ovpn-112-202.ams2.redhat.com [10.36.112.202]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4854855784; Tue, 20 Oct 2020 15:20:55 +0000 (UTC) From: Adrian Moreno To: dev@dpdk.org Cc: yinan.wang@intel.com, patrick.fu@intel.com, amorenoz@redhat.com Date: Tue, 20 Oct 2020 17:20:49 +0200 Message-Id: <20201020152052.389446-1-amorenoz@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=amorenoz@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Subject: [dpdk-dev] [PATCH v2 0/3] virtio-user: fix virtio-user server mode X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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