Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp674312rwl; Fri, 31 Mar 2023 00:15:40 -0700 (PDT) X-Google-Smtp-Source: AKy350brtU9Fh+nDOeiXQF/qP38LNx4tmMKLdK9yx7G79kHNsXOPgj8TgGmLFkIVr97omm6vS4Zi X-Received: by 2002:a05:6402:524e:b0:4fd:2978:d80 with SMTP id t14-20020a056402524e00b004fd29780d80mr26757765edd.1.1680246940069; Fri, 31 Mar 2023 00:15:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680246940; cv=none; d=google.com; s=arc-20160816; b=LZQkXLkiN0iFVBVKEHoJqMBHMJ+lHUHzfQiIYw9ZtjkPCyGPdrsmrzyFqlOpb7TLtH zI0c5d5UCQhzWeugUMCoKRZjBZ+TBQa3u/BTvzZLcBMw0RXxxVbg9BXOuPdxKIPZoMiE 2hzWGSmJjosdxT4QE95Gu6umGCBEoGg2tOypM9+ipf6HoQasiJP34ZYQqhMLNSVbogYn QUWFUVqpib7qi8XPWP9gPq5UrGvEyKEIzee9HICx+ftlvZTS3uwRc9JvBGSZxtDzIWTR Nr0daunPeretOn3XUB4ubW4onfk174iQ/YM0nQkiB/MYQ5modGvFt5lXV4oe+W++RNqq AKOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=pbj2AVGF1WXOqLTCXZnSczyZWz0UiEcYEZC2FxVEVpY=; b=ivCl+r9Weeu2BGaJbDBxQEV4q6oMejg9EatjXGt68qbuNcyvZ33H8t5or2OGP52IQm eOPAVT9fSVWihJ4dU+vYybMSG4r1xisR/BLbXyou9bVuCJ9TQBJe4zFZJ8nbZGGtxKld azyvrekDZm5pdh8Sd0Ie1pXCe4VaZ+burKPna6Sv/Tse9bfkFStSfga/zRiLOrbc7hEc uE9KnGoJ7Fim5MSJ/kL1GplzzeS7fQbR9fMBnXRj4BRKrFC/bae4Vi2ryGxUcWhe5L6z uacGsYurRUet9blg9igv83g98fP9mw+lxnKgm0bE4ZPW6GwMe6i+EBM3NWI+B5mdcRxC GscA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iilXVRBP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q10-20020aa7da8a000000b00501df8f316bsi1303631eds.308.2023.03.31.00.15.14; Fri, 31 Mar 2023 00:15:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iilXVRBP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230228AbjCaHNy (ORCPT + 99 others); Fri, 31 Mar 2023 03:13:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjCaHNx (ORCPT ); Fri, 31 Mar 2023 03:13:53 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 750F8EFA6 for ; Fri, 31 Mar 2023 00:13:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680246783; 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=pbj2AVGF1WXOqLTCXZnSczyZWz0UiEcYEZC2FxVEVpY=; b=iilXVRBPuMgbBzM0aZCpuIDuHlJ94DRSc3Osfrz2HqncVCQ2JADxk1OSZqMWTWg24OIyMm AcXFNKHOZmLXf+CjEY8Uexkt6ddxjQ41GrK60rvbMnebLL6oLub1t5OfgalayVujLTSSLE iOLdQdWxN/Soer7T2vQL8XgLpCZ89/w= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-544-l9nXYwY5Mv6wIyIDuMvvPw-1; Fri, 31 Mar 2023 03:13:02 -0400 X-MC-Unique: l9nXYwY5Mv6wIyIDuMvvPw-1 Received: by mail-ed1-f69.google.com with SMTP id b18-20020a50b412000000b0050234a3ad75so25551379edh.23 for ; Fri, 31 Mar 2023 00:13:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680246781; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=pbj2AVGF1WXOqLTCXZnSczyZWz0UiEcYEZC2FxVEVpY=; b=UtWPgitHQASX4ngPUn/UH49c5img/FhX4lUWhDNAJcevb/b9l4VajQhHvvs4aZCKF3 x+gLe+bQh7EqriQWythKSjvMHRUvrg3UMSMYpOP7ZJV2KgSI/vq6ylRJu1eJf2UJ7ZPJ 0nwg/p6+BNJjk/hLjE8oYJPXj2Rwyc1e2JKyXHCnw9JfZtmVCOO2f8qB+FwB8aPdj2SW X6lCWBEqXksOYI7n+TrhPtNcLVK4c+j75k+R8a+CQoP3OKuCoVYGNCMLBfnUkSmRRrDf o2htwRn25g7K6D5VqjE/LoNe6Zyvfwyx1V8FPrIi9qbSzmqnQ5bWDBDM5/s8w8qoj2b9 8kjA== X-Gm-Message-State: AAQBX9fZTlAakZ4SxIaoj8Bq+GUfURaqp1JUmH90DMGeJVMwGQi0ERWZ pkzdURq1W3axMhYxgfb/4P2eTW0KCaMwj6iioMiobxGoAwu357TLd3f4Qw1uv0o1BbuO/annqY1 Qn+XMwNWwWYePfobBQ0G/tcYn X-Received: by 2002:aa7:c786:0:b0:4fb:eda4:c093 with SMTP id n6-20020aa7c786000000b004fbeda4c093mr24871256eds.13.1680246781231; Fri, 31 Mar 2023 00:13:01 -0700 (PDT) X-Received: by 2002:aa7:c786:0:b0:4fb:eda4:c093 with SMTP id n6-20020aa7c786000000b004fbeda4c093mr24871241eds.13.1680246780883; Fri, 31 Mar 2023 00:13:00 -0700 (PDT) Received: from sgarzare-redhat (host-82-57-51-130.retail.telecomitalia.it. [82.57.51.130]) by smtp.gmail.com with ESMTPSA id h27-20020a50cddb000000b004c19f1891fasm688400edj.59.2023.03.31.00.12.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Mar 2023 00:13:00 -0700 (PDT) Date: Fri, 31 Mar 2023 09:12:58 +0200 From: Stefano Garzarella To: Arseniy Krasnov Cc: Stefan Hajnoczi , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Bobby Eshleman , Bryan Tan , Vishnu Dasa , kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@sberdevices.ru, oxffffaa@gmail.com, pv-drivers@vmware.com Subject: Re: [RFC PATCH v3 2/4] vsock/vmci: convert VMCI error code to -ENOMEM on receive Message-ID: <7pypi573nxgwz7vrgd2cwcrtha4abijutlsgtnxrwcgaatdjbz@cwnq5dlurfhs> References: <4d34fac8-7170-5a3e-5043-42a9f7e4b5b3@sberdevices.ru> <9fd06ca5-ace9-251d-34af-aca4db9c3ee0@sberdevices.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <9fd06ca5-ace9-251d-34af-aca4db9c3ee0@sberdevices.ru> X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 30, 2023 at 11:18:36PM +0300, Arseniy Krasnov wrote: > > >On 30.03.2023 23:13, Arseniy Krasnov wrote: >> This adds conversion of VMCI specific error code to general -ENOMEM. It >> is needed, because af_vsock.c passes error value returned from transport >> to the user, which does not expect to get VMCI_ERROR_* values. > >@Stefano, I have some doubts about this commit message, as it says "... af_vsock.c >passes error value returned from transport to the user ...", but this >behaviour is implemented only in the next patch. Is it ok, if both patches >are in a single patchset? Yes indeed it is not clear. In my opinion we can do one of these 2 things: 1. Update the message, where we can say that this is a preparation patch for the next changes where af_vsock.c will directly return transport values to the user, so we need to return an errno. 2. Merge this patch and patch 3 in a single patch. Both are fine for my point of view, take your choice ;-) Thanks, Stefano