From patchwork Sun Jan 23 11:59:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Fontaine X-Patchwork-Id: 106234 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id CF0B8A04A2; Sun, 23 Jan 2022 12:59:49 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 55DFC41169; Sun, 23 Jan 2022 12:59:49 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id EC89540040 for ; Sun, 23 Jan 2022 12:59:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1642939187; 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=k50jVeUcxEWEs2ceWHplr9HUb9ZzKZZxS2vPxk3yzNI=; b=S1lvTKw1/qt15e8pTUTCzY8XAm31JVTYJc8ArhN/eQ7dz7axxWEybWkBpHZrsshBsiqzXm r+QA798Y62XiYvP9rRs76ZcRr19VD9ck69XA4YX5sNFRJEuv4TIScHn+elh7NykJIisyoF qfZHyFFqXGQ32CdpMqyueQFq3LGUZZg= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-183-BG-sP1L6PiurdlBK0G7ohQ-1; Sun, 23 Jan 2022 06:59:45 -0500 X-MC-Unique: BG-sP1L6PiurdlBK0G7ohQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8ABD446860; Sun, 23 Jan 2022 11:59:44 +0000 (UTC) Received: from localhost.localdomain (unknown [10.39.208.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3B7E022E07; Sun, 23 Jan 2022 11:59:40 +0000 (UTC) From: Christophe Fontaine To: maxime.coquelin@redhat.com, chenbo.xia@intel.com Cc: dev@dpdk.org, Christophe Fontaine Subject: [PATCH 0/1] Removes FDs from VhostUserMessage structure Date: Sun, 23 Jan 2022 12:59:26 +0100 Message-Id: <20220123115927.76130-1-cfontain@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=cfontain@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This patch removes the file descriptors from the struct VhostUserMessage as it is not part of the spec. These FDs are moved to a englobing context structure. Christophe Fontaine (1): vhost: Move fds outside of VhostUserMessage drivers/net/virtio/virtio_user/vhost_user.c | 1 - lib/vhost/vhost_crypto.c | 10 +- lib/vhost/vhost_user.c | 529 ++++++++++---------- lib/vhost/vhost_user.h | 7 +- 4 files changed, 288 insertions(+), 259 deletions(-)