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 79FA641CF5; Tue, 21 Feb 2023 04:29:26 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 69C8A4312F; Tue, 21 Feb 2023 04:29:26 +0100 (CET) Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2130.outbound.protection.outlook.com [40.107.212.130]) by mails.dpdk.org (Postfix) with ESMTP id 5232940E5A for ; Tue, 21 Feb 2023 04:29:24 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oAoBImQya8lgp0WuLRKCYWV4XQeDPMvNA4zDN6L1gr4BGwxz8C5ssicLH87moYg7AEwFlHvZ0sfBSQY3iEqzXGRLBKvEY/kwGLuAPqYvdaH3lRXNmma+ToACfXTOb6Txxv1m0PeIllIwhd6e+eyWMptyfBzPgrg+IDumBYhgC4+nfiyVXzXE9gy/RG8KFerL6pZvJN85sqIYoeCIHpgtGXxCvwb6o0lTr8T3zV8k8SvH7kI+55/0kt4KmRFrejgjf4XrlVPjcySs4bSQZikaNKRM0AkBSf/tnfYsq9Vp/q4cjb89kdOA6zCCuvHT12QSvf4SEQbXGvYE98i4lKv8dA== 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=0rIhsRTWrgC1s0nhIOYyIQolxa3vSXrkzUIvh91Buos=; b=JP/wOmvBp5r1I2BLNrflnvnYp9HDWDkieczPAl6raTyHz11rirKG4gettlvYJwcfnHaqu15MBt/FkT6wINnmBXkegj+zf6QZgbk7u32emlTuJbBLYtUW8pKKqRs+Dd3NCsyQOwlmg10UvercNuea1RxtNcCTKJ2iHWSt6bdlr4Blh+XM5IyRCEaxKATuFdbUYtD+SlHql1VB5ec1x/JrSzCBCaBsTVQxs2g9fAAMt6pcw9aB2FbnY9uS8yi9PhshuxtYC7t/Do9V4xn2ZdYXtcLrADK2B4cKMwCbdLHMerkSFmunwKcy4+64e45O+Ut7DfiAetyYUT/cBa4T9INZ2g== 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=0rIhsRTWrgC1s0nhIOYyIQolxa3vSXrkzUIvh91Buos=; b=R1vbK8rbC5o9Q1XJVA/SzpKkV3c6t15Rmgpm3rrzU6LKSgdUiG9KgFIyoPRyl3b8lyHbFF3ZZhHt6to27SwWpspIpxvtzssdTiX4NVjshRuhR43jsysXpczr/+5/2WNk+TGDPLXpfXabCI1FFXnVUKAghtISrLjC3HnSP99DtUQ= 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:21 +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:21 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, niklas.soderlund@corigine.com, Chaoyong He Subject: [PATCH v2 0/2] configure RSS and handle metadata correctly Date: Tue, 21 Feb 2023 11:29:07 +0800 Message-Id: <20230221032909.16888-1-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: 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: f92bf29c-31d7-49b2-0db3-08db13bbd25a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8jRYJltzSzG6yUGpRknTDDCheY7r8nOogfX6e2dz+Uv5lHin7mPmhcg5YrPIhfvd1LsFQ9buZNWHKhhkK3kV8d+gvASFbTIn4mjZpJtk8BRg4EWuucoR6WiQd+1Lq7tfVencCGr3DFqEHaBtnU4/5Lo+1JbpuCib5jXoiUUaUOUSZeuIBahqEzGP6pyhuzbUHJ8zv0iG6Rf33xr+944l2+O47YnESuMhDXHSweonBlWkX1nvcsR8giFMhQLfElvvOU1eFYc0SDO4TCXZZXveUS+N3SX5QT74JBV06AOFqvMaC/Hi4U6e+h6/rarvsDEWHGNotZgtfI9PdUavL3LW6AYATmzVDx3phJqC5ccPtnLUiyxwlptLlQAY1IiYJ0ePVi2p2en/y8j8/oEYXIwkLzRJGKJUNmnA+dVPIVX7W7kZoLUrayIvIdwfPDuTh09TGilGW17V0C2TElSbIHslrGT9TAsB8Vd8NzU0W3NVF01EUTFh31hB9UAVTpiv7gBWFhEZXChBTRYhEkcobE1HajgGvyLRhCBA6M6WF1VT5xFHUmN6z0DWzURpF+L/YJFdW5/2Y4WvPID8eFLY8NQc2IlZWSjWVHQyLsX+aPXR5BglxYs22+Jxr/J4B+C2Qf4P1wUWmU4pZoWw3BXoigl/i+B7W05ws5mDWKTaX0ZhPps+mHZXQTMhbHejjtXkqUHfrA/lm2YK3ARi7Opu9qMXLdTsQO32LRpsoO/4GIn1VoRycnWIeiaaIfz0re9OZJ+s 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)(52116002)(66556008)(44832011)(8936002)(6486002)(2906002)(83380400001)(38350700002)(4744005)(6506007)(26005)(6666004)(6512007)(1076003)(186003)(107886003)(478600001)(2616005)(38100700002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?c1d6OVhHMWlzMXlIeURKVUNxbEVEU24raHp5OHQ5bDY1K29pODJEbm84dEtq?= =?utf-8?B?b1c3TFdsMTF0VnNyYVJKc0VTSW9UZ0RxQ08yREp6VHJsYnUxL3hHVTFxazF2?= =?utf-8?B?SENBZHdLeDZSWGR1Yjc5SStwSzM1ekJWRWdkcVdnT0Uwa1BRbHI4TVJYUEVN?= =?utf-8?B?akRIWTFNcHJKLzQ5bTM5T1EzVVU0UGVCUm1VZ2haS2lCOFVMOFdGNFM1WVNr?= =?utf-8?B?QU1lVzZ1WTV3Y1Q5ZWtSTVZXWUIvZVZtc2o3Mnl6cTFsL1d1b21NakN3bW1q?= =?utf-8?B?MVMvMC9nRGFKa3lJbFZWR0R1S1RrZWxRRnBBU1d3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B2Y2c5TWJ3NFgvVHhwcXlOZUxOd0RrVU9ESVdoeTZqSlBmVS9BVWpk?= =?utf-8?B?ZVE9PQ==?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: f92bf29c-31d7-49b2-0db3-08db13bbd25a 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:21.6829 (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: xHDg7KuW//56JHKwFigHeTimczYpvnH0tFSCP0qUooDp0ZHWAgACaRQnU+UdGic7RoGPaQuyAIhrZ+vbPAhzLU5QUFg6IheS4jFt9FeXEwE= 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 Select the appropriate RSS configuration in the initial process logic and modify the logic of processing metadata based on RSS configuration in the RX function. --- v2: * Correct spelling error --- Long Wu (2): net/nfp: standardize the use of RSS-related codes net/nfp: modify RSS's processing logic drivers/net/nfp/nfp_common.c | 25 +++++++- drivers/net/nfp/nfp_common.h | 7 +++ drivers/net/nfp/nfp_ctrl.h | 18 +++++- drivers/net/nfp/nfp_ethdev.c | 7 +-- drivers/net/nfp/nfp_ethdev_vf.c | 7 +-- drivers/net/nfp/nfp_rxtx.c | 108 ++++++++++++++++++++------------ 6 files changed, 122 insertions(+), 50 deletions(-) -- 2.29.3