From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 06074A00C5; Thu, 14 Jul 2022 10:45:39 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B7C5242B86; Thu, 14 Jul 2022 10:45:27 +0200 (CEST) Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2055.outbound.protection.outlook.com [40.107.102.55]) by mails.dpdk.org (Postfix) with ESMTP id 9A74F42B7D for ; Thu, 14 Jul 2022 10:45:25 +0200 (CEST) ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=SnyfE5C0Bj/CAUqUtxfYC7wuIbmWo2v2MQyciEYL1uKa+x6KqhohnIoBG9herEWaN0tc6hC9uURL4W/QquFqRZusxUlK3j+ae3MNyA/bczV1uNQgh0u25RvQgY9Ykz76JVUHAsNbjK9WdAF2baqQFHmOSs2mNOGNzcnfueS1q2BAj+pzFKBBWMHmI/Nbo1um9046lMxlOo0kMU+wEu9Ya8rU5cUWFp5+yATZFUG0rjRWxkOLi4ikDrNoRYXGbUL4x6FQXgePCTvaNqxxtxHan8PvFhZmBRllFoCipd26LQY59HejJYEX1YyRSmGwtim+4GnNmIc5w9gc5rFeUAnPIQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=uY7OzWMJdNoQLHqyqDzCpnezKRdppUzt3b1dXdGYCE0=; b=WHbA73B1LiwI78l8aKMEerhpt9NxbdnGbClu9IVtfNPT/DPd9C5HuT2j3xE+dp38PnbcFv3qk6AMdRqbouojqRYdrXTJMmO/rF44Ju4Y3FEsdQh6HZxUtUwAu2/22MuG5Hbdt/vJxU9carWYpVuv4c4s8UJR9kpb1tclXVXUhiXAkgpeDIO6IfA/m/PJjnPNzE7gfKPudP5SmOxEYcVFb4oIXhipcdPUem0qnxBdKt8dpZgkVhxWg27VySdEm4nR9rbItqWiFZ3v48BOIvu2Akr5wQelaLylkVZRLi7yFT7LNBLFVu17vj9eQVxGsRqpAKC84YXPTzU7uPTsSq0YXg== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 20.83.241.18) smtp.rcpttodomain=dpdk.org smtp.mailfrom=amd.com; dmarc=fail (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=xilinx.com] dmarc=[1,1,header.from=xilinx.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uY7OzWMJdNoQLHqyqDzCpnezKRdppUzt3b1dXdGYCE0=; b=IRgRjNsBjw6SQS8xi/BQKVPO5sVa57zu1C18/0iI5IC5GeiOrpXzV7gQNod7ZmcEpjBxptxLqiGna3w+ZM1ySVedv12yrttEm1KoGDvbt/w9HjdrMsh1h1Rr2vEt8YjG2aT/IirAwEPOPRAZRuz+FOzVtM7WJEHqkKnXNoDY/ZruGauT69vcMU15OJhXO2qfKC9Z7GlwEV66OvtTt3EnU8lnHKvQ+LIvW63+81P3O7oEWuUxOY0g22/e93Ok90yJULSda8UCnhFjVRE1nUY/R91OZQBrDFjwAS5qhTklctTXuzoXIae1+zeI5xGoIhRGe9aHm/b6BdNnbdTmSgFZgA== Received: from DM6PR12CA0034.namprd12.prod.outlook.com (2603:10b6:5:1c0::47) by DS7PR12MB6237.namprd12.prod.outlook.com (2603:10b6:8:97::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.13; Thu, 14 Jul 2022 08:45:23 +0000 Received: from DM6NAM11FT066.eop-nam11.prod.protection.outlook.com (2603:10b6:5:1c0:cafe::f) by DM6PR12CA0034.outlook.office365.com (2603:10b6:5:1c0::47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.19 via Frontend Transport; Thu, 14 Jul 2022 08:45:23 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 20.83.241.18) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=fail action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 20.83.241.18 as permitted sender) receiver=protection.outlook.com; client-ip=20.83.241.18; helo=mailrelay000000.14r1f435wfvunndds3vy4cdalc.xx.internal.cloudapp.net; pr=C Received: from mailrelay000000.14r1f435wfvunndds3vy4cdalc.xx.internal.cloudapp.net (20.83.241.18) by DM6NAM11FT066.mail.protection.outlook.com (10.13.173.179) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.12 via Frontend Transport; Thu, 14 Jul 2022 08:45:22 +0000 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2100.outbound.protection.outlook.com [104.47.55.100]) by mailrelay000000.14r1f435wfvunndds3vy4cdalc.xx.internal.cloudapp.net (Postfix) with ESMTPS id 5D90941F5D; Thu, 14 Jul 2022 08:45:22 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SRsOb6bs2I7c7XC1e8qixVvyj7L+i21UGZpd82hnCDoeQ7EN0eJHN9ZyWQxRB8oQPuMubvsjrtlRKXg7fiLXOiobA7nJz9nRD+HhmwAuSTS0V89fOgfITmEH7TF5Qo3/pVq4Y/eBvtYcH4aBorjOZeiVo0/+nm1O6uja5nADFO77SWMnOBI5VcZ0LLIyPGLsZdhEYBrUWKoGX2wfWCBWtrgAG7agBpEH2Iybz1WjZQOr11e6qQ3BAXI87EbVr4AggyXEFRRqCiBmEM+IxBVccqeHHjxoEavWRPhGyQJpgw+98FEkJyQtcDeqp52GUmSF2m5MpQwzH3BOVPFMfdidCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=uY7OzWMJdNoQLHqyqDzCpnezKRdppUzt3b1dXdGYCE0=; b=bhRzhxUkjNciu2T+A2Z+PMLtgl9vrUrF0Hr1SZsATIsVyBtjQU2YKJiyGisY9iU6SEmfrsP2l6kgI60JG0KV7w5BCcBfLI7CJ7R625vtdZPCrh/Po0HWHUIkz/O02Xn6eS6gl6oR+IkOVTo0Mb62oIUFcCQ6WmkyCYFCU8/GAQ7TmLFRGOqzP2jUQQTAPxwJanfE1758aRNeUuXRBthO0WksB84RgH9FJyCH/vHe0fTreiIObogheu4yNHFHKpNvHcvdxqyhf2SXgwAobVBlNrR3gVBUOxn9J13kuWVX7si+h3JRTsidQ/K2qqjHtEDWlOQuKJFakhfoNAvOk2qKGg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=dpdk.org smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none Received: from SN6PR04CA0097.namprd04.prod.outlook.com (2603:10b6:805:f2::38) by SN6PR02MB5135.namprd02.prod.outlook.com (2603:10b6:805:6b::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.20; Thu, 14 Jul 2022 08:45:20 +0000 Received: from SN1NAM02FT0024.eop-nam02.prod.protection.outlook.com (2603:10b6:805:f2:cafe::97) by SN6PR04CA0097.outlook.office365.com (2603:10b6:805:f2::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.12 via Frontend Transport; Thu, 14 Jul 2022 08:45:20 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=xilinx.com; Received: from xsj-pvapexch02.xlnx.xilinx.com (149.199.62.198) by SN1NAM02FT0024.mail.protection.outlook.com (10.97.5.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5438.12 via Frontend Transport; Thu, 14 Jul 2022 08:45:20 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Thu, 14 Jul 2022 01:45:08 -0700 Received: from smtp.xilinx.com (172.19.127.95) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Thu, 14 Jul 2022 01:45:08 -0700 Envelope-to: dev@dpdk.org, chenbo.xia@intel.com, maxime.coquelin@redhat.com, andrew.rybchenko@oktetlabs.ru, absaini@amd.com Received: from [10.170.66.118] (port=50766 helo=xndengvm004118.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1oBuT2-0005xh-C5; Thu, 14 Jul 2022 01:45:04 -0700 From: To: CC: , , , Abhimanyu Saini Subject: [PATCH v2 3/5] common/sfc_efx/base: use the updated definitions of cidx/pidx Date: Thu, 14 Jul 2022 14:14:49 +0530 Message-ID: <20220714084451.38375-4-asaini@xilinx.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20220714084451.38375-1-asaini@xilinx.com> References: <20220714084451.38375-1-asaini@xilinx.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: 0fc18b39-f220-482e-2158-08da657530b8 X-MS-TrafficTypeDiagnostic: SN6PR02MB5135:EE_|DM6NAM11FT066:EE_|DS7PR12MB6237:EE_ X-MS-Exchange-SenderADCheck: 0 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: QgzaR2HkGGQ6dZVZwCKrsxLJVmtw3/uuXSIVzWRin1JcJzeUOW1QtVg+42rn4gfMitRBqRKdD+KDxCGUwzv8sK8/fR+5Fu5fFx9tAnY+6CZMdotcO+diWQoCigMOkLXXsCRGaj/qowNYAdv4fqdUqpaAraiW/pznuScrdTV7Ks48G82+UHyqN9+rDsimQtBoga5esmCfz4rflhFAylCOZ8NgQT50IhwAJGwkQGlvz7Y4f8SXU23qiB2UHOl/128P8KhFnKCd/JRwDfY3hNCFwrP4ffAI+Bz/o69E3g07nefhbwr2J/F5Ea4fnV1Ra7Jv/OzzYvAnA/2evnEiyxDdQsaI8uNsvoS1I3+oSuChlN8/QeN6BmukvKdEQeQyjX/wJ+DdDPzOnU0bnm953Es/oGjA9ny8e28dsEsv3vgyNVhDCX6lxADycZG7ScMDx2eGiupPK5wgtV++Dj4CCcZoTuanx/DOps/+e1C7+gjGqIlUmvEqqJAV7i4QdCSnY4fo5ZbNKjf6eAoridx4hImumtUjAUVdgYqP+zxGVOmqTEl0yvNAdzRd1gHd7d4DBc1dIcl4xKXvtULRs3IvWcdu+dUBjMVjXV4030tofLMFsnhN6+tpNXmginCk2mDHoaij0ZpkRMOQYce57SQ0N4bGXUCkIzm5juVA017l+k1NFTXADi2zXMl8MI7VZU3v3CzHq+DoLYsWFXhkdJMQyR7fOA7Iom4zu4hzk4I/gzpvj1yhmEUGhxtEPgjT/cu3yDP7jtwMp7/y3S1sHAKrYDAK5F/JOfOkExMx83k5ikgCJeTZ2YjAru+z9cXZ3HeeuHchUsaFgG2quZ38OTm5DKKzu/frvScRkmUoJdModAHfnxk= X-Forefront-Antispam-Report-Untrusted: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch02.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(13230016)(4636009)(136003)(376002)(346002)(39860400002)(396003)(46966006)(40470700004)(36840700001)(8676002)(4326008)(70586007)(186003)(356005)(82310400005)(6916009)(1076003)(70206006)(47076005)(82740400003)(41300700001)(336012)(2616005)(426003)(54906003)(40460700003)(83380400001)(478600001)(6666004)(36756003)(5660300002)(8936002)(9786002)(40480700001)(7696005)(316002)(26005)(2876002)(7636003)(36860700001)(2906002)(102446001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR02MB5135 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DM6NAM11FT066.eop-nam11.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 89f94257-8a7b-45ce-9650-08da65752f64 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hcxNsgoC+g6cR6s57wiEktrPM1uqc1i0w9esAKMIUxxi+kh/w8ewtZEAQsSFZGfrRVqZ4NOM/GG8Th0MyZyHRL9W/z0M1dA1skfBMSZZ/nhPpA7rGsjFFS47GRKzrPbsxcylahUJsk2GQab6uN1TSpkly/jqxsCvxKMetGDnZUUPN844yZz5m+3+e/W+0XDmtSv6xQ/kvHVfEksdEoSP+pQPpeP2TKqGEwqbmpmjy4NDb2+k2RTEAn9fwLUDWW2U3pOWaqOC7q2K/04YYxsV0FDZNoigi3PpvamWJ+Hr1cNnVNDaIm2biC7pZ2t5kTOau1eC/51ftsVYb9ghNkrQH+I3cQOguGOATTGzIIrAyqUv/n9q3O94CSoQXSlP182MCkvEcG/2Olu2+z40wvQSdH+n42vRp6j3Bdzy3tGJz9jszSPONmYWMGaatZsVAlmtNfXU3etZdowEu3gAmfzbM0vKUkIzMyHpPPDIoQQ6TLUc022ZTa7tZ2DUGD+zr+IiRm8mlSNu+5OlErtugebl1bnwv5QzpZyJBsoxn1oLu0dd0nORoFOAdYz/fLd260awuujAIGSEInR1qu/nXNbtum/0gtQ4Gf1blB4WGYdnT4BPfFIuuet/HISlr8wJXLq68SAairdnjdX4bMHie8mc65wS7v7OcAepBOS3E/lBzRu55i+iOUn7B089Ai0DGLQ7fjd+9i2mSFaQY8ENJcN9NRsC70PBROjZuLjEfJrui7RH0DRHFiW/dFoGAYemWY8h637XzydRLYbXYV/RVHhJblh9KfGtCp4X6aC5+JJlu01rXWYJCMxP3UEMfB9/45QgKVRAhzrPQEzO5KP9iBjvk8O5OkNV3OM+wY0w+JySF20= X-Forefront-Antispam-Report: CIP:20.83.241.18; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mailrelay000000.14r1f435wfvunndds3vy4cdalc.xx.internal.cloudapp.net; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230016)(4636009)(376002)(136003)(39860400002)(346002)(396003)(36840700001)(46966006)(336012)(26005)(426003)(2906002)(42882007)(83380400001)(186003)(1076003)(2616005)(47076005)(36756003)(36860700001)(41300700001)(7696005)(82310400005)(2876002)(6666004)(40480700001)(81166007)(54906003)(82740400003)(5660300002)(9786002)(83170400001)(6916009)(8936002)(478600001)(4326008)(8676002)(70206006)(316002)(102446001)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jul 2022 08:45:22.8049 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0fc18b39-f220-482e-2158-08da657530b8 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[20.83.241.18]; Helo=[mailrelay000000.14r1f435wfvunndds3vy4cdalc.xx.internal.cloudapp.net] X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TreatMessagesAsInternal-DM6NAM11FT066.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB6237 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Abhimanyu Saini Change cidx and pidx definition to mean used queue and avail queue index respectively. Signed-off-by: Abhimanyu Saini --- v2: * Fix checkpatch warnings * Add a cover letter drivers/common/sfc_efx/base/efx.h | 12 ++++++------ drivers/common/sfc_efx/base/rhead_virtio.c | 16 ++++++++-------- drivers/vdpa/sfc/sfc_vdpa_ops.c | 4 ++-- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/common/sfc_efx/base/efx.h b/drivers/common/sfc_efx/base/efx.h index 95f5fb6bc0..c19205c638 100644 --- a/drivers/common/sfc_efx/base/efx.h +++ b/drivers/common/sfc_efx/base/efx.h @@ -4886,17 +4886,17 @@ typedef enum efx_virtio_vq_type_e { typedef struct efx_virtio_vq_dyncfg_s { /* - * If queue is being created to be migrated then this - * should be the FINAL_PIDX value returned by MC_CMD_VIRTIO_FINI_QUEUE + * If queue is being created to be migrated then this should be + * the FINAL_AVAIL_IDX value returned by MC_CMD_VIRTIO_FINI_QUEUE * of the queue being migrated from. Otherwise, it should be zero. */ - uint32_t evvd_vq_pidx; + uint32_t evvd_vq_avail_idx; /* - * If this queue is being created to be migrated then this - * should be the FINAL_CIDX value returned by MC_CMD_VIRTIO_FINI_QUEUE + * If queue is being created to be migrated then this should be + * the FINAL_USED_IDX value returned by MC_CMD_VIRTIO_FINI_QUEUE * of the queue being migrated from. Otherwise, it should be zero. */ - uint32_t evvd_vq_cidx; + uint32_t evvd_vq_used_idx; } efx_virtio_vq_dyncfg_t; /* diff --git a/drivers/common/sfc_efx/base/rhead_virtio.c b/drivers/common/sfc_efx/base/rhead_virtio.c index 7f087170fe..5a2ebe8822 100644 --- a/drivers/common/sfc_efx/base/rhead_virtio.c +++ b/drivers/common/sfc_efx/base/rhead_virtio.c @@ -95,10 +95,10 @@ rhead_virtio_qstart( evvcp->evcc_features >> 32); if (evvdp != NULL) { - MCDI_IN_SET_DWORD(req, VIRTIO_INIT_QUEUE_REQ_INITIAL_PIDX, - evvdp->evvd_vq_pidx); - MCDI_IN_SET_DWORD(req, VIRTIO_INIT_QUEUE_REQ_INITIAL_CIDX, - evvdp->evvd_vq_cidx); + MCDI_IN_SET_DWORD(req, VIRTIO_INIT_QUEUE_REQ_INITIAL_AVAIL_IDX, + evvdp->evvd_vq_avail_idx); + MCDI_IN_SET_DWORD(req, VIRTIO_INIT_QUEUE_REQ_INITIAL_USED_IDX, + evvdp->evvd_vq_used_idx); } MCDI_IN_SET_DWORD(req, VIRTIO_INIT_QUEUE_REQ_MPORT_SELECTOR, @@ -161,10 +161,10 @@ rhead_virtio_qstop( } if (evvdp != NULL) { - evvdp->evvd_vq_pidx = - MCDI_OUT_DWORD(req, VIRTIO_FINI_QUEUE_RESP_FINAL_PIDX); - evvdp->evvd_vq_cidx = - MCDI_OUT_DWORD(req, VIRTIO_FINI_QUEUE_RESP_FINAL_CIDX); + evvdp->evvd_vq_avail_idx = + MCDI_OUT_DWORD(req, VIRTIO_FINI_QUEUE_RESP_FINAL_AVAIL_IDX); + evvdp->evvd_vq_used_idx = + MCDI_OUT_DWORD(req, VIRTIO_FINI_QUEUE_RESP_FINAL_USED_IDX); } return (0); diff --git a/drivers/vdpa/sfc/sfc_vdpa_ops.c b/drivers/vdpa/sfc/sfc_vdpa_ops.c index b84699d234..f4c4f82605 100644 --- a/drivers/vdpa/sfc/sfc_vdpa_ops.c +++ b/drivers/vdpa/sfc/sfc_vdpa_ops.c @@ -258,8 +258,8 @@ sfc_vdpa_virtq_start(struct sfc_vdpa_ops_data *ops_data, int vq_num) vq_cfg.evvc_used_ring_addr = vring.used; vq_cfg.evvc_vq_size = vring.size; - vq_dyncfg.evvd_vq_pidx = vring.last_used_idx; - vq_dyncfg.evvd_vq_cidx = vring.last_avail_idx; + vq_dyncfg.evvd_vq_used_idx = vring.last_used_idx; + vq_dyncfg.evvd_vq_avail_idx = vring.last_avail_idx; /* MSI-X vector is function-relative */ vq_cfg.evvc_msix_vector = RTE_INTR_VEC_RXTX_OFFSET + vq_num; -- 2.18.2