Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1237865rwb; Thu, 18 Aug 2022 23:09:47 -0700 (PDT) X-Google-Smtp-Source: AA6agR7e+uBtnlwwEVqTFcsG4a1GiEYYelw12D6JrtIL4Ly20H+J8/XnAMJL7W6DmJZHNh8CduSL X-Received: by 2002:a17:907:6e12:b0:730:bc12:82e3 with SMTP id sd18-20020a1709076e1200b00730bc1282e3mr4038464ejc.36.1660889387098; Thu, 18 Aug 2022 23:09:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660889387; cv=none; d=google.com; s=arc-20160816; b=a8m7DS1tw0QE24BhQSAooECZykdxDizxFnxicyaUX8pRV++U92Fx+Cuewk/+3G6W3t SKTDl8AEfgnVPHD1c18jq6Fcb7nO0/QlvAYSu119TyEDzO8Q7Z1XOe9bt3ICj9GIQrXA IR8qsGUROQv3qDOogu7JEHiCEIM3Yh2Lk9QerFws2aN17HoJ0rUs44JPK9lg0xUiwxtE humigde9RAFfsSmqaIpsTr4WE//1ePL0e8c/yuXnm9aNo301CtEHMQMyp7hThXPtSYq1 pOuqfWjpl6SdbYikeCLTwQPs7maVZMFvD3+JcztfNmfyGK9rhHYdcXsFmSp4/VkjIG+I pi6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=h7+HUP4tb8Cb9jo6wtjfQEUxhO6Pc+MKHncReNdMGME=; b=WysvFTyn2HHgytF3tfGoSdkoO0+GiirBVAMrQSY8y67umh2SlqQiRqGQg1ZGJ1Av9o aX9B4PBraQVk21YydKc2Hg0IZ737iUlSAPaGjYfHmzQSXjN1amwrUWYugHrA3FlKS1rv xJqw8Fwvx+dst16grVIizeIqZMkf87AR9N/FxlUUMv1FKYddooUInUms33l4dNJwckni yY5zHvi2OaEnIaXaoEj08JQ4EF76Cq4xioI0OkiEBBXyoF6XW41jSH183iYdcNwknvwu VYeJRkh/REd3Okp1xe1phUn+xX1QO72VYaNd3nkoOkvaw8qx97mgT/0vhxadEkfjVEKE gZcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=hn2gNuz6; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d8-20020a1709061f4800b00730a3b5af1fsi2424120ejk.338.2022.08.18.23.09.20; Thu, 18 Aug 2022 23:09:47 -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=@sberdevices.ru header.s=mail header.b=hn2gNuz6; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345958AbiHSFoY (ORCPT + 99 others); Fri, 19 Aug 2022 01:44:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239690AbiHSFoW (ORCPT ); Fri, 19 Aug 2022 01:44:22 -0400 Received: from mail.sberdevices.ru (mail.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C5F8AF4AB; Thu, 18 Aug 2022 22:44:19 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mail.sberdevices.ru (Postfix) with ESMTP id 0BFC15FD07; Fri, 19 Aug 2022 08:44:17 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1660887857; bh=h7+HUP4tb8Cb9jo6wtjfQEUxhO6Pc+MKHncReNdMGME=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=hn2gNuz65CdxqlCUH3LsKVCMsiC7DIw25Ab3F+xYmtafaulSzB1IlazOogRHO7D1X 3L4GXm8B6Xz0aRx9ObkTkHiURFpnooEO1W8w0We35Q5zBtUHXqa8koSxF+nXAkqxUF 659Bi4Ms0Fsa/zqHEEtxXYZIhaqhEv0wCikhuOzs+rkG8W7VPo19JmK+8d/99b/v3X 8T9go9O77Q5BnkIgcPcvmishuxMYPYdizOlv29/QBfuhTniBhPrnOMwixboJMzgYk2 YtORgEGp7MP30s1vIMbrj7YFn3cB7LXA4h/DCdb/KJtC+2DaDyH28bp0R5/KKkD7NB 88lv4lknSJu+Q== Received: from S-MS-EXCH01.sberdevices.ru (S-MS-EXCH01.sberdevices.ru [172.16.1.4]) by mail.sberdevices.ru (Postfix) with ESMTP; Fri, 19 Aug 2022 08:44:16 +0300 (MSK) From: Arseniy Krasnov To: Stefano Garzarella , "David S. Miller" , "edumazet@google.com" , "Jakub Kicinski" , Paolo Abeni , "kys@microsoft.com" , "haiyangz@microsoft.com" , "sthemmin@microsoft.com" , "wei.liu@kernel.org" , Dexuan Cui , Stefan Hajnoczi , Bryan Tan , Vishnu Dasa , Krasnov Arseniy , "Michael S. Tsirkin" CC: "virtualization@lists.linux-foundation.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , "kvm@vger.kernel.org" , kernel , VMware PV-Drivers Reviewers Subject: [PATCH net-next v4 9/9] vsock_test: POLLIN + SO_RCVLOWAT test Thread-Topic: [PATCH net-next v4 9/9] vsock_test: POLLIN + SO_RCVLOWAT test Thread-Index: AQHYs46oe5LFMy4RrEyUi4DF7J/0fw== Date: Fri, 19 Aug 2022 05:43:50 +0000 Message-ID: <5dac33eb-29d0-c4bc-a110-8519c8146d30@sberdevices.ru> In-Reply-To: Accept-Language: en-US, ru-RU Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.16.1.12] Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-KSMG-Rule-ID: 4 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Status: not scanned, disabled by settings X-KSMG-AntiSpam-Interceptor-Info: not scanned X-KSMG-AntiPhishing: not scanned, disabled by settings X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 1.1.2.30, bases: 2022/08/19 00:26:00 #20118704 X-KSMG-AntiVirus-Status: Clean, skipped X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 VGhpcyBhZGRzIHRlc3QgdG8gY2hlY2ssIHRoYXQgd2hlbiBwb2xsKCkgcmV0dXJucyBQT0xMSU4s IFBPTExSRE5PUk0gYml0cywNCm5leHQgcmVhZCBjYWxsIHdvbid0IGJsb2NrLg0KDQpTaWduZWQt b2ZmLWJ5OiBBcnNlbml5IEtyYXNub3YgPEFWS3Jhc25vdkBzYmVyZGV2aWNlcy5ydT4NClJldmll d2VkLWJ5OiBTdGVmYW5vIEdhcnphcmVsbGEgPHNnYXJ6YXJlQHJlZGhhdC5jb20+DQotLS0NCiB0 b29scy90ZXN0aW5nL3Zzb2NrL3Zzb2NrX3Rlc3QuYyB8IDEwOCArKysrKysrK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