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 CA38F41CF5; Tue, 21 Feb 2023 04:56:16 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 89B2D4314D; Tue, 21 Feb 2023 04:56:12 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2104.outbound.protection.outlook.com [40.107.243.104]) by mails.dpdk.org (Postfix) with ESMTP id 37A9940E5A for ; Tue, 21 Feb 2023 04:56:10 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=juP5pO7rpo7vGZQn/X6PktRnmQTtkopzxId11XmDph2d53mjUk/kOepEBZkjUYCLpDcZClhm5dllviLWQe6PHgOk3jUfJJA3QjAowpVzw7t83LNiib1QO7AHrCqwZdZ64DOVOM9/hn/1Y8N+bIU6sx6IJy47h3TX9v7yFgvRzMeLJxMduLysvO20hTeyLoRLmEAYcWlNlya/2cAamRjcX/8nVkE1x2/+BuI7qQdtYUcddJs5RnQvLix1h7NX9+B+JvW8QzoqvadlyNPL2bBH5fDeEhnnKrGpp1VZ0/p11ODfkxxv6y24qitWYlgvdQ9Gc5jOsd61gwiDTHrq6qxnzQ== 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=OWhEswguRfCJtvKFl7t+YfidXTw6HIBzFjKoY9UYtVg=; b=lNMiInSsLlxL12qGSDu5d/wjT+KGpgaue7x0axz9v4URTXt42urtujZAzr4BpKH2GyPec4Hc4sd0SKoBgj2nFUaZRZkab5bWJigpVh+CTLXkBkZMNBnQKhVikMlCRQd7LWg3l2I5kf0N+putb2PJfbbiRKGYGgVuEJRQDWBT9bxaV3tCXfsZVI/l8UdJWU5c8e1xMjV9dO1mjYkZ2kd2pwAx6e3PAop6dAtkclTKD7XepNGYys6/6bgc3nyJDKX8ZUdvnqpGOSnjqNkIu9TgEbV7H1rnI5BQiUBIpi8Tqj2to7YMjadCkTh962o73fTEdIdHRhXsEleKlzW1ppo+bA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OWhEswguRfCJtvKFl7t+YfidXTw6HIBzFjKoY9UYtVg=; b=T/5zUn3je3wo8AyiNIcXp9iHVrrBvhzxFs6UpAF4CIGovDiUXUMJbiuXBuC3iqlqQqj6FSKb5Zw0R7ccLx5s5tmkOd+hYSRFSC44nnqUv30+YljmIgOTIgv/7B860A+w5B4Odz6jJO/XRUQT5PobZE4CbNPsMaxG/KxEBdG9+Rg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) by BLAPR13MB4740.namprd13.prod.outlook.com (2603:10b6:208:307::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.21; Tue, 21 Feb 2023 03:56:08 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::7ea4:e421:5dd5:9f4d]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::7ea4:e421:5dd5:9f4d%7]) with mapi id 15.20.6111.021; Tue, 21 Feb 2023 03:56:08 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, niklas.soderlund@corigine.com, Long Wu , Chaoyong He Subject: [PATCH v2 1/2] net/nfp: standardize the use of RSS-related codes Date: Tue, 21 Feb 2023 11:55:47 +0800 Message-Id: <20230221035548.28092-2-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.29.3 In-Reply-To: <20230221035548.28092-1-chaoyong.he@corigine.com> References: <20230221032909.16888-1-chaoyong.he@corigine.com> <20230221035548.28092-1-chaoyong.he@corigine.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SG2PR02CA0026.apcprd02.prod.outlook.com (2603:1096:3:18::14) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|BLAPR13MB4740:EE_ X-MS-Office365-Filtering-Correlation-Id: d4ada922-4c67-44a3-5fa4-08db13bf903e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FYaI8QcoGM/kChYf6ZKcjaT8cZ2KuGWbycVQXAHtJ1qujuBDTtY4q9Cqe4m9JAnHAvY2axZhAi5qCtSbNYrPdvMqBCEJ1VYeuQ82If+8Hb6KWZJTUHNRUrZIz2zRDG48nUBdS4cS74OqC2FVf5mQqqBaOklIJYRlA/sxjrYGAvFlvH7qaNSnXhcjJ5uJy3uvXNvRNthBTQuKy/7SnxT824G2vlsMq8Rp/bb7qzC0+UiAHOsvA5nF9Rl1BmQRcWTh8liRnFaJe+vo40IxiXbNA+Dl3y7pqTik97tpBBUmxGE/pSLlGymlyvnobbMom1TPZynLu8jeAHEvVSjZP7VTSa4RIyZDPZrhLHvwAI6oZfaV5MFWXoion4kJE6QS+nDNUdKeuo4iqiDV8LsnIN2Q+xbMvO0aHvKSSNPVgWINMCK5pLwxSnPZHTw9MtBG5PryI9W5PgHM4knHWa937sLzCR8SV+MvHJYC7YB+KfV+w3Pqf3l/0y/8rXBccR6aeE4l3PbYef3mH04P0Dzi/DTKKUxC/IdmJNmnx3yqDVed0FH+mYsBJPAn+kHkrq/ID9wuDSBgQpAkVos9XownDP20yy41f6nDTuDupy6LLQUXvfAo8I4G9p4Ul58z7TtJMlhwXFwMIHm3K0Ge4dzMm1ysiR8aM2ullWphkwnby9ckJcMpPPlPYqAt04TMfuGe7uCxxPGt/Dy/CdDryJpi9MemHg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR13MB5545.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(4636009)(346002)(136003)(396003)(376002)(39840400004)(366004)(451199018)(38100700002)(38350700002)(2906002)(8936002)(44832011)(4744005)(5660300002)(6512007)(54906003)(26005)(186003)(83380400001)(41300700001)(2616005)(36756003)(8676002)(66574015)(6916009)(66556008)(66946007)(66476007)(4326008)(52116002)(107886003)(86362001)(6486002)(6506007)(478600001)(6666004)(316002)(1076003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?bXZ2UlJSeGNuODFBdFpiQS9FbDBKb3RraWpWWXhwc0VCUGk1QXlubEp3ZS9r?= =?utf-8?B?ZjN4d2VEaU1TTXZjTXZGRlVyMzJrdDJFQWRQdEYweXkrc3VheWI1b3NDOFdx?= =?utf-8?B?YWEwRjRLSUkwZCtiRFNSWlp5bzJwV0xNTk1zNElpaXZWVTJINjFYQm5lZTZM?= =?utf-8?B?UUZPSW1LMXZ5QXJoUG41MnZPd2Y2SzhuQnVPWDB1TDlJcUgzSGdSbVRWd3Vk?= =?utf-8?B?SjlLajdzL1U4RHRzMWxwZkRaRGtsb2FRN0NqTUdoRVozZlA5OWt3SmE2eWNi?= =?utf-8?B?SW1RQjRLNTcvTmxzdmhqdTgzdX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nJ3SHcrbkYvRmZzTWdTWU5CQlNYK0xLUFZBOWt2NjZCaFMyUGFad003dEVi?= =?utf-8?B?ZEE9PQ==?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: d4ada922-4c67-44a3-5fa4-08db13bf903e X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Feb 2023 03:56:08.7275 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 0CDwdYXxyM8ZPVQ0lo5nXKVUr0wVQCxcXG+8mwXHR8cgBg5Mv3VOOK+PYPyKrJUA/8/0ziIV3sAsRhob/obwb44f9azMfcWIA+CG8nd2Tu4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLAPR13MB4740 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: Long Wu The usage of RTE_ETH_MQ_RX_RSS and RTE_ETH_MQ_RX_RSS_FLAG are mixed in nfp_net_configure(), use RTE_ETH_MQ_RX_RSS_FLAG uniformly. Signed-off-by: Long Wu Reviewed-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfp_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/nfp/nfp_common.c b/drivers/net/nfp/nfp_common.c index 907777a9e4..a545a10013 100644 --- a/drivers/net/nfp/nfp_common.c +++ b/drivers/net/nfp/nfp_common.c @@ -171,7 +171,7 @@ nfp_net_configure(struct rte_eth_dev *dev) } /* Checking RX mode */ - if (rxmode->mq_mode & RTE_ETH_MQ_RX_RSS && + if (rxmode->mq_mode & RTE_ETH_MQ_RX_RSS_FLAG && !(hw->cap & NFP_NET_CFG_CTRL_RSS_ANY)) { PMD_INIT_LOG(INFO, "RSS not supported"); return -EINVAL; -- 2.29.3