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 9E438A0501; Fri, 6 May 2022 00:01:33 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 57EF642849; Fri, 6 May 2022 00:00:46 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2061.outbound.protection.outlook.com [40.107.237.61]) by mails.dpdk.org (Postfix) with ESMTP id 5D71C427F1 for ; Fri, 6 May 2022 00:00:37 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DU3bxmbZaz6fRm2ImCH9JUR2nQDAgd7J199qTRrAK6Dxt7jf+/6Ek9LS7ucOp0pY5spWYeC+3cFAJB6PPLJTHTzpwf83ubVMgbzc4adbX6/jkTMA1otQ/D7wdq+pNeQ7riuWnJ8PMV1jHqOy8cPxObgtx2oWydFdrFR1sweEQqcVGKnucnd+A53ES40t+b8FPBUlbC0dvl5KjEje9PUPWzm14UxeML8RzHUG09SI/r6Wdo31yVYsuy0RVZ+yjDnrwCaVrmPbdTOODG/i5I9DHEXc6Ekkfwfq0C8/CFIiIOVRrKm2tDaDiNo6qOKwoE2boottyoHhevNW1zmBU0fnnQ== 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=72BdeZocA+/cYwauWWqAu2spYHBpz+va2OSXYRY3RQo=; b=LfU4aourzxT2OMNYF6Sjs9cLgvXU5SiRf+O0/oewrEF9Tpov8xPh6FaCmSGNImQgPSvhKqdZ86cVVJ9L80VMonUWD76aV5s8JlWTzvyAVbAKrmSBtklTo+9noykGZ8PagENuVApceENu0aglmj0w9EKPR4v2XXdsRnA7WKkYJZ6l3AY99g2b4Hteiu1vdYWVYBSC67aQ/zbmdzsBNxQOEeRiYcw97MiuXqxQXD2erVu6YpHu2eNaY0gv/vnwsVC8NPU4AJ3gSlSoqLki6uWGOoDGFX5Qydi+shwEyWnXwULxBYcAbKLJZdx8aBK48bQVQbZOESF2UFSkglnp6FYc7w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vmware.com; dmarc=pass action=none header.from=vmware.com; dkim=pass header.d=vmware.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vmware.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=72BdeZocA+/cYwauWWqAu2spYHBpz+va2OSXYRY3RQo=; b=ZKC9LcfdMpHYZJOp/6HAOgoHU4IFcdZVeJrL3EbMCMBvzSY8AH68pvUOmH+j9OC1Jh83y/05mRBwQHiK7yUbvYJg7RlsDAWVxk64nfJQD2GXpRmO4/opujpzvVKc9b3SCI2agEtJSmLS5aQjbEDsGOuoPiIAEcRbuSIsVddbPJY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vmware.com; Received: from BYAPR05MB5624.namprd05.prod.outlook.com (2603:10b6:a03:1d::13) by PH0PR05MB7883.namprd05.prod.outlook.com (2603:10b6:510:97::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5206.9; Thu, 5 May 2022 22:00:36 +0000 Received: from BYAPR05MB5624.namprd05.prod.outlook.com ([fe80::5161:a7c5:8c7d:f3b2]) by BYAPR05MB5624.namprd05.prod.outlook.com ([fe80::5161:a7c5:8c7d:f3b2%7]) with mapi id 15.20.5206.024; Thu, 5 May 2022 22:00:36 +0000 From: Pankaj Gupta To: jbehrens@vmware.com, yongwang@vmware.com Cc: dev@dpdk.org, pagupta@vmware.com Subject: [PATCH v4 8/8] Fixes: 046f11619567 ("net/vmxnet3: support MSI-X interrupt") Date: Thu, 5 May 2022 18:00:19 -0400 Message-Id: <20220505220019.31166-9-pagupta@vmware.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220505220019.31166-1-pagupta@vmware.com> References: <20220505220019.31166-1-pagupta@vmware.com> Content-Type: text/plain X-ClientProxiedBy: SJ0PR03CA0354.namprd03.prod.outlook.com (2603:10b6:a03:39c::29) To BYAPR05MB5624.namprd05.prod.outlook.com (2603:10b6:a03:1d::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 155ce11e-81f5-4585-8c91-08da2ee2ae2b X-MS-TrafficTypeDiagnostic: PH0PR05MB7883:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Z3N8BDCc4CeJhGSVbjZKnCOmQAZ8y213DFsJxgD5jf5ft2wp3M0KWrWhOcq/mMtLBCH3iq0lyMRzIwyqoT/0VyW6z8OELblANfzB+PXYWvpWOaojRdDlzAJVDHXF9cl5PweK9mfgHlG8zVDvmQhmceQfkFQJCc/0F4M//KpVKGivlTre0D3jybv+IO7rZ27v2ToC+frKr4kh1bBjgjPktudlSWZ1QaybA4M8sJFLVYERUi+15zcqGQQdhyUzsC5m9i4u0KLktVQpZ8MNHYDWzp3vTbFRCa2zi2Z+zFwYY79KdneYhkOEugx1e/sFCpKXWXAAp3l6wnbnJh1LyDfxkJziMCNfpR1je4sASc1dXG9Aad3RcoeicvslVXAP1zvsyPgxFWtL3OWqauIXpFISHbJYknjCSVLolaJuq5KkB5jG/J2ufT3aDjU0WR8jdaK3FNWqwxOB2qqMb0MD0/l8kqL7rY8fwgRXPCe17Dy9scLVP9rW7sFf7uBzlbhTI21R1GPXieFA9NifziXwORK/HKi9eiOZ6LeXVLrlH0e3dv1jQKyaTKvrNDCvRfjVGhzf8EZfXbKUHGIG2yA6H9oM5wSc7KHSWrws+77Nwtgiz19Co3RU+6e5CyB2TzEFrLTIi+wdEudEzOcT3xr8pmG0moWCy/katg9UrKW560knOe1CoTbNMc5JcRBAkKQd65jWB46wKgAp5NUPGKl/uj9XCw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR05MB5624.namprd05.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(316002)(38100700002)(38350700002)(83380400001)(6666004)(36756003)(26005)(2616005)(6636002)(6512007)(4326008)(52116002)(66946007)(186003)(66556008)(8676002)(66476007)(1076003)(2906002)(508600001)(6486002)(4744005)(86362001)(5660300002)(6506007)(8936002)(107886003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?cQfRa5XKi97r4stdAjoa4VcJ4D7uBgpqjD1sidZodI6y0aa+lADmRD8nlkyl?= =?us-ascii?Q?OxcEu7RUOJPQktnWm53dFomOUQGiGeUgpmxWR6XGFqLLtDhaMdUKghFjhFf8?= =?us-ascii?Q?e8t6ZOORj8qKsrhu1vG9fiFwxiQDC6I4EBQDccalyHIkLzgqtJUJ7u3mxQVI?= =?us-ascii?Q?/QnRtQ9eHH6VK2hye6EF+h05Z2a8asI2U2TI/iD8JvEX6HFSfnFYdihZEdB4?= =?us-ascii?Q?ZzC2XrKyRAIZUFOcdFlyQmK5xHcTFPkCp4edYpbsP65W9colDlYe82+AhQ1+?= =?us-ascii?Q?OXabQvsqZC9rq8OLKCb/xImCI/L2ZjzIYnmmy8jbcZiy6Pqr4LoNg/HayVoe?= =?us-ascii?Q?bYbMkH1nt6ydjSNX+VHXDFxYN+Wj2EvMlJNhYux+rft+9rm+p3mIHTyBXC+f?= =?us-ascii?Q?1g1Redbu7EzVJ7Geb+fcR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us-ascii?Q?LU2fa37EhyDB2t1Xi+gpPgr/uUtAp1414BZqoErcivzGkXhmlpPrgnrfD5KD?= =?us-ascii?Q?jdoo0O6kh8BYNVfeI8vZvjhu6IIJ4PAq29v0/2/G43moF1ro+/D/E9p4MZ9B?= =?us-ascii?Q?E7R/509sOL/m8H4KepfdNFLnRMLeFz20zMrDiWK3Mjc3Oudrfbzzu4Ahn8R2?= =?us-ascii?Q?ioJD6nKICYLhlJV7mJoXqfzyjTnSwjEJ0H+kgxSXnThLBXbibmg5W4B7AUAh?= =?us-ascii?Q?gJjqnt41QvzZY7raXPxVG2MiZcUdBWHmeGY8Wwr31A4D62az+1kUQv/fyMNu?= =?us-ascii?Q?Hbz3LpDqDo3Gto2vx4GqCk2EC075IFwJyblI8M5Yp4kueW5mBv+U0JyVv+Wo?= =?us-ascii?Q?DD8Pw4YEGJ+839JvJr/4EzhBuqG7Lj74fGxx6kytZ3eXTraHtED7+bEJhwQH?= =?us-ascii?Q?00tJKZ8cNA=3D=3D?= X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-Network-Message-Id: 155ce11e-81f5-4585-8c91-08da2ee2ae2b X-MS-Exchange-CrossTenant-AuthSource: BYAPR05MB5624.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 May 2022 22:00:34.7641 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: r0goWM1L0g9PYQEfn/YJ7x4dyaU7L1x+bMzh5UbEVu6DebjMoNGoyyQRBnwe6x208cG40it/RPuhxzbeHZLacg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR05MB7883 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 Fix merge error in initialization for rxDataRing feature. Tested, using testpmd, for different hardware version on ESXi 7.0 Update 2. Signed-off-by: Pankaj Gupta Reviewed-by: Jochen Behrens --- drivers/net/vmxnet3/vmxnet3_ethdev.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.c b/drivers/net/vmxnet3/vmxnet3_ethdev.c index d3148dcec5..fbfe33e22c 100644 --- a/drivers/net/vmxnet3/vmxnet3_ethdev.c +++ b/drivers/net/vmxnet3/vmxnet3_ethdev.c @@ -876,6 +876,11 @@ vmxnet3_setup_driver_shared(struct rte_eth_dev *dev) rqd->conf.rxRingSize[1] = rxq->cmd_ring[1].size; rqd->conf.compRingSize = rxq->comp_ring.size; + if (VMXNET3_VERSION_GE_3(hw)) { + rqd->conf.rxDataRingBasePA = rxq->data_ring.basePA; + rqd->conf.rxDataRingDescSize = rxq->data_desc_size; + } + if (hw->intr.lsc_only) rqd->conf.intrIdx = 1; else -- 2.17.1