Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1208443rwb; Sun, 6 Nov 2022 21:33:59 -0800 (PST) X-Google-Smtp-Source: AMsMyM5XY9BlG7DsqzgHyHc7rnSjW5havK1/HIv04/SMuIH+4s41d4DvCFfFTzoMDh0N7MsoeAGm X-Received: by 2002:a05:6a00:2187:b0:56d:4d02:5776 with SMTP id h7-20020a056a00218700b0056d4d025776mr42826556pfi.4.1667799239423; Sun, 06 Nov 2022 21:33:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667799239; cv=none; d=google.com; s=arc-20160816; b=SDj3I8rmhBv7BqBGUWMBYciS7X+sE2IZnMthAAsklyZrdKBxjtXkc2VFeX4Lvl+Rbt GLtU9zeVJy0Q5DOarrCAZmYtDEtp1ofASTawmLHdwYaZepwVUpwYdXI6cOehgVSqrkSl VaAb9yLe4cEbaqm+vktj2hIts7Wrf26uFlBXqyuq4oNAuZ81MYj6sUUprF/NkfqeHD76 4F6GZGcEFAYrylttAsltV/8c9NWPzGB9JAXLVzsiTxetrR6FpMEuCMnyacJIyPHYB4qC YeJql4CiWMsu+czinuO2JWgadF2t0JTq/997mi1j+WEQsxy5S1llnf14Wy16rT6Pf9K9 fJTA== 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:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=N/FJrbNYXYSHo6GVXdgb2GwN2aXLggaKpUpoNvMndF8=; b=mftm/F3zA1MOj954o6/pLTzjQaZda+Ti4lyBa3Nfc80pcuf2GjJ6jvP43F6uT7ttso Vtcv2LmJRFo3MIrYrOZmaWJ6HxM71ZEAJDkEOo3nYzjA1t4RaEMRXe8yLX68vHkHknZU O0Ip/w/qAVbpUJwWN57oW3Ubrm1+rZPPXlH7cCh0b0gRtZgpeSfF0Cl25OzLmU7WCuED ivfj4BMNia63JOtH6kQEQhxaDU1P+RHC7t414z06RuXovS3CJJSFTkXiZy3LssHnPghm Ax3bnn6/x+exaoShiupn/mwU6aq2ITmJGLe7OBHyMs5YvU/Mt1asBBJ62byBzMPSI3hr GqGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=AI6aNfQm; 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 q6-20020a631f46000000b00437ec09f591si7603449pgm.135.2022.11.06.21.33.47; Sun, 06 Nov 2022 21:33:59 -0800 (PST) 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=AI6aNfQm; 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 S230265AbiKGFYc (ORCPT + 96 others); Mon, 7 Nov 2022 00:24:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229705AbiKGFYb (ORCPT ); Mon, 7 Nov 2022 00:24:31 -0500 Received: from mx.sberdevices.ru (mx.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21AFADED9; Sun, 6 Nov 2022 21:24:27 -0800 (PST) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mx.sberdevices.ru (Postfix) with ESMTP id 267C45FD03; Mon, 7 Nov 2022 08:24:25 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1667798665; bh=N/FJrbNYXYSHo6GVXdgb2GwN2aXLggaKpUpoNvMndF8=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=AI6aNfQmzkvbMKP5een6s3GFl/6zamWOUECSUIevf2b42d+8O7rWzSD/XExHclZUT t5rsmQCuWdAUnpbiZwhOpwJf67ttTYfmKrIVsc+gT1s7nxt/lF7kvoo6hT556DBd17 8+xizvcXp3TJ59HSEZAaa5f0iMFxjjrcyboMM5qnAolSnjzUmwIg+RXOAUCuG75hbS kbNavo7VmHbYg4vjabqhoLGw5f8XcKA6fHX17WFy6bbk5NtFYmyHAgffuJgBP2UJWo 8zwqUJ4+aLgWhlttio9CSPP8KMTqGydWPp+a+dZL+3aD+AcTlEtBYVEvw0sVM1oZ1S R4yWrf/7TcJ7A== Received: from S-MS-EXCH01.sberdevices.ru (S-MS-EXCH01.sberdevices.ru [172.16.1.4]) by mx.sberdevices.ru (Postfix) with ESMTP; Mon, 7 Nov 2022 08:24:21 +0300 (MSK) From: Arseniy Krasnov To: Christophe JAILLET , Stefano Garzarella , Stefan Hajnoczi , "Michael S. Tsirkin" , Jason Wang , "David S. Miller" , "edumazet@google.com" , Jakub Kicinski , Paolo Abeni , "Krasnov Arseniy" CC: "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" , "virtualization@lists.linux-foundation.org" , "netdev@vger.kernel.org" , kernel Subject: Re: [RFC PATCH v3 01/11] virtio/vsock: rework packet allocation logic Thread-Topic: [RFC PATCH v3 01/11] virtio/vsock: rework packet allocation logic Thread-Index: AQHY8hcBEbxDmf4aG021vuOLUMusCa4yG6IAgACgBwA= Date: Mon, 7 Nov 2022 05:23:47 +0000 Message-ID: <278ee0cc-83ae-5c26-7718-d0472841e049@sberdevices.ru> References: <3c6de80a-8fc1-0c63-6d2d-3eee294fe0a7@wanadoo.fr> In-Reply-To: <3c6de80a-8fc1-0c63-6d2d-3eee294fe0a7@wanadoo.fr> 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: <08141BE9C325D14E9FD1A056E8394ECB@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/11/06 22:06:00 #20575944 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 T24gMDYuMTEuMjAyMiAyMjo1MCwgQ2hyaXN0b3BoZSBKQUlMTEVUIHdyb3RlOg0KPiBMZSAwNi8x MS8yMDIyIMOgIDIwOjM2LCBBcnNlbml5IEtyYXNub3YgYSDDqWNyaXTCoDoNCj4+IFRvIHN1cHBv cnQgemVyb2NvcHkgcmVjZWl2ZSwgcGFja2V0J3MgYnVmZmVyIGFsbG9jYXRpb24gaXMgY2hhbmdl ZDogZm9yDQo+PiBidWZmZXJzIHdoaWNoIGNvdWxkIGJlIG1hcHBlZCB0byB1c2VyJ3Mgdm1hIHdl IGNhbid0IHVzZSAna21hbGxvYygpJyhhcw0KPj4ga2VybmVsIHJlc3RyaWN0cyB0byB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