From patchwork Sat Jun 10 00:58:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bobby Eshleman X-Patchwork-Id: 105868 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1288024vqr; Fri, 9 Jun 2023 18:21:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6zZbJveNKp21iDzv1+ZQDKCiQWG0OoLehVmLfNdE/Hc5c9lYl0CxfI8KNsUEjpX5XMiGqr X-Received: by 2002:a17:902:c194:b0:1b0:5a41:db40 with SMTP id d20-20020a170902c19400b001b05a41db40mr454180pld.50.1686360090563; Fri, 09 Jun 2023 18:21:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686360090; cv=none; d=google.com; s=arc-20160816; b=iOTEx3LBeyNXATIZuAnCr0c4v2FyQquKZJbQwvjlgAmsbN+TcCmef3gef8Ohp/2w5x g00owVGDGtW1luNwxQCDivYT46/LKYQJ6yBaELKCMONb5jRKpY3VuSiQ8frt7Si8iWVK 8Lae+tY/srZZqWzkX0PsCPCKwduZvoiBontqNxthvipF0bq2RCtLI5kXvXtUBJaz7s5f NjJlGsLgkk8EZHzPGoO2GTu5BrEqTJdFmlw9SJuG3c6ISwCjy456GYe/pdiviQ3K+tLH BV0Rxdzdbu0PhlWmzSy9DaD06fWendx08+E4QRhujLu0n9n/zf8tvtpI9vUPDj5wLuB3 37Yw== 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=DFrleghhHqJGwyApjTc8QCRKulATYWQc6gIOZoAbxyw=; b=GM13I3h4aCbfL57OclSz4EDFnIMw3YNQvHgXX8oLboFGQdWvkplKZsRxT9Liicrdh7 /RNJ5/xhlq3FiXkSwUHuhfMUbv9+cjOKItc9XtwuHvE+PT6amtOQ51CRwlD7tCCSZyxA 4dE1cbVnnYQMAjd42Li+qQJYIzfJ99fU8RIU10rOzp3r/l7HIoGoyQhcSZZ4kWaHmITL 3/pQvNpjPKFwb9vIcdzsvy62ZQt1Lx0aQkXY0pr5g8q8FIpSuOlyUR7NtLaWyixMnXna 6pPBsOVmeMp0036HDK+a2Gop1VIGdmKLi3rIe/n28mBG6ex+jRVn0PqcEp1UKkqgffnn h9vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=ksml6xPt; 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 z18-20020a170903019200b001ab089f7329si75190plg.73.2023.06.09.18.21.17; Fri, 09 Jun 2023 18:21: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=@bytedance.com header.s=google header.b=ksml6xPt; 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 S233520AbjFJBAK (ORCPT + 99 others); Fri, 9 Jun 2023 21:00:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229985AbjFJA7h (ORCPT ); Fri, 9 Jun 2023 20:59:37 -0400 Received: from mail-qv1-xf2a.google.com (mail-qv1-xf2a.google.com [IPv6:2607:f8b0:4864:20::f2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEA6E30EC for ; Fri, 9 Jun 2023 17:58:49 -0700 (PDT) Received: by mail-qv1-xf2a.google.com with SMTP id 6a1803df08f44-62606e67c0dso18097716d6.2 for ; Fri, 09 Jun 2023 17:58:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1686358729; x=1688950729; 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=DFrleghhHqJGwyApjTc8QCRKulATYWQc6gIOZoAbxyw=; b=ksml6xPtDkxvZbOyeBnygyfCAoLKD9q0OoR5ThMAuqNWqOyORqD7ip9kezP4rUQ1pn cA3456UR+nvIFDtB4hQkAr9+dKLyOoB0Y8uha3LGNU+M+xhPkSTa7bIVvcuZnFwYP2GC ZeEHzPd5W/3KKUl1LXXn+R864cg8cuPoU6ZDfrh/NKSNdEOSPjKHYDVyE/yjCGrqIXdt 7HK2d+ygZZUKxpNeMasEJZ/ytDuYXAYFMacasr+ggsr8KojjvAWg1zXjYgoOPbiETiNr JtnJfhnbIucaihsxy/lQGs/DMMKT+Q9ovj9LdzJEIqHug2Ab3Rtgf2TouE1snzEnh4xG IFqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686358729; x=1688950729; 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=DFrleghhHqJGwyApjTc8QCRKulATYWQc6gIOZoAbxyw=; b=cr7TKwuIEwpLrSrqkZSD/NfIY/KhaIJqKa4a/lEOwnHFAzMd2ks7d8ASnh0FIiAVfS CagWQNmDpEg7OTV+C88hYqhquG+BCl4KH7hCaav8duzTr0LlzD9Gxa0sqxTv5D7cqx6s WxqGPb0c0UATXi38W98nJkfV1UVg4B0M0yGBc4Tts9/07QzZL0e5C/Q5wKW3Gp+q0+ub IptsvFN9eODKL0ZDPzWBnyYefyWal5JF6a7SrOlrJOZ/twJ/8Ck9Mw8gF/4pY7RYMjOw g0qjr9EPK1qjj4C/0SiHMjzARUYJ+t3H2esmoL+4rzzazDePYfN9YIApH0FkyMHS74of MNcA== X-Gm-Message-State: AC+VfDyoH53z0WqcppzT+rjgkuMyQNUS8qeaTJ6uorGbB90fA4Sck4j4 1CJL8PICLRj7vyqeJLGrK8Vltg== X-Received: by 2002:a05:6214:e87:b0:626:2b44:40c with SMTP id hf7-20020a0562140e8700b006262b44040cmr3491456qvb.59.1686358729039; Fri, 09 Jun 2023 17:58:49 -0700 (PDT) Received: from [172.17.0.4] ([130.44.212.126]) by smtp.gmail.com with ESMTPSA id x17-20020a0ce251000000b00606750abaf9sm1504075qvl.136.2023.06.09.17.58.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jun 2023 17:58:48 -0700 (PDT) From: Bobby Eshleman Date: Sat, 10 Jun 2023 00:58:32 +0000 Subject: [PATCH RFC net-next v4 5/8] virtio/vsock: add VIRTIO_VSOCK_F_DGRAM feature bit MIME-Version: 1.0 Message-Id: <20230413-b4-vsock-dgram-v4-5-0cebbb2ae899@bytedance.com> References: <20230413-b4-vsock-dgram-v4-0-0cebbb2ae899@bytedance.com> In-Reply-To: <20230413-b4-vsock-dgram-v4-0-0cebbb2ae899@bytedance.com> To: Stefan Hajnoczi , Stefano Garzarella , "Michael S. Tsirkin" , Jason Wang , Xuan Zhuo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Bryan Tan , Vishnu Dasa , VMware PV-Drivers Reviewers Cc: Dan Carpenter , Simon Horman , Krasnov Arseniy , 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 , Jiang Wang 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768276718045403267?= X-GMAIL-MSGID: =?utf-8?q?1768276718045403267?= This commit adds a feature bit for virtio vsock to support datagrams. Signed-off-by: Jiang Wang Signed-off-by: Bobby Eshleman --- 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..9c25f267bbc0 100644 --- a/include/uapi/linux/virtio_vsock.h +++ b/include/uapi/linux/virtio_vsock.h @@ -40,6 +40,7 @@ /* The feature bitmap for virtio vsock */ #define VIRTIO_VSOCK_F_SEQPACKET 1 /* SOCK_SEQPACKET supported */ +#define VIRTIO_VSOCK_F_DGRAM 3 /* SOCK_DGRAM supported */ struct virtio_vsock_config { __le64 guest_cid;