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 880A2A0503; Fri, 6 May 2022 09:12:17 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 32B6740395; Fri, 6 May 2022 09:12:17 +0200 (CEST) Received: from us-smtp-delivery-74.mimecast.com (us-smtp-delivery-74.mimecast.com [170.10.133.74]) by mails.dpdk.org (Postfix) with ESMTP id D66AA4014F for ; Fri, 6 May 2022 09:12:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1651821135; 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: in-reply-to:in-reply-to:references:references; bh=UXlJBp5a0LEVvBcGaP6WxP7pfqA5gyTmapjyAdqHTfY=; b=TVffYIHjEgQdsy2s2ZVXsO7gbAsGt89zgjKIlditswaN258qggxYOEipDFVW/Kveiyjmmu AOuaUC1ZuKPI6QPP5rBViGXg0RIa5eXWqz6pCtCIKDT2G4hv356cGkmCreSVyEJFJplOGE wYZ2kC3SXvlbl3BmHfZTT9h9nc6ORac= Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-502-z_DXMcnHNHG9HTVIIqQxbA-1; Fri, 06 May 2022 03:12:14 -0400 X-MC-Unique: z_DXMcnHNHG9HTVIIqQxbA-1 Received: by mail-lj1-f198.google.com with SMTP id m6-20020a2eb6c6000000b002509fdb1dbaso138749ljo.1 for ; Fri, 06 May 2022 00:12:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=UXlJBp5a0LEVvBcGaP6WxP7pfqA5gyTmapjyAdqHTfY=; b=lry8ylw8934626wYmPHZZbsFHn43Xp05Ct1AVBazlK8iLex4COwi3lMjpL/c2tJC9c DhN79XCsS4xVC0VDWvqBTej1sxvfJVbjgAD/YJP5SobPwCSCvV3H1SNXYrA8FDUnb6aX CO4nWlkQdAQ4rvRBy1T3sKtV0g0xGJFXFEZ+LzFCKb2SpgR5uJWWeB5LpT4caY7B0BFu e3lUhazdp0FT4PrH2tHkMG4Y9Mn8ImpnaWBaBybmrxF73tOD0O/SYiLDgh1okX54hCAm CWJGQiBoi2JT/1xkmHPB7MKc37sLsa3tDJOMiQTUHb7i9+zMb3eK+15SYsCLOuFdIy3Q YN7Q== X-Gm-Message-State: AOAM531ytyFKHr55ghIP7eK8hqTI8199tH5pW8/0Ua06wnWl+wxp/1sC /MRylXLtZ/op5Z26aYTZDLduOEbzelPxnqeBt/aKoEdPTYFrV8Gi7TKReSmI0KRbqzDohDgBhQM lq/GWiP/SaUU1pSq9EKU= X-Received: by 2002:a05:6512:3f8c:b0:45d:cb2a:8779 with SMTP id x12-20020a0565123f8c00b0045dcb2a8779mr1622956lfa.499.1651821132702; Fri, 06 May 2022 00:12:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx31ZGeG+WGYFzjZAo2SQtZgMGX062PRtX0+/OyJ8pUChTSOM4KE8E1in1iavu7CFlwufXA23cBdAYoaK3k2WU= X-Received: by 2002:a05:6512:3f8c:b0:45d:cb2a:8779 with SMTP id x12-20020a0565123f8c00b0045dcb2a8779mr1622939lfa.499.1651821132367; Fri, 06 May 2022 00:12:12 -0700 (PDT) MIME-Version: 1.0 References: <20220425125431.26464-1-david.marchand@redhat.com> In-Reply-To: From: David Marchand Date: Fri, 6 May 2022 09:12:01 +0200 Message-ID: Subject: Re: [PATCH 1/2] vhost: remove unneeded max enums To: Maxime Coquelin Cc: dev , "Xia, Chenbo" , Thomas Monjalon Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" 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 Thu, May 5, 2022 at 9:58 PM Maxime Coquelin wrote: > On 4/25/22 14:54, David Marchand wrote: > > Move message handler description and callbacks into a single array and > > remove unneeded VHOST_USER_MAX and VHOST_SLAVE_MAX enums. > > > > Signed-off-by: David Marchand > > --- > > drivers/net/virtio/virtio_user/vhost_user.c | 1 - > > examples/vhost_blk/blk_spec.h | 1 - > > lib/vhost/vhost_user.c | 175 +++++++++----------- > > lib/vhost/vhost_user.h | 2 - > > 4 files changed, 76 insertions(+), 103 deletions(-) > > > > > Applied to dpdk-next-virtio/main without changing the commit title. > Feel free to change it while pulling if you feel this is relevant. This bad title probably comes from a time when the patch was indeed only touching max enums. Your suggestion is ok. This will be fixed when pulling, thanks. -- David Marchand