From patchwork Fri Jun 30 08:54:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hawkins Jiawei X-Patchwork-Id: 13297832 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 36A39EB64D7 for ; Fri, 30 Jun 2023 08:55:30 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qF9tu-0006rj-1q; Fri, 30 Jun 2023 04:54:46 -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 1qF9tr-0006pD-Ar for qemu-devel@nongnu.org; Fri, 30 Jun 2023 04:54:43 -0400 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qF9tp-0007nN-Q1 for qemu-devel@nongnu.org; Fri, 30 Jun 2023 04:54:43 -0400 Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1b8033987baso10041195ad.0 for ; Fri, 30 Jun 2023 01:54:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688115280; x=1690707280; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=wQD0zN7sNnDH0LOt/HHz/hnxeVO1h+UX/MPPuV8oEyo=; b=h1Viv30sS4AeojmZJx2qxbOeeCbiymlBVccqXf+PDoghQXyeKJJ+hiYv3nGfMH4/ha q9jt1n6KHqbNtsww40SGccFHSL7ixLnDBQ+Bmjcz4XmLp9fLFRQHrFlVu9+PlhypJz0T AH0WEJATbneFHsNKPBAb8MVRUiyoKRIMUIIfXVFX3KFDFjtJQRq6X7A/qpkVMdYM3qH1 OcF/7i6NR0OxzMm5q/I3qEI54E5VRoGJSl/bVfzBi2WjX8/w7iitqhQrpuridmgmRHnH qUXG1UBZq9rojrNZlVQb+rxicgKIVn6IcQRavyFfdanUwEfOnOKa49ZxCUhOSPqUNQGl bEKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688115280; x=1690707280; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=wQD0zN7sNnDH0LOt/HHz/hnxeVO1h+UX/MPPuV8oEyo=; b=N8aNdl0XEk+N3UGDluMqmzldWgRUmXoSbuecUTCfiE6oUEopA6t8URzz/uw/Xz0KFK E2AAFPfMHvDt046b+fHk7UXiBqr0aHRkOpec9IOeRepfyt1ew3JK8KkKwo/SXMyI+XZC Bn3isoPpczxqy2mmH3ZLKdv/7xTglbI7EMndn4ORAivW/gPRdCOiwvJSdgq3jVP6/BSY 9kBy2KOPCEA0zS2UbKINN2UtjwRjvc0LPCB61d/MhL1rOToQgUL9iIfEh4jx9+APiLI7 4d2+TCvdXvUKQPw8gVmBy4jLWzGm0H0ED0FRG8YQo8Hrby/5M61MqC2igeDBmfBnEfez Sb/Q== X-Gm-Message-State: AC+VfDyZsC47qzSzwYrmb4XKxo9zwBTWN/mTC+veyGsk3NQZQkzP6+RL t8lEOWcnONN5PKkjAIzLpdY= X-Google-Smtp-Source: ACHHUZ66S8symLA6jMeGfL7TJ7tTfA/J0CxC5dWwVbGV7vTbm1a3TiLK0OI03ylpuxRQMnFboFO1JA== X-Received: by 2002:a17:902:c411:b0:1b6:92f0:b6f5 with SMTP id k17-20020a170902c41100b001b692f0b6f5mr8955682plk.14.1688115279805; Fri, 30 Jun 2023 01:54:39 -0700 (PDT) Received: from localhost ([159.226.94.115]) by smtp.gmail.com with ESMTPSA id fu14-20020a17090ad18e00b00262d079720bsm786549pjb.29.2023.06.30.01.54.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jun 2023 01:54:39 -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 v2 0/2] vdpa: refactor vdpa_feature_bits array Date: Fri, 30 Jun 2023 16:54:34 +0800 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=yin31149@gmail.com; helo=mail-pl1-x62a.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 This patchset removes the duplicated VIRTIO_NET_F_RSS entry in vdpa_feature_bits array and reorganizes the vdpa_feature_bits array in ascending order based on its value to avoid future duplicates. Changelog ========= v2: - resolve conflicts with the master branch v1: https://lists.nongnu.org/archive/html/qemu-devel/2023-06/msg01583.html Hawkins Jiawei (2): vdpa: delete duplicated VIRTIO_NET_F_RSS in vdpa_feature_bits vdpa: order vdpa_feature_bits array net/vhost-vdpa.c | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-)