Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp2548296imi; Mon, 25 Jul 2022 01:19:40 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tjdL9Z9Bt62JO4grqeA2L1xP1sFfQLM+ypRl+pKo+k6u+M3mmNnlLbBv24/9MlccqXVD5Z X-Received: by 2002:a17:907:75d3:b0:72b:48de:e540 with SMTP id jl19-20020a17090775d300b0072b48dee540mr9472573ejc.547.1658737180640; Mon, 25 Jul 2022 01:19:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658737180; cv=none; d=google.com; s=arc-20160816; b=BJPeMWUxCUiCFaherarYqioP8qq1HWHZKJ+PtFr1sdXEts2HHmWAb1Cxxw3TXG+iG9 5+V8KfL7/0o6CQyjZK7HgwyqcZE8PRatiTJ5MeVSfFzHqyRO1TAIHWHZXdMgHOeLFUqR oP/KXurF26l3I0ye+VgaZdlnkCoRCyx9OYMnCWRWLIjaeuVCnaw9n9Nn3LTSHpaDf4OH xNvNPmEA91Rob/FM6nwUUIuiW+vrO3cRrN990suxgUwQ/DqcF6l6LaGJ7agryTQEd/5Q c4ZjPu0miHUnnQZdaIYekr6SgiAkLbnlFhPtuG7QhF8rFORCt0JeDW+4k46LobUKF0pJ zGRA== 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=pCw9/kVOeCE/CCajlNyM8QpfiZna4eRW1EqZxJu2eJg=; b=QW6YuUL+WNyVqUisGCEx5Ad+q4dA6U9Rtv+n6GeUs7dHwdxZVJnwW+JIQd/ofXri1D LwFO7IrQZXuL2VxgjK9tkOdZLNMDkY7BuSBmajf2K9YCu6J+ZVvPE80ycInxwe/fL/LP DoieMxql7rySWHpLuM2cLPV5AAUwEfy5Nx7Eee7aw+S6gL6Kd45BCOG5gEALaO3dKurF dQD0iy3W44p084mB7wTW9CglA1JU6RsAmJ6PubsAe2tp5y4hruhRWBESAmQGBbURBOkr +A/O+Ne24tWr7D4oymtWAfeBTa41ezIw2QIRU9AuQFJESc43qMaYKJGDN8zgtSPfiXFC +/Kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=NipdLVEY; 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 e5-20020a17090658c500b0072b2e31d066si14315954ejs.642.2022.07.25.01.19.15; Mon, 25 Jul 2022 01:19: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=@sberdevices.ru header.s=mail header.b=NipdLVEY; 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 S233455AbiGYIFz (ORCPT + 99 others); Mon, 25 Jul 2022 04:05:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232399AbiGYIFv (ORCPT ); Mon, 25 Jul 2022 04:05:51 -0400 Received: from mail.sberdevices.ru (mail.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 292CA13CD8; Mon, 25 Jul 2022 01:05:50 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mail.sberdevices.ru (Postfix) with ESMTP id 47AE05FD0B; Mon, 25 Jul 2022 11:05:48 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1658736348; bh=pCw9/kVOeCE/CCajlNyM8QpfiZna4eRW1EqZxJu2eJg=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=NipdLVEYo9awZ8x/aNxrBaWkKUZJULScNVDO/L5BjJu9VPXvNLJB5etTtlKSRTbRN QuHINHSY9o2W8nKRwPGrA7KXTUR5psVb0bg4D+PzLPmNqxhvd3FuiU7/FBdg+k221p O2MMfgjHndPhBKb1R/3pS/6XF5TWqpsaeBUztix0L0dSzx5YpbmjwnIH5+eY8kVvM6 kzoMZ+LK/uTBpJnaMi11fo8I36+AxR9KeaSRIS3xwqv5gfLKE4DPqfHKvOi76a8ZIF xDghmsCDdnLue7SaicVx1XVoQdTcbkBG6QwWXb6+MahRZ9l/37O7KRsOojWrekhhLO a/DAmCRqqVnfw== 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 11:05:47 +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 , Arseniy Krasnov , Krasnov Arseniy CC: "virtualization@lists.linux-foundation.org" , "linux-kernel@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , "netdev@vger.kernel.org" , "kvm@vger.kernel.org" , kernel Subject: [RFC PATCH v2 5/9] vsock: SO_RCVLOWAT transport set callback Thread-Topic: [RFC PATCH v2 5/9] vsock: SO_RCVLOWAT transport set callback Thread-Index: AQHYn/1NoPOM/Um+pUC5XxeDqd2x/w== Date: Mon, 25 Jul 2022 08:05:28 +0000 Message-ID: <8baa2e3a-af6b-c0fe-9bfb-7cf89506474a@sberdevices.ru> 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: <40D3115A2D73A340AB96E70176059B63@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 VGhpcyBhZGRzIHRyYW5zcG9ydCBzcGVjaWZpYyBjYWxsYmFjayBmb3IgU09fUkNWTE9XQVQsIGJl Y2F1c2UgaW4gc29tZQ0KdHJhbnNwb3J0cyBpdCBtYXkgYmUgZGlmZmljdWx0IHRvIGtub3cgY3Vy cmVudCBhdmFpbGFibGUgbnVtYmVyIG9mIGJ5dGVzDQpyZWFkeSB0byByZWFkLiBUaHVzLCB3aGVu IFNPX1JDVkxPV0FUIGlzIHNldCwgdHJhbnNwb3J0IG1heSByZWplY3QgaXQuDQoNClNpZ25lZC1v ZmYtYnk6IEFyc2VuaXkgS3Jhc25vdiA8QVZLcmFzbm92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