Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp302110rwr; Wed, 19 Apr 2023 06:48:17 -0700 (PDT) X-Google-Smtp-Source: AKy350Z+sfYke5cA8VyiNLN2IN+6JIWIEO6Pytto2uXpIsUeZ96+ioXrljIfI9KXsnAv87qstAND X-Received: by 2002:a05:6a20:914d:b0:d8:fd3b:f1ba with SMTP id x13-20020a056a20914d00b000d8fd3bf1bamr4659767pzc.3.1681912097116; Wed, 19 Apr 2023 06:48:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681912097; cv=none; d=google.com; s=arc-20160816; b=OY6T9rPau/jLDdm2/TxRwHy9/5LmYA3PgAHMt7W32n1iVi6NkfymRVHxBfboA5be0c UtG5pVbRRcFeHlWufz/wWZi/kwY7xhOFZn/i3uz0OZ5igj5tiJONMDgcJ5jpmd23SlSL 4/MJ9Wqn2jPQxN3qjhKzofCjoFG15PJvFznG8lKiEQPZLokfxBzd4QnVOEMKvT5E+NLl HCwJySkR68J8t4dcOMcbNb2zCkpxc4sCYBKcO4sUSyhjtK+A3outLEAQzmDJOEl5BKlY smu9GGGBG7ULM9JU0xWwZiZpriGwTZrVdLqU1S0VQkwliqjWf5Npa1+X44Twfn9kBSgE 6Xkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rYvNSaw4DIPZZSRV3GLxKtPqCtnmJBLzCvzNgS/HImY=; b=d09E65GoSLIiXtpfSQKCEED1OIxrl5eEoMgWoPGGXFfM16jLLBEA/pv4Edq5w7ZyNb NAoFLL4b9TrXjE8XWvU878NL9k2G8Dmi4RGWfAcaS0Nyist3oZX+q16ql3+rhkTNyEil uh4kgFQ2m+02yCOrSfWOx3siBaHvdlSNdfyDcRzz/yCQ251T3Yr3NEd5EXj/rAheOxKH xB6V2aCDh7jAGdoUr2GrWRnDEKdtKMktj/YtuxHciI5VjnQGxcVTSbcHg8+J96Iy+BpF 7O+xEBQu8E4R2XagJyRpBi0gzeLYY+qyHisp29ybvfrMLQT8bBYt5ErFNKCWpTfWV8eU QP3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="LDRGq/ml"; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y27-20020a63181b000000b0050bede17e7bsi15956093pgl.347.2023.04.19.06.48.03; Wed, 19 Apr 2023 06:48:17 -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=@redhat.com header.s=mimecast20190719 header.b="LDRGq/ml"; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233486AbjDSNo4 (ORCPT + 99 others); Wed, 19 Apr 2023 09:44:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233356AbjDSNoo (ORCPT ); Wed, 19 Apr 2023 09:44:44 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C46C15A31 for ; Wed, 19 Apr 2023 06:43:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681911838; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rYvNSaw4DIPZZSRV3GLxKtPqCtnmJBLzCvzNgS/HImY=; b=LDRGq/mldbqx43nbATJBiTOblebjTF2EW6M2tSSjyTEotQsObTNh842KdfJBhdBHlEKxBj HRF49QnlQngMQvPJSN0TZjSJfhHuLyWEJGJ7SiHXKdGmdHvP3mLTRSvAgLDGYZ37lPhLKQ lmCY2Luwp9/qCYqQTiZGRlIGehyLVaA= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-272-G1sB8eICOOCKMUkCX4LzVg-1; Wed, 19 Apr 2023 09:43:54 -0400 X-MC-Unique: G1sB8eICOOCKMUkCX4LzVg-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7A79D811E7B; Wed, 19 Apr 2023 13:43:54 +0000 (UTC) Received: from max-t490s.redhat.com (unknown [10.39.208.29]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6BC9A492B04; Wed, 19 Apr 2023 13:43:52 +0000 (UTC) From: Maxime Coquelin To: xieyongji@bytedance.com, jasowang@redhat.com, mst@redhat.com, david.marchand@redhat.com Cc: linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, xuanzhuo@linux.alibaba.com, eperezma@redhat.com, Maxime Coquelin Subject: [RFC 2/2] vduse: enable Virtio-net device type Date: Wed, 19 Apr 2023 15:43:29 +0200 Message-Id: <20230419134329.346825-3-maxime.coquelin@redhat.com> In-Reply-To: <20230419134329.346825-1-maxime.coquelin@redhat.com> References: <20230419134329.346825-1-maxime.coquelin@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 patch adds Virtio-net device type to the supported devices types. Signed-off-by: Maxime Coquelin --- drivers/vdpa/vdpa_user/vduse_dev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/vdpa/vdpa_user/vduse_dev.c b/drivers/vdpa/vdpa_user/vduse_dev.c index 6fa598a03d8e..26b7e29cb900 100644 --- a/drivers/vdpa/vdpa_user/vduse_dev.c +++ b/drivers/vdpa/vdpa_user/vduse_dev.c @@ -131,6 +131,7 @@ static struct workqueue_struct *vduse_irq_wq; static u32 allowed_device_id[] = { VIRTIO_ID_BLOCK, + VIRTIO_ID_NET, }; static inline struct vduse_dev *vdpa_to_vduse(struct vdpa_device *vdpa) @@ -1738,6 +1739,7 @@ static const struct vdpa_mgmtdev_ops vdpa_dev_mgmtdev_ops = { static struct virtio_device_id id_table[] = { { VIRTIO_ID_BLOCK, VIRTIO_DEV_ANY_ID }, + { VIRTIO_ID_NET, VIRTIO_DEV_ANY_ID }, { 0 }, }; -- 2.39.2