From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 07B6CA04AD; Tue, 8 Feb 2022 10:48:21 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 795D8410FD; Tue, 8 Feb 2022 10:48:21 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 930FC410FC for ; Tue, 8 Feb 2022 10:48:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1644313699; 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=8/krAPjomeZxcZVpJMhDhm2flIVH/HrshdJuDxgTUHM=; b=WDIKWrGRc/6NpkKscLN59YRFeg86QdMj51WWjq+XDPAb6jFysJfOoFuwcU9xjggAaDw/DV fNkJI63yfsVDGG8QoCTqCcBfiWNCgbTNxXQQHCj3w0X2CuyNy/aCNP9Duo/gA4gJVPaZBY LhFqQaINj/wywhWZ6gdowXBZzdH+UWI= 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-352-nj1GywClOZWweRxbxX2Hsg-1; Tue, 08 Feb 2022 04:48:16 -0500 X-MC-Unique: nj1GywClOZWweRxbxX2Hsg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id DAFB783DD22; Tue, 8 Feb 2022 09:48:14 +0000 (UTC) Received: from [10.39.208.19] (unknown [10.39.208.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B26997B6D0; Tue, 8 Feb 2022 09:48:05 +0000 (UTC) Message-ID: <5ebdddf5-6740-6c75-4264-033e2a14f849@redhat.com> Date: Tue, 8 Feb 2022 10:48:03 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v2 1/1] vhost: move fds outside of VhostUserMessage To: Christophe Fontaine , chenbo.xia@intel.com Cc: dev@dpdk.org, Christophe Fontaine References: <20220123115927.76130-2-cfontain@redhat.com> <20220207102129.59170-1-cfontain@redhat.com> <20220207102129.59170-2-cfontain@redhat.com> From: Maxime Coquelin In-Reply-To: <20220207102129.59170-2-cfontain@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 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-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 On 2/7/22 11:21, Christophe Fontaine wrote: > From: Christophe Fontaine > > FDs at the end of the VhostUserMessage structure limits the size > of the payload. Move them to an other englobing structure, before > the header & payload of a VhostUserMessage. > Also removes a reference to fds in the VHUMsg structure defined in > drivers/net/virtio/virtio_user/vhost_user.c > > Signed-off-by: Christophe Fontaine > --- > drivers/net/virtio/virtio_user/vhost_user.c | 1 - > lib/vhost/vhost_crypto.c | 10 +- > lib/vhost/vhost_user.c | 534 ++++++++++---------- > lib/vhost/vhost_user.h | 7 +- > 4 files changed, 290 insertions(+), 262 deletions(-) > Reviewed-by: Maxime Coquelin Thanks, Maxime