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 4AEC7A04DD; Wed, 28 Oct 2020 11:36:16 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A61DCC95A; Wed, 28 Oct 2020 11:36:14 +0100 (CET) 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 374C1C944 for ; Wed, 28 Oct 2020 11:36:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1603881371; 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=KYWuomaBUp48UEf0reQHjxjskCccqd9C31Lh41HDhUU=; b=HbL+YfurzOMteQEbyQXV2V/pADMRPc34zQoqYiqsXFwku/lxOCZwN4Wql5klup39LcWrcg xuPGtdpnJs+A6pcynhQ1+6IhKeTnXkcfrUkuIDjj0MjqqGJSHSq9v7tevdlpcEgf0PoN/Y cyBlf82JUB6IQEBuEKL2o9iTlbeWm8U= 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-560-SvzZ2DD2OneF85O6DCzZ2g-1; Wed, 28 Oct 2020 06:36:07 -0400 X-MC-Unique: SvzZ2DD2OneF85O6DCzZ2g-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9EB0D1882FAA; Wed, 28 Oct 2020 10:36:06 +0000 (UTC) Received: from [10.36.110.54] (unknown [10.36.110.54]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 275365DA33; Wed, 28 Oct 2020 10:36:00 +0000 (UTC) To: Adrian Moreno , dev@dpdk.org Cc: yinan.wang@intel.com, patrick.fu@intel.com, chenbo.xia@intel.com, zhihong.wang@intel.com References: <20201026163930.94032-1-amorenoz@redhat.com> <20201026163930.94032-5-amorenoz@redhat.com> From: Maxime Coquelin Message-ID: <3548022e-8f1c-a05b-ee91-981d148d6e92@redhat.com> Date: Wed, 28 Oct 2020 11:35:59 +0100 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: <20201026163930.94032-5-amorenoz@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 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 v3 4/6] net/virtio-user: lock-protect status updates 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/26/20 5:39 PM, Adrian Moreno wrote: > In order to safely set and get the device status from different > threads (e.g: interrupt handlers). > > Signed-off-by: Adrian Moreno > --- > drivers/net/virtio/virtio_user/virtio_user_dev.c | 14 +++++++++++--- > drivers/net/virtio/virtio_user/virtio_user_dev.h | 4 ++-- > drivers/net/virtio/virtio_user_ethdev.c | 6 +++--- > 3 files changed, 16 insertions(+), 8 deletions(-) Reviewed-by: Maxime Coquelin Thanks, Maxime