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 9BAE5A034C; Mon, 2 May 2022 21:48:00 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0BFC342820; Mon, 2 May 2022 21:47:40 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2043.outbound.protection.outlook.com [40.107.93.43]) by mails.dpdk.org (Postfix) with ESMTP id 3A1AB40C35 for ; Mon, 2 May 2022 21:47:38 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZaBuhRvYE98wkvqzJqluOp730gijkZrluN8kXQ93Ya2uq6Yfu25Rccelck42pY43SR2psUN7nv4HKVuv2RpV7SKP7WjKCaXP8Mxf8wclftt3vW8Yi+/QQcF3O3xNlGvmcS3zOFBK6Uy24zjWgJDxDHwmUG0NyqFFOwmLqmP+beYAY3XRmHEXtlDBEUq/yb49t1AWOsd/nQ1PIXbfYEF7tWRBt/zs5B1REMO5iWfiCa0MPYVUL4MM0s+eiG0I9LqQRpEexqn7OTNUE7Rwwjtqr6DvsGKtKUIa7KvrlGbd7Eu0vnRRffHmud+97gMoTefqdQsLFPhGvufRgkoiyzPCxQ== 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=9jJmz/g5uGH6sfjebmJpBYYHEAR1XYwLvPs98/MV2zk=; b=ZLSTuEYViH9gfn94uB7HGo28OqnfeXyqAzLRF1XlqD0h5f3izOpPxDuV/gvg9dBN8zU+WBaoFFK3S9TvrSwxHvZRF8yA4C1LD0OF9Xq++bBd5GUsjR9OqFvqcofRmy1pOTSRCLSvhrAD5iFkuCtycRRCAPOvhfKjKA/HYcdOKWgqg4ppG3VhJinCxhnuZd82nUn0Q31QYVB8A3E6aFOw2GphSZIH3ksRcSqETxFreiOWrWYKAW5pxxWO/X8MXagtWKAsDIVOCVGZsdrpd/NVLBH93bpFtqb+NJT2g5dW0bGTIKWDgvaaaPZgkOXzoeY1jgNlFEnUBNswbmw3k9vyrw== 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=9jJmz/g5uGH6sfjebmJpBYYHEAR1XYwLvPs98/MV2zk=; b=JrTj5iCl3VlnDxtOWTZ3bYcOqVE7YYFtZnWWWNU6VnzRt5y8kSqPh7ZIsCnHv/Lf5MiEofy3pKHClBOJ95FUCP4uC2HVKmMSli5nIvMa2GC3Hjgc+CFzQZm256dqYMEPXhaJB0TIia3EsmLmJgDFqfafVopiY8fw8wGYs3uyyHM= 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 MWHPR05MB3294.namprd05.prod.outlook.com (2603:10b6:301:41::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5206.12; Mon, 2 May 2022 19:47: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; Mon, 2 May 2022 19:47:35 +0000 From: Pankaj Gupta To: jbehrens@vmware.com, yongwang@vmware.com Cc: dev@dpdk.org, pagupta@vmware.com Subject: [PATCH 6/8] vmxnet3: set reta size Date: Mon, 2 May 2022 15:45:55 -0400 Message-Id: <20220502194557.16016-7-pagupta@vmware.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220502194557.16016-1-pagupta@vmware.com> References: <20220502194557.16016-1-pagupta@vmware.com> Content-Type: text/plain X-ClientProxiedBy: BYAPR01CA0049.prod.exchangelabs.com (2603:10b6:a03:94::26) 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: 04a44409-6d1f-4dfc-dec1-08da2c7499d0 X-MS-TrafficTypeDiagnostic: MWHPR05MB3294: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: 036vSVm61w917wAO5u8OkhNI4cXosON+6Fdz+KN6CCqq7XaE2pyKuVFhZIdsdTibas84WVatq4ZqDYXSwptgr4iQhr4hWmkxAEtfVThP9K2pvWoATTYXq19ZUxRtDIn2OfORVDdCy7NCPDgEfZZDpo5bLNKDeaI9g1o3yxTAh6xiHjGm7U2WbVjQRA11b9tO6R2/xhr+dnWOfEKBCnouP8YZqCD2p+RwkY8IOvVNQpkqQpj+TSK6LlPRaeJp9svW/5mD67Uh2cRm52DOeHLT+A4Mu9egJSAWjec0bi+EIA/F4vKSOeOWKmiE5OOY2dGDSDpulz2OS4ncKGPMwWQKT1k4QKQds0ElE/2k2u022HaCFAdj1rxxvuKvLpP/KuNEcEuAV6s/l+ortQeHMnUCSDDVQl5AvGQ6NmuLdnrFZOt42FGzRzauc1YjcR2Ca4V5cuKMZBp25n3AMGxWA6eiSMRI7mxBb2S1+m8z4SMQWFMvlKCiyIwDrFp1Y8kQG8vL6/uZVg7m9/dmgZ9C241VeS8VDMel3JoSgwue53yOD65bcQ4jfAwbbAwQ+9mZHpGpYRx5RYLoPxh7XGR15/Js3Dv970Gv/n1HLp0tk/d8bwWg+2Bls8kmuGcWY++PlK5AoOnhXw9XVV2i9XGBBfinu/agyh0Z1z48Dw0aSCn7NE7JqeGbML9U2xm/gbukDU2QiRrYo5MnYLowy1FJYBF0rw== 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)(6666004)(1076003)(4326008)(6486002)(508600001)(86362001)(186003)(83380400001)(38350700002)(8676002)(52116002)(6636002)(2616005)(316002)(36756003)(107886003)(66476007)(38100700002)(66556008)(66946007)(8936002)(6506007)(5660300002)(2906002)(26005)(6512007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?A3eV17i6zX/S8wZ5rYcnBINPN4BDABej5xo6OOh1YekeQMzxjeDAxr/OMw5W?= =?us-ascii?Q?ykqy1ln2vTKRbgbQ3O2X3MJC3pgCHETt1kg78qel6mfox4EmYlL4q9AVd5WW?= =?us-ascii?Q?Y7+6XsWS3rVXBew+jk5b7ZnG2Kf5jFfHBK3YiWXeTVMvcX0xXHmw7WUWm4fK?= =?us-ascii?Q?wf/siPn0aqvvWVGqAH8Z1NfPi8MKjf3qaaUjc7Hu0YxIX4n78RRhRM3AFiV/?= =?us-ascii?Q?46dYt+Iyc/4mjvoD2XB9BLi40xtyADOTKIiRchSEqM6n+3BqwwvRgEdZJxWV?= =?us-ascii?Q?Cg0fq22G9558QFizMZIEGOTmMbAdfCY7LbuwmkqGZG1M4proeW7uJgy+62i2?= =?us-ascii?Q?77GWLZCAXGAzSKfUDFem0wyMx2Rw7UBiMFyHR3WWi4voYhOYXIEfRV0+yNAn?= =?us-ascii?Q?tvqcsA3NZGZjutSRyX1SVbIlft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G/GwDVjKAU1O8liMLtj9nkEzjQoG+xGkm9SKDYe9qsNW0p23w?= =?us-ascii?Q?EiAlSlRxKsW56CN9B88nSi2mmDUxEUZgvapgxNrKSBu6uNlj7cV/62WqeuAb?= =?us-ascii?Q?+hkAJHpB+rRnDmpE9c2c1HT/WkoJWDQ0kFJkopcdusBRFXqT9QSdMdXJWLJA?= =?us-ascii?Q?3LNvDH2lU+KKeB6Med0+YTRraK7fE5CsgwDv23GKN8oAIfe8zArMJOpmL/5X?= =?us-ascii?Q?YZt3kr1hDCSi1hiUCd80F0HDtABWuR37aszwPE+xnvQ4nkmUhQmcgN/uMZfe?= =?us-ascii?Q?rvnW6mig6UYLGoIBmI+cxTB65DyDgp137e2Wptb3/8sU3whEEbCCk5OM3nLC?= =?us-ascii?Q?yTu8lD4GR+SZbHEBtFnJnSncDwOjjNfIi13Kv882snmf0x7PTMM2vmk7CXn7?= =?us-ascii?Q?CD12OEMevA=3D=3D?= X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-Network-Message-Id: 04a44409-6d1f-4dfc-dec1-08da2c7499d0 X-MS-Exchange-CrossTenant-AuthSource: BYAPR05MB5624.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 May 2022 19:47:33.6027 (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: Da4uXhsQrRpNvMNORBILTeb+L9sONS0as9P3LdsqzJjZOanZWvjLh08AaSlEy23kIFuMtx4sNeObTM8JV9sWMA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR05MB3294 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. Signed-off-by: Pankaj Gupta --- 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 e213b6d864..29157fe081 100644 --- a/drivers/net/vmxnet3/vmxnet3_ethdev.c +++ b/drivers/net/vmxnet3/vmxnet3_ethdev.c @@ -1482,7 +1482,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) { + dev_info->reta_size = hw->rss_conf->indTableSize; + } else { + /* RSS not configured */ + dev_info->reta_size = 0; + } return 0; } -- 2.17.1