Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp794753rdg; Wed, 11 Oct 2023 05:57:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFDpe/4iZvVhjNQODBJlTguiqfnM3xJ4d8RRydvOpzVPPTG1Y1qpEv1ke1YhQzFbWZ4QlVv X-Received: by 2002:a05:6870:d9b:b0:1e9:677e:9683 with SMTP id mj27-20020a0568700d9b00b001e9677e9683mr4439254oab.8.1697029067201; Wed, 11 Oct 2023 05:57:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697029067; cv=none; d=google.com; s=arc-20160816; b=xwA1tkabOpf+6UWNXJXxL9hMT+I06yyq7ePSQon+JNpK46F1WimKQ+Gof668r6IPQ8 OMl4JL1nblprZelLc53EMCg5pxrhscjmAaAVkg/M8OP6jq+zgCtHWgxKmC2cc9duECwB hqPicvGzSIbrpxnegkhKITnUGOzWe703jX4n9He4hTdEHtu4luQLhimqwniaBS5obIq6 oii+Tmb87LW4DOTiSo7WD215LcuqY/2d0Nj730EbKhrEUSgvgDyKflaCIOfx2emN+W0R tLSipXEIyDLs5RzXmrEPTOIIf+n8w8sTuA7KPalg4ViRBxAZz1ZtyjIKWSVCXnSMGlmr 1ogQ== 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=A+7ZEoe9gqs3ohA/tE8e5TAOHw5GEtQ2AHlZY+ECy20=; fh=JEq7ZyqHwnKMAbPjHbEHIOO1u1YxTWxtQlCbJmwG+xw=; b=LQiPtB7Ymd6oz12eY2N9VznyjVXA2MYfvil//9QOoaDeFZmE2cH+YXExlmfNiQweai TBrWbIxFmbHj5rDF1aeoqagoQtriS1++h6P3nqG6V5FdPFOg0iN4Zi9d+SAh9R3QRlo/ Dbivis86oAIMv9E7EPjiv9LRFwRxMU47a5zNmrvXvD3TPMIrHHamhuP12E32rPBMoJyK Re2h/40XaekjCU4/GYp3+uF10Fo5bC6Y0HxjinM2e9PnX+t/5vTPR2XX/Im8/7X674YQ +dnQiAZbqgZCXP8fyDEzNmsgH9NxhoUd76o+XrY8h7Lv4JTgxn6hdxRLcjuDgVyEfz3o 2pvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RpgypI8v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id f16-20020a63e310000000b0058986ac734asi1956712pgh.561.2023.10.11.05.57.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:57:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RpgypI8v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 6161A806E1EC; Wed, 11 Oct 2023 05:57:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346957AbjJKMzr (ORCPT + 99 others); Wed, 11 Oct 2023 08:55:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346463AbjJKMzg (ORCPT ); Wed, 11 Oct 2023 08:55:36 -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 4D01CA9 for ; Wed, 11 Oct 2023 05:54:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697028887; 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=A+7ZEoe9gqs3ohA/tE8e5TAOHw5GEtQ2AHlZY+ECy20=; b=RpgypI8vSun92Kh7lC6HyDfhFLsX7Gtp4SPnSAMSM1CMNJH9nfWmMbPFuynp4Gp7RF8na3 +xNf/CkgiB//6vPnMXjbXo66z/8B3h4k/lvXveVqML94ErF4LhW+WmgfBnaVwc5aUdCsCy CH9E/RW40iB1wUUhJZswsDzCismV270= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-210-NLDs5pgtM4SNYcNyZU08nA-1; Wed, 11 Oct 2023 08:54:40 -0400 X-MC-Unique: NLDs5pgtM4SNYcNyZU08nA-1 Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-77407e21d49so717907985a.0 for ; Wed, 11 Oct 2023 05:54:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697028880; x=1697633680; 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=A+7ZEoe9gqs3ohA/tE8e5TAOHw5GEtQ2AHlZY+ECy20=; b=A8BPwCtsTV78ociUCe0eD2gk0J1uJNuH26qx1qDXSyN3FRXyZOsRGXUQyAuWQaOvbK X4N5VgoMRyBPLo7qqiFpxdMYzWo1Ey1Wv/ry5/jJrF9HCUmiroWpugGsX5lRaP7Mc5iO juM2Vdq6cUqKC4hbonq2zVQEyZQtB35nZHDYtvx8uzehl/2oH2t41Bzww2NYea2wJgf9 eqsPDf3pTPW7cgvyBBeeuuSr7dom0ufL6THR7uNUPdmv0NPUQXqhARNGXoNUicA7zzzc arrLcvJC/3Euuk7mkBzVQxo3qfu7ZWrgHexAigRgNayc278XgemWIq4ZIyWJPj6RBBe8 rrxw== X-Gm-Message-State: AOJu0YzMQ5C4/Z+xi/pcrUtKs9sSXTpdVQq6qAb36s3awWWTGAPuLMR4 5KPObLVTMc4Wv6yiYJz47JSPKu+572PPPiP95ILNTWpxOw4GZeEq5/2NAAEpIlaQ1IBcvSwt1KX eHTe1gyInriYR6kd/gzIA9eKf X-Received: by 2002:a05:620a:288c:b0:775:cf6d:a468 with SMTP id j12-20020a05620a288c00b00775cf6da468mr20569723qkp.49.1697028879721; Wed, 11 Oct 2023 05:54:39 -0700 (PDT) X-Received: by 2002:a05:620a:288c:b0:775:cf6d:a468 with SMTP id j12-20020a05620a288c00b00775cf6da468mr20569709qkp.49.1697028879396; Wed, 11 Oct 2023 05:54:39 -0700 (PDT) Received: from sgarzare-redhat (host-79-46-200-251.retail.telecomitalia.it. [79.46.200.251]) by smtp.gmail.com with ESMTPSA id oo23-20020a05620a531700b00774652483b7sm5210995qkn.33.2023.10.11.05.54.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:54:38 -0700 (PDT) Date: Wed, 11 Oct 2023 14:54:33 +0200 From: Stefano Garzarella To: Arseniy Krasnov Cc: Stefan Hajnoczi , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "Michael S. Tsirkin" , Jason Wang , Bobby Eshleman , kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@sberdevices.ru, oxffffaa@gmail.com Subject: Re: [PATCH net-next v4 02/12] vsock: read from socket's error queue Message-ID: References: <20231010191524.1694217-1-avkrasnov@salutedevices.com> <20231010191524.1694217-3-avkrasnov@salutedevices.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20231010191524.1694217-3-avkrasnov@salutedevices.com> X-Spam-Status: No, score=2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 11 Oct 2023 05:57:22 -0700 (PDT) X-Spam-Level: ** On Tue, Oct 10, 2023 at 10:15:14PM +0300, Arseniy Krasnov wrote: >This adds handling of MSG_ERRQUEUE input flag in receive call. This flag >is used to read socket's error queue instead of data queue. Possible >scenario of error queue usage is receiving completions for transmission >with MSG_ZEROCOPY flag. This patch also adds new defines: 'SOL_VSOCK' >and 'VSOCK_RECVERR'. > >Signed-off-by: Arseniy Krasnov >--- > Changelog: > v1 -> v2: > * Place new defines for userspace to the existing file 'vm_sockets.h' > instead of creating new one. > v2 -> v3: > * Add comments to describe 'SOL_VSOCK' and 'VSOCK_RECVERR' in the file > 'vm_sockets.h'. > * Reorder includes in 'af_vsock.c' in alphabetical order. > v3 -> v4: > * Update comments for 'SOL_VSOCK' and 'VSOCK_RECVERR' by adding more > details. > > include/linux/socket.h | 1 + > include/uapi/linux/vm_sockets.h | 17 +++++++++++++++++ > net/vmw_vsock/af_vsock.c | 6 ++++++ > 3 files changed, 24 insertions(+) Reviewed-by: Stefano Garzarella