Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp715823rwb; Sun, 6 Nov 2022 12:35:00 -0800 (PST) X-Google-Smtp-Source: AMsMyM5xem+cD2BqbimnPhfTltsm7zhfPRaeEBS3qfq3ozLo7b4wgnJ/gB1CD//gsxr4gpbLZzjQ X-Received: by 2002:a17:907:a46:b0:782:1c1c:8141 with SMTP id be6-20020a1709070a4600b007821c1c8141mr45770221ejc.549.1667766900316; Sun, 06 Nov 2022 12:35:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667766900; cv=none; d=google.com; s=arc-20160816; b=GcaDINc89tKeFyNfZH4gEytcKV+pWiddnKTfqCEwhtPRIXrU5CZepBQFYBm5pkupi5 Q8QHnV4bdiKKYOjJTv5WxPGj303wjxhENIkvOoDeZxYP9QgfWeqbFi6OB1nXq7s8Zblq GAnvNRm3OcpHVsWpC8rLy525+acEwsKnhmQ8F+G1C7tjbgsCMpJJWB3xBsBYCFJzHc7z yzMRaxUeKbNu7NxrdA5RL3kir5O7kWM4w3n7EjpG8o8W1wfa6P2D+hutxMYUI9Fo5xY5 xLFe6nqzcOzI3Aifqa9avDb22EDdRZD5Rp/emSG5pt0dSaceSOeuPtZ9dGjuPP9mBvPf Y8NA== 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=EEoKcv2eN2h4TIogPlImzmkvyAMOSyDfOwiRdxm5/Uc=; b=YLjD0N7l28b3+Zi0kvEOUUJIJPamxCCT9Dfbj319N4mkgGygTs8fgIU1huMcgcznLP ExSR8g7XBsIJ7FK87MBKxLUCsji3LqI6iyC+2KB3AF9eB8nICUdt1/NsMiF5tFYm8sCy ODpsGGOmLNQckDh7TwQJJnhAWexcYM/bccGlnJRSYzMNa1jzoke9kOI7WoNn2DkDydRb Q3wZFVkPuDd7sHjvNt3H1SEGcnGsIehIF5rYcB0j8+vwc0p0Qe4u9QpQIS19/p9Tk33k vm8Gqz6wGQvqbNSs6gka9QJdxF/D6BMHNFDsdG51aeyGptobEThlQCAwouxDAIMgTK7N uw3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=a5pOFkdn; 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 g18-20020a1709065d1200b007836227b96fsi7640889ejt.888.2022.11.06.12.34.37; Sun, 06 Nov 2022 12:35:00 -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=a5pOFkdn; 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 S230142AbiKFTii (ORCPT + 95 others); Sun, 6 Nov 2022 14:38:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229947AbiKFTig (ORCPT ); Sun, 6 Nov 2022 14:38:36 -0500 Received: from mx.sberdevices.ru (mx.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC5F52DC0; Sun, 6 Nov 2022 11:38:34 -0800 (PST) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mx.sberdevices.ru (Postfix) with ESMTP id 2A8055FD04; Sun, 6 Nov 2022 22:38:33 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1667763513; bh=EEoKcv2eN2h4TIogPlImzmkvyAMOSyDfOwiRdxm5/Uc=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=a5pOFkdns/nGHJF2r6nW/22qh5m7oJXUahsvuEBQLu/LxnAIvk1vOItoJewBTKi+M tMAr4D7LOi1HkHOR81DTcrw0U4KexZtPgLBlmM+V1VJj9ZmoFL78xFDQcRKSBQiiMH hGbm53187KsXpDmUsh9JXd9Cx1kZc84y+lXtGjhzlqiM3VLdxnwZIqXt3YR3C8g4Bu HIWDpl75SJ2tN7KJICVcy37rvNnFLNj/EubHp+TQrvME5ZzwvCdp/nLJ1Dp8a1trWt Rd4uIl4wQJVaCJjtOqFVkQ4YXeBLfrjxsK/mW0x3TmhsOXKNRYRnzCOtxVKN2gKh4H qtsK72AbxY27w== Received: from S-MS-EXCH01.sberdevices.ru (S-MS-EXCH01.sberdevices.ru [172.16.1.4]) by mx.sberdevices.ru (Postfix) with ESMTP; Sun, 6 Nov 2022 22:38:32 +0300 (MSK) From: Arseniy Krasnov To: 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: [RFC PATCH v3 02/11] virtio/vsock: update, 'virtio_transport_recv_pkt()' Thread-Topic: [RFC PATCH v3 02/11] virtio/vsock: update, 'virtio_transport_recv_pkt()' Thread-Index: AQHY8hdI/Cz9wqLJ60mqLRsUlqPepQ== Date: Sun, 6 Nov 2022 19:38:01 +0000 Message-ID: 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: <271160C92372DC4C8A0D7E0DB977117E@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 12:52:00 #20573807 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 UGFzcyBkZXN0aW5hdGlvbiBzb2NrZXQgdG8gJ3ZpcnRpb190cmFuc3BvcnRfcmVjdl9wa3QoKScu IFRoaXMgaXMNCm5lZWRlZCwgYmVjYXVzZSBjYWxsZXIgbWF5IG5lZWQgc29ja2V0IHN0cnVjdHVy ZSwgdGh1cyB0byBhdm9pZA0Kc29ja2V0IGV4dHJhIGxvb2t1cCBpbiBjb25uZWN0L2JpbmQgbGlz dHMsIHNvY2tldCBpcyBwYXNzZWQgYXMNCnBhcmFtZXRlcihpZiBpdCBpcyBOVUxMLCB0aGVuIGxv b2t1cCBpcyBwZXJmb3JtZWQgaW4gdGhlIHNhbWUgd2F5IGFzDQpiZWZvcmUpLg0KDQpTaWduZWQt b2ZmLWJ5OiBBcnNlbml5IEtyYXNub3YgPEFWS3Jhc25vdkBzYmVyZGV2aWNlcy5ydT4NCi0tLQ0K IGRyaXZlcnMvdmhvc3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