From patchwork Wed Jul 15 17:18:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Moreno X-Patchwork-Id: 74125 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B1A57A0542; Wed, 15 Jul 2020 19:18:44 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CA2E43421; Wed, 15 Jul 2020 19:18:43 +0200 (CEST) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by dpdk.org (Postfix) with ESMTP id 975922C58 for ; Wed, 15 Jul 2020 19:18:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594833522; 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=LxlGyJ+iYi/SGC2mbvGhsEIt7hDaXFHbe4pJKiDsov4=; b=DNZHATE81j3wCAhWsVAs/mVGxe3qiPLf7y2QIS2zdCZLrvqWGf1WQaWhORkMAwMezmVduM 1Vh/5tJ+LG/+lMPiIRLpQFTbjdoTCUO75GvR58/jQgzglVKzm8aPyceovgCnE32tIGKAfa 8zwzdwnjXyzGCaYHYkijI6j5EhgXmO4= 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-242-PtsaQvw0NnWMvYRvRKJCFA-1; Wed, 15 Jul 2020 13:18:40 -0400 X-MC-Unique: PtsaQvw0NnWMvYRvRKJCFA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 076EA107ACCA; Wed, 15 Jul 2020 17:18:39 +0000 (UTC) Received: from amorenoz.users.ipa.redhat.com (ovpn-113-28.ams2.redhat.com [10.36.113.28]) by smtp.corp.redhat.com (Postfix) with ESMTP id E017A61982; Wed, 15 Jul 2020 17:18:33 +0000 (UTC) From: Adrian Moreno To: dev@dpdk.org Cc: maxime.coquelin@redhat.com, zhihong.wang@intel.com, amorenoz@redhat.com, chenbo.xia@intel.com Date: Wed, 15 Jul 2020 19:18:23 +0200 Message-Id: <20200715171828.95887-1-amorenoz@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [dpdk-dev] [PATCH 0/5] Add support for GET/SET_STATUS on virtio-user pmd 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" Recently, two new messages have been added to the vhost-user protocol that make the device initialization more robust. VHOST_VIRTIO_SET_STATUS allows the driver to set the device status VHOST_VIRTIO_GET_STATUS allows the driver to read the status back from the device This series implements these features in the virtio-user pmd Adrian Moreno (4): net/virtio: split virtio-net and virtio status net/virtio: add DEVICE_NEEDS_RESET status bit net/virtio: add GET_STATUS support to virtio-user net/virtio: enable feature checking on virtio-user Maxime Coquelin (1): net/virtio: add VIRTIO_SET_STATUS support to Virtio-user drivers/net/virtio/virtio_ethdev.c | 13 ++-- drivers/net/virtio/virtio_pci.h | 13 ++-- drivers/net/virtio/virtio_user/vhost.h | 6 ++ drivers/net/virtio/virtio_user/vhost_user.c | 12 ++++ .../net/virtio/virtio_user/virtio_user_dev.c | 62 ++++++++++++++++++- .../net/virtio/virtio_user/virtio_user_dev.h | 7 ++- drivers/net/virtio/virtio_user_ethdev.c | 14 +++-- 7 files changed, 108 insertions(+), 19 deletions(-)