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 D555A41CF5; Tue, 21 Feb 2023 04:11:22 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 80A4A40ED7; Tue, 21 Feb 2023 04:11:22 +0100 (CET) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2116.outbound.protection.outlook.com [40.107.101.116]) by mails.dpdk.org (Postfix) with ESMTP id E498F40E5A for ; Tue, 21 Feb 2023 04:11:20 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c1hx+aJ1lgnyBuj01YF6RtJF3IZ6XjycfZU4XL81k9uD3QcTU+UCkXiH+8tIr3Nxok2c7EII4Mzx4JzHwZuXppzXaHGHimrCyb9dqNONBeCnxQwMh+vSXHgAYwslZRhfYY/15cit0+zgLJzyFhwdL5YvvVg3UGztOQzs/xX9Xl+mOfCM5ZiWDAnOPsjIXEsptwgfWjGe476j7H6oc5e7UwPdVEFBbefffVyZ9nv49901tDi2rYsqWnJR/JycoNJqwpY0mOU78EwLusvOr2OPSrEziPk8BZjYdEa2pClnVbaeZVF1E5zZE0WGzqGirDtYeJfZErPUjXfug9tlCy3hXA== 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=BEBRiysYtart7E++G8WXVXzmGx83i3e1r6HTp6yqa18j5c1m45WhTP7DM2BMq2mZZH0kW1cAx6+H4ZwLgVnil1N6fH8Tih2vePHiC8o1dN4pzOEJo+4ed/bmOmAYfKGlHGm0QqNc/7XNFd3xJBAxS7IcbIr8W2PGrbewyD1nkbMvlInu9rGSLf5wIcMWnSmTedFmhI6yKzfy/vzmKADz9nV+pEou4linqMMsVpZJYvLJojpWApnJJxXRx2HqEnawsdTSG3mPkb8F7/yY+EVwnMWISr8ZEG9tLq0gH5mw86xwiwUlwPpAZCvacBV04VIx+TxlJZ7xyLlk/+RVRVo8SQ== 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=MXkVD442dBhdvfCZRZAHcc7/hV08u95Vl2bueV/866oAGE67KPoh+3aKUeNF9IJ2wOFfuRzCONT8pC4M5VZ2fnEOKH+dthKhBQauw80mlTOVtKmPMW+G2uln8pkr/ROotfWMIQiX0kluH7hiscrpebYt5D8RNrsMQGx9d6DNoNE= 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 SJ0PR13MB5658.namprd13.prod.outlook.com (2603:10b6:a03:401::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.20; Tue, 21 Feb 2023 03:11:19 +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:11:19 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, niklas.soderlund@corigine.com, Long Wu , Chaoyong He Subject: [PATCH 1/2] net/nfp: standardize the use of RSS-related codes Date: Tue, 21 Feb 2023 11:10:54 +0800 Message-Id: <20230221031055.5484-2-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.29.3 In-Reply-To: <20230221031055.5484-1-chaoyong.he@corigine.com> References: <20230221031055.5484-1-chaoyong.he@corigine.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SG2PR02CA0066.apcprd02.prod.outlook.com (2603:1096:4:54::30) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|SJ0PR13MB5658:EE_ X-MS-Office365-Filtering-Correlation-Id: 076383c4-2c71-4de6-1cfb-08db13b94cfe X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eC8FOKSlVWt/McKevnZqOEmCAkEoq1aSnqBbQtN86LdC6zHJhy2E70+Zqjo5nY++kwPkjIPLR2tUT4FL9plc1/uQoeCMm3AQH863toHngWFXqex29J4Rfj8Ht4i2syAfbO+/32y+91L0rP8cjn/mMNOP5dpvMc1GpC0PY/DQWJojQbJ7fxCTCTHxIaFNPokU/BLOK+BnrRXViwiDIzB1jZd7QA8jM2qhuG9hU2g2BcOWCZxKnVr+LaMs+NmHBgUOIcHEsfoNAWXtUxV5JIhwKmEvm2bF7b+Y/HCcS3hxfo5qD2XGBylQOGQX11U4E7BbXEinSOY7pJ+iPLL2Eoq9grUwAd89sFLltFJ84j+Wu2ULbblA0HSATTx3h24bU0d5AgeHHeS+s1w8E5zbxWmtleoiyEYhbW34KjJraFmWvQGtglkH9/69sBAHk0/q6fvY8UVpv+hxKF/Un2wNFnUc5O/RrvphuLZkyZlFQnExh4FcIqkMpK58aIz7J1nMzRLfu8mxiAFKFJRGvjq/Yol8Ci85syXH2nfYWwE9rua6nkh3qpsX5zxjsSMX2xvjB0hbGqq4BuR5chL7ev5ldHWsDwIe1hqPi7JU8qJhy4OFg1wmr7C9IseAv2cXe7h7eFQR+onn/qKXGcGaPUIKaMpd195DsY2xSjPy6bM9CnjcZz/XXejolGK6LUhCbi3PM0GYXK+K+ssqY0uMmQRz9KW2+NGvLILerOG9PFCU86ImowaCkzEZYGTU6yRGXxpBMu9H 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)(39840400004)(376002)(136003)(366004)(396003)(451199018)(5660300002)(8936002)(66574015)(83380400001)(86362001)(6512007)(6486002)(38100700002)(38350700002)(478600001)(54906003)(41300700001)(8676002)(316002)(4326008)(6916009)(66556008)(66476007)(2616005)(26005)(186003)(6506007)(1076003)(52116002)(36756003)(107886003)(6666004)(66946007)(4744005)(2906002)(44832011); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?V1Vrb05PZVlOckJmU1g3eldqeVJJbjIvZThDTmRLSDRtNUx6dzBDTmFyaVBY?= =?utf-8?B?aXR0V1loZjRKbUQwQlR1UFQwc3VveWpUSlMvYjZGZkl1a0Vwc0pRNFNUa2FK?= =?utf-8?B?VXJPY2NuaFNPaEVxYzFHdzRJbHJtM1FuWmtYZ3l4MXJXTk5kYjlGMU93bm9t?= =?utf-8?B?bFVKcE83NlJycVd6NGI1bzRtWllUUGtWN1MzWEY2MnZKemdZQWNqdEZuSWxU?= =?utf-8?B?M2IwRFRxU25IVy81VGxodVBwbzVrVUNlZm5keVZxbmtBOWR2ZkZuTVkvUmx1?= =?utf-8?B?clBYZkVnbTRYeFc3KzZucWk5aXRBUHRhNmd1K1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MnRVQ0RYb3BPeEFtejN5REZoeWhSYmZ4?= =?utf-8?B?Smc9PQ==?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 076383c4-2c71-4de6-1cfb-08db13b94cfe 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:11:18.8874 (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: mQQ61R3tm52i7wnhIlRiHPozlcRNBii9a2GgVfc18ligCo1t/C+4pRZDOa6w+TzOMtJgyn9Y09lGXiQwOhGGWt+p5co0KeZb2TduekBw1cA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR13MB5658 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