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 B48DA41CF5; Tue, 21 Feb 2023 04:29:31 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 78C6A43143; Tue, 21 Feb 2023 04:29:27 +0100 (CET) Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2122.outbound.protection.outlook.com [40.107.212.122]) by mails.dpdk.org (Postfix) with ESMTP id 360F440E5A for ; Tue, 21 Feb 2023 04:29:25 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bvllBqF2Wg8+httQMDaxxL/S7RmXoKXj/Jz5+oFvr+4C165Gd5xp3jWHaxggLRyYztEZpz6HcRgn8geJN+2MfeuAzRCc33SpPbBmRPdIORp31Fytrdb135WWnhxZBrsTSX/ao44ArtsWnIOQZok07WPvbPvs5u75NfQIoaM4OCnlbsMjRRAtHEV+Zx8V5XJ8jbMH80lZBzb5QoH6V3I3TpOSQzPNs+778PQldX3VYn6fjTkDv2G82ir28HnIS+DdyBSNobXNFH9SVq+mam/uSJ9S/LRcC0vcYw8hfoLOlsJLucp/c29Sw2D+XnlRl2n3jtZ5I8G9mefwkyZJfTqQQQ== 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=U0Hk4NFPrJJitZ126HLSCZM28yOEYgYc588qU3VRhpXOO9zaUaYh7oSQ/oy0WJwki5FLpo7dvJM5koIHy8Ij9onUbEDt/FznYprNmjyS9ig4K9/wy7XQ5ktaizEtx1iiXI72saytGX6iqZG3F/ivyJw+HddvjhCSy5AcL8nS+96Sq20ejqkVAnKtrzQbwo6PhjYby4h6NrQE7KUzE5CkblJYyZw6IWynGdEQOx9RH/McHuiDGl05HgvJ3X7Jx5CeobK8QJzxCCnolMYzzSThVLhHezF5o+a9cQvNczSuPn4hRVtR7jGxg/v/klvUWRCPWhARbI9f5tmWviH2oLBkNw== 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=gb57Nydwogp4OpIe8NFzOHI2hX+ttsN9iJjC8gR5zMwuC3hHSHtBFcQ2nLYr8hxfryT0hleg4A7pmsL9l+rlXnn8Ck0x72TlTrnQOzqPUNGcExRtSK7SdrQiGf2fd2qXtMj+AFlgBfPbGeffcZg/W4NmQ07oZkvnWju9//ChrNY= 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 PH7PR13MB5479.namprd13.prod.outlook.com (2603:10b6:510:139::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.19; Tue, 21 Feb 2023 03:29:23 +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:29:23 +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:29:08 +0800 Message-Id: <20230221032909.16888-2-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.29.3 In-Reply-To: <20230221032909.16888-1-chaoyong.he@corigine.com> References: <20230221031055.5484-1-chaoyong.he@corigine.com> <20230221032909.16888-1-chaoyong.he@corigine.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SJ0PR03CA0168.namprd03.prod.outlook.com (2603:10b6:a03:338::23) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|PH7PR13MB5479:EE_ X-MS-Office365-Filtering-Correlation-Id: c67e59d7-389b-40f2-ad1a-08db13bbd399 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UOxMfxkUHupAqJbZV7teN9SdvuWhFuNRWqqAA1X9a7TLfCV9BV8zcI5h70gz5Uh6myhDNqk+9M2oS6cNGDwRxEbjh534s9VS3d+caPG61IcofVdchVjKZKUa4yGM4/IxV6XCb8h8sK8Zg+aOvvT8Kkx0Jy96enHL4Ub2wZXU0FRs9ir7Xgq86aqSarNz8FKSxQFwnvi70QQSxfzplGgW5IVAHR2xjLJwn6inDpZzmnJINsRHYKkYx/q7gwGRpRYTUQLm4We5R3bZ5TDfwlkfyZ1xeZ8igB/FwJltfaHfAS273HD5O9TKfFBf9zN5Q9ODtWoTsRkqHIMRfvGbbGmXd2xMSWJlbtTuwEhsEHXzHpILADD3SS3aeKJ2Y4bKpE2Z7lbdcj9mbynwyB43gXvQN+7vIv6O7HtcOOiULUvyozRBUW4qho3AZGdwM0mA7cC/T9uuBhJAhJDbNCi/BwsKzMzWC5KCU7SJAIDnr/i8zSllFOv+cRllg82bXfNoJp5QHUTYNO6lOtPDFJrAFJhfy0DG5CmxURZl5UIW2FmfE7lGZbr3fqM2LylrHMsAQ1hkObeleaMTEAnJjoDv+uPq47g6oQLNw6ohMoQZE2PqVWd7G2CF+wJkx82ynqHbyVlKRt32LOdQIqfe0tseEXOT8hEoif0HI1X9+l7Jx3va/SD3jl0pFpAVQ+2OMC90RDP4T311+KFqWXs4Ar0htvxMwjJuCst77D6abj0efdOpXbVyPT8MGT+6F1Bpd6Ym9GJd 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)(366004)(346002)(376002)(39840400004)(136003)(396003)(451199018)(36756003)(86362001)(4326008)(66476007)(316002)(6916009)(8676002)(66946007)(41300700001)(5660300002)(54906003)(52116002)(66556008)(44832011)(8936002)(6486002)(2906002)(83380400001)(38350700002)(4744005)(6506007)(26005)(6666004)(6512007)(1076003)(186003)(107886003)(478600001)(66574015)(2616005)(38100700002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Y1hBejNPVUVyMXphMWpWNXJ6bExkajJCZm1La0RyZmIzUGh0L1c2Q2tOd1VD?= =?utf-8?B?YURKQmtDY2tZOWNmTTF1aHZLS0pMdVBKd0NIZlZXRXQrUVJDL3IreTRabDF2?= =?utf-8?B?WGtTWTNzY0t6OTZDTVNMRDJSVW8wVWJqa29MWWZqczNkc28zSEhDQzNVTUFi?= =?utf-8?B?UmY4Sm0vdDhRVEUzdWluWjJOL3NjbGl6YlZVVGE4bG9EUVFCblpTWXZVSmIw?= =?utf-8?B?RkJFZmVIOFhVTklDTzRzN2FMVm9DOGR6UU15TzBnUWpaaXN5MGZyYVpQb25H?= =?utf-8?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Q0a3VjQUZhV0dJRW9raE9LeXM4Y3p4MjlRRWNh?= =?utf-8?B?YUZFbCtNeEJBeUpvRjFhRThJb2xGWkpzRVFQSE10OU1HMFFJZERFY0h3YmRi?= =?utf-8?B?bnc9PQ==?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: c67e59d7-389b-40f2-ad1a-08db13bbd399 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:29:23.7307 (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: yUbMa0KN7GuKdjurgQ3zy5YO34EQB8GPpgOWHuoLd6tFBt88W3HL4WIqHwRrnmY+KvY0A4mAccHnNaKWTgXuCIerCv7rOeDR/t6NYW2zTpg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR13MB5479 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