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 53EDDA04DC; Tue, 20 Oct 2020 17:26:42 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 92BFFAD54; Tue, 20 Oct 2020 17:26:39 +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 35DF0AA24 for ; Tue, 20 Oct 2020 17:26:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1603207595; 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: in-reply-to:in-reply-to:references:references; bh=ZEc0HV+cjzBHsPAoMvrjWc6KHk281LgmgT5IrrkXMvs=; b=RJJXJoN0A8V4khCEYT1Ld/JrEpK/pnzaLX+oV3xCzTf80ezaR/6gs7+yJqj97Qigd4DfBx lgpIyrnefOVGLWYUxaiFUVHLRTNIygCs3OL3Hw26jLWMQ7BgSMzADrA/JNswsCMJES4ojA f+Z2OJT6rN39UNxUVGxJ6DSpaWKoD+g= 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-506-eUO-EeoQP46twAwNrsneCQ-1; Tue, 20 Oct 2020 11:26:31 -0400 X-MC-Unique: eUO-EeoQP46twAwNrsneCQ-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 120018049E3; Tue, 20 Oct 2020 15:26:30 +0000 (UTC) Received: from [10.36.110.40] (unknown [10.36.110.40]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 09C506266E; Tue, 20 Oct 2020 15:26:25 +0000 (UTC) To: Adrian Moreno , dev@dpdk.org Cc: yinan.wang@intel.com, patrick.fu@intel.com, stable@dpdk.org, Chenbo Xia , Zhihong Wang References: <20201020152052.389446-1-amorenoz@redhat.com> <20201020152052.389446-2-amorenoz@redhat.com> From: Maxime Coquelin Message-ID: <65e5a31e-f6a8-ed44-9dcb-5c8a38bf4ee1@redhat.com> Date: Tue, 20 Oct 2020 17:26:24 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1 MIME-Version: 1.0 In-Reply-To: <20201020152052.389446-2-amorenoz@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=maxime.coquelin@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v2 1/3] virtio-user: fix backend selection if stat fails 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" On 10/20/20 5:20 PM, Adrian Moreno wrote: > If stat fails because the file does not exist, it means that > the backend must be vhost-user in server mode. > > Also, log the detected backend type. > > Bugzilla ID: 559 > Fixes: f908b22ea47a ("net/virtio: move backend type selection to ethdev") > Cc: stable@dpdk.org > > Signed-off-by: Adrian Moreno > --- > drivers/net/virtio/virtio_user/virtio_user_dev.c | 7 +++++++ > drivers/net/virtio/virtio_user/virtio_user_dev.h | 1 + > drivers/net/virtio/virtio_user_ethdev.c | 6 +++++- > 3 files changed, 13 insertions(+), 1 deletion(-) > Reviewed-by: Maxime Coquelin Thanks, Maxime