Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp2557190imi; Mon, 25 Jul 2022 01:40:31 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tjeZZ6L1/n0njkw8X9/32SYOhsBg2FWpRojQRRyv+3W6qzv2xdA8v0h4w7ab2wgwns8Jil X-Received: by 2002:aa7:c0c4:0:b0:43b:b89d:88ce with SMTP id j4-20020aa7c0c4000000b0043bb89d88cemr12095167edp.27.1658738430989; Mon, 25 Jul 2022 01:40:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658738430; cv=none; d=google.com; s=arc-20160816; b=Rmz1hCRfNMgfrbKOz7G0vKbS5uU+CobqTaCRJ2hxTuED2K53ytWGOvVcob7EIUqsQR mxKdai0hDuM9Ii1s+wl/wJOSHGDh7P/N77LgoICAQHbkcWUlLkKWnqJagGm1hmJ9c//e R24eLHxYNv8dmRdT/U5q6BtEH0QuofNEkWgovVgYey9rzcTC+h3kWTYBPLFCNHmYHtRp hAxJedngEEp+6pwcyIJ3c4deX7f4hUQh3RKEMQCR6KijuC2VxxaCX0u2lCzkXVrS5mzU ySGwDVZ/00LqYJ6LIPgE8gaO5KUtiuim+XYUCvuDCjRh6cuOTwQvcECRVa4dyvJmL7nF 1INg== 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=3yFDKShsdzLtXczy78DAfWUgL5KDQChLK4zk2QgRds0=; b=L3tHeVN12yeJE1Tc+efTwIxXWfpZdsohCxp+GHit55qYCeM6apbAbap9KrfDNveLnF GhH3Z2b1QdvMRXi1mAcNxc2t8PBrl+J5TR2+4KRE5SQsnVjJNegbe+2LPKWKhl6VZSvz Qaw0/n8kcegpPX1KTjIRN/ycX5h1ZwRdUY9lbPEvRbENFDgxDxXY9UAE2E87tI+QIvYp fTpnfTreK0PrOyA7b4slJUrlG8BXua01W9zWO4bqeD9xiQFjJ2pQs4ds8x3j5kPW/Zlk MkL4F/s3Uls7vlwAmWbr5NX8fJAC5Th6nDfw6yijBP/Gyj5JGp8BYStzgjaYe1W5ePK5 bMLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=EGu2Dbrm; 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 t12-20020a17090616cc00b00722fb2281c0si10664912ejd.417.2022.07.25.01.40.06; Mon, 25 Jul 2022 01:40:30 -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=EGu2Dbrm; 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 S232527AbiGYH5Y (ORCPT + 99 others); Mon, 25 Jul 2022 03:57:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbiGYH5W (ORCPT ); Mon, 25 Jul 2022 03:57:22 -0400 Received: from mail.sberdevices.ru (mail.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3305FD135; Mon, 25 Jul 2022 00:57:20 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mail.sberdevices.ru (Postfix) with ESMTP id 7EEF45FD0B; Mon, 25 Jul 2022 10:57:18 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1658735838; bh=3yFDKShsdzLtXczy78DAfWUgL5KDQChLK4zk2QgRds0=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=EGu2Dbrm/JzyVU9s17oiJ4dY2K+UGlqrAuSJazSarGzav5+kEnjvT9NLhiO3MAtzY B4hY3uiJuy4ewR9VYVJXcWjwWTg6AfDWEZ0g8AGlQuE/P5ZcNThMwenBSLnpt1oK7r /zV/5iPkuwnITY+xbjl5T5j21MrKqfi69r7bM33ZHZh/X2CDTOSLhfykFOs7glH47Z gH6wryAX5DRKyndQQUSkZuooBhlv4akGpTjyoCVIxRHmRxPXBHNLFFqCGQ0dYEoW4c wT7xlN4kG8QUZNIgyWvYvbffFoKMuh1FYgZjxMmzfgGupPCvE7U1yE2AieaC4kweBj ODTc/xd9LblQQ== Received: from S-MS-EXCH01.sberdevices.ru (S-MS-EXCH01.sberdevices.ru [172.16.1.4]) by mail.sberdevices.ru (Postfix) with ESMTP; Mon, 25 Jul 2022 10:57:18 +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 , "Michael S. Tsirkin" , Arseniy Krasnov , Krasnov Arseniy 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 Subject: [RFC PATCH v2 1/9] vsock: use sk_rcvlowat to set POLLIN/POLLRDNORM Thread-Topic: [RFC PATCH v2 1/9] vsock: use sk_rcvlowat to set POLLIN/POLLRDNORM Thread-Index: AQHYn/weV9iJ1kN02k+zjfwbZg+ycw== Date: Mon, 25 Jul 2022 07:56:59 +0000 Message-ID: In-Reply-To: <19e25833-5f5c-f9b9-ac0f-1945ea17638d@sberdevices.ru> 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: <8ED96AEDE2917D419B416B6B7150A4C0@sberdevices.ru> 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/07/25 03:52:00 #19956163 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 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 Qm90aCBiaXRzIGluZGljYXRlLCB0aGF0IG5leHQgZGF0YSByZWFkIGNhbGwgd29uJ3QgYmUgYmxv Y2tlZCwgYnV0IHdoZW4NCnNrX3Jjdmxvd2F0IGlzIG5vdCAxLCB0aGVzZSBiaXRzIHdpbGwgYmUg c2V0IGJ5IHBvbGwgYW55d2F5LCB0aHVzIHdoZW4NCnVzZXIgdHJpZXMgdG8gZGVxdWV1ZSBkYXRh LGl0IHdpbGwgd2FpdCB1bnRpbCBza19yY3Zsb3dhdCBieXRlcyBvZiBkYXRhDQp3aWxsIGJlIGF2 YWlsYWJsZS4NCg0KU2lnbmVkLW9mZi1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