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 9E244A0501; Fri, 6 May 2022 00:01:14 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 99C594283F; Fri, 6 May 2022 00:00:43 +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 7FCC440042 for ; Fri, 6 May 2022 00:00:36 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Al8ORK8E69yMfgKBcc1DgYIiftYCZqw2ikw0Oa2T8EGWka8jwE18yPB22FDFHJWV3RzXqRLm6ADPGS/3W8w6qrbD8XJ4zcsIok9HgrlyIBLpfVIVe7ZMQZhEUZS+lPbrpl8tNKUC8JqDS40H1o2hglGVekYPBa8QIPyRh5VQrW2uIiCKUsneNOP6qRuYrYz6IeZsLELkZ8Ue45utumLHKnUdNASG5q/AxoI8ICqexpRr+aBQwBXrUq6YFmzV080FQB/3B86421liEITnomP7ZCMZCunkdFIE/1Tyu061vevg7LJ6vcRC9FrbhR1tBZceNqFcu9yGYiRNdOVChuXdoA== 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=g0+BCsBqm/nebpl58yWrFds6TXQbdnan9JPH9k9n2Rg=; b=DMcx4ou28HqBicM9/rC9CVrii9VSqRVLlq+o/C9SWV5BZCBvIiwZRS3L16mkkq27Xwcismnrr1n0j+ehIUkDrReFTZP8l77g50+ZxanAyOGr8LqXdwzfNlfoAXF3LQjd4AZyxcHso6nem5tOiRMkJ65PB1BP7EJa6qywsctinD/dzBRngIe12n0hkhNw6Xj1w/47Dqwzu/9kMDzxzNyXS9PxCxRm0RKbUgo2+0Q1+Q7fNFssPnYJxO7F468/IDb1WeKUb8F+7iAusD1qmqTuGBqb8lm1QvZBbogFiXCaNWFejJR5q1zIgrYJpXIgYmnzGyQf0E2PEYPz2MTbjsHtPQ== 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=g0+BCsBqm/nebpl58yWrFds6TXQbdnan9JPH9k9n2Rg=; b=Ryh++0vYM9Jd0Sj4gWRu1askl2uoMyeTRp5ZhAr9ar2V2OMvkuMj8DkK4xzVg2aAd2Vpld8gxMIwzYz/eIni7ElHGvG4/dflbYH4AliFLhk7ajv8UMFbe4iNRZCUwhstTsLKmp8Vk9oZStLkaLXTv2SSxz+WtW6/DsSDDFVi+nk= 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:35 +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:35 +0000 From: Pankaj Gupta To: jbehrens@vmware.com, yongwang@vmware.com Cc: dev@dpdk.org, pagupta@vmware.com Subject: [PATCH v4 6/8] net/vmxnet3: advertise RETA size in device info Date: Thu, 5 May 2022 18:00:17 -0400 Message-Id: <20220505220019.31166-7-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: 2a700e3c-9f83-40c5-a6f7-08da2ee2adc2 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: oK/QZTYCJBg0KlwfU95Fxw55ijqcWvyW6TASwzOnhPvITYcZiAkjxcVCterCUpv5dX84jH1hSQsktI/e/GeLFFmVICIBhUIYC0vqw7kftNPFim2QS2srnIb/HD8OIH341psgo2/iieCcCDW59H2n94KWS7Ow+bTdvjs05WNt9sUcUf4ORwWNKQahOSQ24jWVbjYF9qLmlnvZvSYvlXqlVW//UcHv3Z8w9Mv0fmrM9ojw0dopvspF/nFwZSQ1ehcYaTRd0cYOtjSy5uuJ160sjjHfGptV2IiPoH6Yg33AFStGdEsCgxMjUnihqFfd1X8LV4TaRveLjlAZAJDUkC5WGOemtv2ut/215Nr149qz97VigeO9T1IGOrAmVkocRQiMrfGvoGDd2oqp5Su/mRRy7A+KxNYgwhKk9ovK/XWQ6j+7Z3eRiUXM9mv3se7KdYM5t77QD3xkT6JlYuwDfPhp38fOksSBufOJDjeOX3FgCLvEReC13CNLyxHdez9FLSVN8TEGQ+TFdho01r1jII5kNdahlrwNuuMTrs5/OGHJ7IlU4ZMEJrkcv/R4D/LkQBN8l2q+E1CiFzlb2+eQnKHVJjETZqlyUVzQJgIIFe91pE4bPhzFXop/3wnLIahhJ/Y92cVpWo32eBoNKjFc4++cQkaQSi58bf6yvu7YU3Y8hpJGMP1Tg1frWfimYhtWwcGDZqE1kOnnst+eW9YfWOaFVg== 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)(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?3XexeCGaEBPYa7jyzSSNpaQAQsh7kGQgflLftbC/VJE2OtSRG2FUDQfSu2Uo?= =?us-ascii?Q?rAtc+smLFLBoPMxeRHSUpBEQh/zZX/caGfrlZ9HCLYLVBp+xJX4rtKPrYFSs?= =?us-ascii?Q?aSa7Qyk/IsbO8lIvmVh+L5Uj5tC8VPyoAbx23jJIGxR01NWmZAbJZ1APKBRB?= =?us-ascii?Q?C03gaZdhRYuudYOpHjOtiPQWZn5nj433FFBAkhWvFsyYTpOEz01zz11pEvVf?= =?us-ascii?Q?2O+a3K3/9gXE8NreNtHFqmjDAwrOhISr8KAYbPhPTySH82xkVCcQ8TvQ9nYf?= =?us-ascii?Q?R52K5AXIip7PCqpv6hBL30DuqT4dQ+MOppzEyjicQDc7FvzldgmUuMuire8g?= =?us-ascii?Q?tZaouqof/KQMvZ4DtSSA4pMSJHhHCT7ewB2nAyNGJl85O/mbomV8GWs2YvnX?= =?us-ascii?Q?5whZkEiJQlY3BwAVJD5YpI6kXFBtmXDDS5SMlI11hgvbBaD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B5jrIMEIFhUb17WipEIkT+srjJ28OP4wu50GS?= =?us-ascii?Q?TSd24vd6bqYQUNtkPvcY0Gtg3+ZVbIvBxrz6yVdrCfu6Wk7d6Il76pzEWeCI?= =?us-ascii?Q?YRnaj8SQVsX6LNx9IpKcLiLtfUBMZE4DZJlF2RF3C9BkwQDw8e4kp85/Hn3c?= =?us-ascii?Q?Dh8cVRmaqoOq4J15B02j0JlLkcloPSiaORHQbEvL7xlg8LWy4Kkw3KeUUiej?= =?us-ascii?Q?1ysQHD0ofxgD1sEBxRNGsWFJQZ+53cgELLSBC5fhIGAsBdJy85Ix9L5Q6R8W?= =?us-ascii?Q?RWnD6X5UwPlFnotFvfaMigQzTVqYpS/TDNCcp5nBdymLQ4IsaBTcjoB9Go2D?= =?us-ascii?Q?90fxXpizO7IZ7pU7jyEZhmwat+tTFtIg8ch5SQ6Hz0ejpAYE8+dly68T1TBZ?= =?us-ascii?Q?XPP2gtFPOg=3D=3D?= X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2a700e3c-9f83-40c5-a6f7-08da2ee2adc2 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.0454 (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: kjz6DAZVsf8NjyN8Kc6WYqkxZgUnQ0v8DnJegf/kfHUfy7/Zkqu2f8TwXxYRQe2ENXpKBeTmuf4jqs03+C6K+w== 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 Currently the driver assumes that the size of the reta table is four times the number of Rx queues at multiple places. However, it sets it to four times the maximum number of queues (4 * 32 = 128) when it first initializes the device. Change the other uses to use the stored value, not the assumed default. 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 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.c b/drivers/net/vmxnet3/vmxnet3_ethdev.c index 357fec09af..d3148dcec5 100644 --- a/drivers/net/vmxnet3/vmxnet3_ethdev.c +++ b/drivers/net/vmxnet3/vmxnet3_ethdev.c @@ -1483,7 +1483,12 @@ vmxnet3_dev_info_get(struct rte_eth_dev *dev, dev_info->rx_queue_offload_capa = 0; dev_info->tx_offload_capa = VMXNET3_TX_OFFLOAD_CAP; dev_info->tx_queue_offload_capa = 0; - + if (hw->rss_conf == NULL) { + /* RSS not configured */ + dev_info->reta_size = 0; + } else { + dev_info->reta_size = hw->rss_conf->indTableSize; + } return 0; } -- 2.17.1