Message ID | 20230413-b4-vsock-dgram-v5-6-581bd37fdb26@bytedance.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp2118848vqt; Tue, 18 Jul 2023 18:10:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlFO5JMiNS6e4ZYzD0UAKhuW9tTlwoceb0hiv6C/RxwepMrJAgOxHU6INXsyZqmFPBcgznQB X-Received: by 2002:a05:6402:691:b0:51e:45b8:b0bb with SMTP id f17-20020a056402069100b0051e45b8b0bbmr1149262edy.22.1689729016765; Tue, 18 Jul 2023 18:10:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689729016; cv=none; d=google.com; s=arc-20160816; b=Yi9cyM+WrFgUZgrKjjOOAqa+FKoMvwZ38J3oPhLW4ix7TOsnd66z8T9N4C4AaZgszy rXx/WheUjxKNWLygbspZoC9SBVKvstQ5anJmAYD3Eo1hlfoFXbQaWaPVVaj8DpAjd2i3 qh2gYUrG6DYSjhcfPnrGokCi2bqDpTTGfSwb1xpyrkNPxc3AYFPmbDcTEvVd9VZPnfjC JGyM+TZtqeNw2XcExFC9ufHE5Dt6svcQ/myD5N7FoeaGSvrJLjW1RRXQiiqrcvjIXLw+ 4Qtkpt6rk9G63grwW5aRZUW1EyQGZubdihaOp5kiCq/MSkWdWsqKjSDydQvVKi0JngSr wJ6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=p5UDtnqRbXOwSk4kv7KpsqiuRSfPeujQxTt7caqoeag=; fh=jejeGpHkr9vVlEyvdVBCSLFut92eNP6vAI+O1tx9vp4=; b=zv9eUuFpjJiRUCef/w+aZDhzb+sP4iNNgj9ll5XWa3HekAYrBiB0mCRqUXfLQ8Hj9F mYM+8K0OY5IPrj0pL9fj00jWKof8b4x21elYNPBL+dgVz1Yak/akpCyoJ7Br8zYVMxyv 0pPRDCSqJLx4/Nw4T56ODznH7PTMejXKZ4W80K+ZueHZN3igSHSXgv7MOmxpbEs+vqOA 3fw+1k8LIyITquBUlnPtUXQrhCi4eGfM6rBBC11jZTIWmlZ9lEq9VHI8FtcTdGCix6ky ZSQ5irmxWovauU4Ej6AD3jtp8BA03HiCN+W0pUJCLteNTcUB4mL3vL8qwdN33Y79Kgdd SFxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=Bzc5QYph; 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=bytedance.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id by25-20020a0564021b1900b0052193eca238si2143696edb.139.2023.07.18.18.09.53; Tue, 18 Jul 2023 18:10:16 -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=@bytedance.com header.s=google header.b=Bzc5QYph; 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=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229919AbjGSAuk (ORCPT <rfc822;assdfgzxcv4@gmail.com> + 99 others); Tue, 18 Jul 2023 20:50:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229521AbjGSAui (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 18 Jul 2023 20:50:38 -0400 Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D5D519A9 for <linux-kernel@vger.kernel.org>; Tue, 18 Jul 2023 17:50:15 -0700 (PDT) Received: by mail-qk1-x734.google.com with SMTP id af79cd13be357-7680e39103bso364058685a.3 for <linux-kernel@vger.kernel.org>; Tue, 18 Jul 2023 17:50:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1689727814; x=1692319814; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=p5UDtnqRbXOwSk4kv7KpsqiuRSfPeujQxTt7caqoeag=; b=Bzc5QYphkJxBJAAVGcKxoftfnIy9ixoapstjfZaDHt+8ignmoEtHuP1QMFfV/NgdZv 3sj5ZjysfQgDx4p0HKOtFfmPSLhf8q9ZrgG0m5jUcvca0sYjsElAG49iWpsKB4o7xNlw uAQ40QIRMt+3ilnWtx70o1O4HaBVrlCrik+wNvo96xyR4+3Q4cUVkFT5sX2tg+JhlBe+ hSQ//wu9r44PASXmqG6/Xmmv+nIq7JhrBez2ZRRnULIsZkr3/pE+EpOBNqOpyyWWX28B g5owX/BThJ1OiSg+ZKlYhgtlbmLJZLHH8juDYc38OwYMTHaeoKsA4gvu2ohtJ4f634Uk w1RQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689727814; x=1692319814; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=p5UDtnqRbXOwSk4kv7KpsqiuRSfPeujQxTt7caqoeag=; b=IpUCNJqOTZUsGzedeaI/YhBYAuwSqr4o/sJ8awvGioEjsswsoODdmz1ZqxzGwDJ4+M uVczJC3oTiKuDPClHfvofQ+IymbZ2r5kVUkVp67Nw/KfJwtekujYgnP25DpC6U8UBza8 qA+RGC4R3bMVl9nkpYwN5pgXIeOQGLTpT7MFufU5GelOECyplS0dnjIqrmKhTHZeFgkJ fjKzJ1AZozIe+URZ+bwGui9fN14jsm086h0FES1lXyPVsWvMy9xmkKhcUkH7EEQjS41p zKW4E1Sn5jd91J8G26ebGKaL0G7Uj2z5qCA/b2KosfAwE/rr0eBaLiRnTfs87Z7aAU5A W75Q== X-Gm-Message-State: ABy/qLYY9+GET5nWUzm0stXR8hMhiZgbyF9BNefYTRSl8IW6tReMM66v EZ6Y0diZdVyFS9q964EuHtbr2Q== X-Received: by 2002:a05:620a:400b:b0:767:2a7e:1dbc with SMTP id h11-20020a05620a400b00b007672a7e1dbcmr1924213qko.17.1689727814453; Tue, 18 Jul 2023 17:50:14 -0700 (PDT) Received: from [172.17.0.7] ([130.44.212.112]) by smtp.gmail.com with ESMTPSA id c5-20020a05620a11a500b0076738337cd1sm968696qkk.1.2023.07.18.17.50.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jul 2023 17:50:14 -0700 (PDT) From: Bobby Eshleman <bobby.eshleman@bytedance.com> Date: Wed, 19 Jul 2023 00:50:10 +0000 Subject: [PATCH RFC net-next v5 06/14] virtio/vsock: add VIRTIO_VSOCK_TYPE_DGRAM MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230413-b4-vsock-dgram-v5-6-581bd37fdb26@bytedance.com> References: <20230413-b4-vsock-dgram-v5-0-581bd37fdb26@bytedance.com> In-Reply-To: <20230413-b4-vsock-dgram-v5-0-581bd37fdb26@bytedance.com> To: Stefan Hajnoczi <stefanha@redhat.com>, Stefano Garzarella <sgarzare@redhat.com>, "Michael S. Tsirkin" <mst@redhat.com>, Jason Wang <jasowang@redhat.com>, Xuan Zhuo <xuanzhuo@linux.alibaba.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, "K. Y. Srinivasan" <kys@microsoft.com>, Haiyang Zhang <haiyangz@microsoft.com>, Wei Liu <wei.liu@kernel.org>, Dexuan Cui <decui@microsoft.com>, Bryan Tan <bryantan@vmware.com>, Vishnu Dasa <vdasa@vmware.com>, VMware PV-Drivers Reviewers <pv-drivers@vmware.com> Cc: Dan Carpenter <dan.carpenter@linaro.org>, Simon Horman <simon.horman@corigine.com>, Krasnov Arseniy <oxffffaa@gmail.com>, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org, bpf@vger.kernel.org, Bobby Eshleman <bobby.eshleman@bytedance.com> X-Mailer: b4 0.12.2 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771809293389909317 X-GMAIL-MSGID: 1771809293389909317 |
Series |
virtio/vsock: support datagrams
|
|
Commit Message
Bobby Eshleman
July 19, 2023, 12:50 a.m. UTC
This commit adds the datagram packet type for inclusion in virtio vsock
packet headers. It is included here as a standalone commit because
multiple future but distinct commits depend on it.
Signed-off-by: Bobby Eshleman <bobby.eshleman@bytedance.com>
---
include/uapi/linux/virtio_vsock.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/uapi/linux/virtio_vsock.h b/include/uapi/linux/virtio_vsock.h index 64738838bee5..331be28b1d30 100644 --- a/include/uapi/linux/virtio_vsock.h +++ b/include/uapi/linux/virtio_vsock.h @@ -69,6 +69,7 @@ struct virtio_vsock_hdr { enum virtio_vsock_type { VIRTIO_VSOCK_TYPE_STREAM = 1, VIRTIO_VSOCK_TYPE_SEQPACKET = 2, + VIRTIO_VSOCK_TYPE_DGRAM = 3, }; enum virtio_vsock_op {