Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7549999rwp; Tue, 18 Jul 2023 17:52:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlG67td/Q+Gg45cjLiiEEAy7xCH5P11fLwcu3Xcs4aVN/RHVJDcbHV3lNOeuDtI1PFPOvDKt X-Received: by 2002:a05:6a21:32a1:b0:127:aaf:59a6 with SMTP id yt33-20020a056a2132a100b001270aaf59a6mr1049996pzb.36.1689727977437; Tue, 18 Jul 2023 17:52:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689727977; cv=none; d=google.com; s=arc-20160816; b=vEbE6zxTLvrqo+X7PnUtPL2gh5QgNCx9w2D4qr8G4272femvMJ+o8JZF6GDdztDlAP Yx1+kw6oZGntooFAzTcG3JLWk9bdQ50dqKNX57Ek0YD76GQVKevEg/T0m167qoE4qH7g rps8fmi7za8tQhIEgHtnmbRgDt/73r/+KzmKDPHYCRZoDNDEqpKjgD2me/X7l0fDN78k nfIQnhHJoYJe1ckirgV7nq/sbTQr6EBGzttAs7OyNIrnkPWAnsWohA4SqvOTzdyAK7sa xuQdPn/l0JHKIIJVjTDkMCkHDfS679yQs29TonDx0MyabMJDuWnqCHWswlykCBPZ+MbZ eYgA== 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=lELx1Jor3ryyghgQ+HYk7Hk999TnyRY5ELpyAOdCAo8=; fh=mG5Sox+GcIzYFDJZVrRRBLlD2ICT0t2fGmdMMv0dhmY=; b=Wd5JBi0DUT+BEBKsP6w7Lw+O79bE5P7rUokH+6vLwZr2mcag4ZbNCk3/Perf2NNF4z huV4XxOOh9HA3E4eLTlsNlcFpH4dCsiwn8b8D6c0gk1GT6QjxmS1YjmmQfCBbJ2Gk353 OhxPGIvQLvvZ8fMzfb0OpojKgNPPdXUAHU89Y1xjUMo+SzbiAbpy/UaGzFVhkelxvGwK EmoG8DcOzeiegVfL6drM4sd6bVVyu0V9zvqkswcpsAXt8OQqDrAivz+vCL9bcyvSy4CS pSYxhxdlmDPblqr76C73sam9krlAa6SGer6SWOtehuY1DqYeY2VQytlekTRxzP3aaKzI 4wIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=kh51wAOb; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fb37-20020a056a002da500b00682c8951d45si2322510pfb.271.2023.07.18.17.52.45; Tue, 18 Jul 2023 17:52:57 -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=kh51wAOb; 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 S229788AbjGSAvZ (ORCPT + 99 others); Tue, 18 Jul 2023 20:51:25 -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 S229989AbjGSAvC (ORCPT ); Tue, 18 Jul 2023 20:51:02 -0400 Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9393198E for ; Tue, 18 Jul 2023 17:50:18 -0700 (PDT) Received: by mail-qk1-x72b.google.com with SMTP id af79cd13be357-763a2e39b88so624562585a.1 for ; Tue, 18 Jul 2023 17:50:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1689727818; x=1692319818; 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=lELx1Jor3ryyghgQ+HYk7Hk999TnyRY5ELpyAOdCAo8=; b=kh51wAObPhNEmOAF6xUu3EksFG8Jzcd7WXjvKK6sY85ydx0oCAjbKfJr7SfAn8ZIn3 OGDI5Sza40VPT51V90ZS6M8PG8voBghdWBcI5NkF1Ln/E2NjdGFfN7ylSyhZB3H/2qSs Eux2cQM7uyHorES3YiVvkdVicwQZiumEj2S/+chWRKgcpZyK9fkMR/CLDlpe+s84ardD AKBPhERrtDXd34zmfEnd3tYdQcRIeQYrqvfg1/Y0DzpVit92JSl6lqih2sFM3FuYrzAZ fDskheDYTg3t3x7D1pKzM5RwsL+n/HiUxZZYtcVnsMAhT0q+Xp+oLec11WIcU0wG0jf8 03Hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689727818; x=1692319818; 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=lELx1Jor3ryyghgQ+HYk7Hk999TnyRY5ELpyAOdCAo8=; b=BirYATpAIsNkQ5CIYOTHtfv8pWB3SLZJt7fSlv663YP/QMeUvJCjKCyk6sTuwxGwVI 5kU4/8pl6qsXF8myK1wonmrQRyNB/dXZD4hFi8WcPwGbKPMpwLJWnLNeW0HBF5DrmKTk FAR7jW3I6kWXTUDt5u/HXbyrwaOSoOHHdmc47O7rK8700bMqcLmpp5/pOa3KxjwCxpZ1 LEWGFuYI8F+mN+6frAJN5HgGQsbKoa0Sf1CjbQe0x2CD+qNL8jRjq2JhOodG5OTu/Pbr 7NWkZ45D9dy0HgdSPn8zFnzQaplMiz93q3Or8QHD/MI92dIh0C1GH6aNTQJ4lO1U0oH1 vXjQ== X-Gm-Message-State: ABy/qLb5T9bvlQTWrjOCny4g5YugNmOB1INc5obMSW9KxmECyd/UtOPM jPYzv42/pQ4wViFlhLaM1oW10w== X-Received: by 2002:a05:620a:8c13:b0:765:9e6b:139e with SMTP id qz19-20020a05620a8c1300b007659e6b139emr1162065qkn.16.1689727817783; Tue, 18 Jul 2023 17:50:17 -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.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jul 2023 17:50:17 -0700 (PDT) From: Bobby Eshleman Date: Wed, 19 Jul 2023 00:50:14 +0000 Subject: [PATCH RFC net-next v5 10/14] virtio/vsock: add VIRTIO_VSOCK_F_DGRAM feature bit MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230413-b4-vsock-dgram-v5-10-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 , 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 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 331be28b1d30..27b4b2b8bf13 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; -- 2.30.2