From patchwork Fri Jun 23 13:26:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Hawkins Jiawei X-Patchwork-Id: 13290609 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7DA9FEB64DD for ; Fri, 23 Jun 2023 13:27:27 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qCgoD-0008Ry-5b; Fri, 23 Jun 2023 09:26:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qCgoA-0008Qr-G9 for qemu-devel@nongnu.org; Fri, 23 Jun 2023 09:26:39 -0400 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qCgo8-00032M-Ts for qemu-devel@nongnu.org; Fri, 23 Jun 2023 09:26:38 -0400 Received: by mail-pg1-x52e.google.com with SMTP id 41be03b00d2f7-54f75f85a17so459513a12.0 for ; Fri, 23 Jun 2023 06:26:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687526795; x=1690118795; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=xz65ivos5efdQCVkhB+8sSNd3tQI1XsOWnhkB2JOmVw=; b=Rhdzb+9khfYEJfZXainc0+eIlpA9SpydmP/lm0N58LPSzbWTXsK0/Rx0wFrmDZan3u ebPaghsaa6uXhZIDj8KP5nIZz1xpRNLAR7G4QLZGFdzIC0+9MRhy+D2roTGBLtFfeXOu z/wP+cEGZxLat0PmOaXYf9eagdI9yrOpQRr0FJBfcAulmDt4Owap88XQ8tTgBVzbxns6 LXMGWG6AVmSV7cthZhE13ttUugK1aEvXg4nLOSoj9cc79Oh28+J41/s0oVJ6xEiZfN+C M4O/MvSeoWINl1w8l1juSadz7hGfN618p27aVNPwW8BeXU8dNUZ8YT38m71FZFLqtECC aIKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687526795; x=1690118795; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xz65ivos5efdQCVkhB+8sSNd3tQI1XsOWnhkB2JOmVw=; b=lLC+o17Z2vvXmSksQBqNc0q7a/rBUKTQ3DZwn0WXpftinA7EwrQy1BxCFpIyZh0GBq G2aCjz2OCbCcGeyOKjXJ9+CYtxR1xb4JPQhru/MjpGf+BHL2cMAyUN+Zk2EIoA2mfQx2 mESouzUzBsahyy7ZYXObCViFXhxKfxfOT+/WHuvas784UKazJcGNsxAEFboyroCotKZh YieT+8LNToX/+8gDM+tkujQRHQ0GgFiZymWo+GKOWvSaH7TykX10nt8ifrXYDvPEJn0q OiKEfMhy7/HanvzEGNbBWgP1qJmWBXzY6RXUmJeVNw7gcCqVaAInquyNN6zncI/aZ15L RKWA== X-Gm-Message-State: AC+VfDy5dqYcS2WTMctyvnoVxAcNnlbr/eD5KXWpf5+nnOHHoRu5f4MV o0Hi5it7HWHjrMHlKLuew2TK4FIhVMQPWA== X-Google-Smtp-Source: ACHHUZ748d7rNElQnnGF0/Ibrd0KgDr8MUSD0m2OUAIriIIWsEVAfsLRrSSx+KUYGbzxuj+ievLlSA== X-Received: by 2002:a05:6a20:2449:b0:10d:5390:eadb with SMTP id t9-20020a056a20244900b0010d5390eadbmr18311792pzc.2.1687526795421; Fri, 23 Jun 2023 06:26:35 -0700 (PDT) Received: from localhost ([159.226.94.115]) by smtp.gmail.com with ESMTPSA id 13-20020a170902c20d00b001b6a37c49a6sm4261047pll.268.2023.06.23.06.26.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jun 2023 06:26:35 -0700 (PDT) From: Hawkins Jiawei To: jasowang@redhat.com, mst@redhat.com, eperezma@redhat.com Cc: qemu-devel@nongnu.org, yin31149@gmail.com, 18801353760@163.com Subject: [PATCH RFC 2/2] vdpa: Allow VIRTIO_NET_F_CTRL_RX_EXTRA in SVQ Date: Fri, 23 Jun 2023 21:26:26 +0800 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::52e; envelope-from=yin31149@gmail.com; helo=mail-pg1-x52e.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Enable SVQ with VIRTIO_NET_F_CTRL_RX_EXTRA feature. Signed-off-by: Hawkins Jiawei Acked-by: Eugenio PĂ©rez --- net/vhost-vdpa.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/vhost-vdpa.c b/net/vhost-vdpa.c index 9b929762c5..cdfe8e454e 100644 --- a/net/vhost-vdpa.c +++ b/net/vhost-vdpa.c @@ -100,6 +100,7 @@ static const uint64_t vdpa_svq_device_features = BIT_ULL(VIRTIO_NET_F_STATUS) | BIT_ULL(VIRTIO_NET_F_CTRL_VQ) | BIT_ULL(VIRTIO_NET_F_CTRL_RX) | + BIT_ULL(VIRTIO_NET_F_CTRL_RX_EXTRA) | BIT_ULL(VIRTIO_NET_F_MQ) | BIT_ULL(VIRTIO_F_ANY_LAYOUT) | BIT_ULL(VIRTIO_NET_F_CTRL_MAC_ADDR) |