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 47B7041CF5; Tue, 21 Feb 2023 04:56:13 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 406C243137; Tue, 21 Feb 2023 04:56:11 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2094.outbound.protection.outlook.com [40.107.243.94]) by mails.dpdk.org (Postfix) with ESMTP id 7F9CD40E5A for ; Tue, 21 Feb 2023 04:56:09 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B92nG0WOrgPirerGXE7r+L/GO4NxzkqrJmgaIkT13PziEWpSwJRBJ5JG4nljDyIk52aamvrkoRD+q+7mSZZgPF24qJg4WBFC5QOD/Av+2zRDa+NIdP3VqU3zXpV/A4rQ4EbEc2tnEkSJ+P4ZEdqUzPgPw5WXbqCu+3QNm8fL0jT7H5EbJ4kk2fg/sVE35mLBHd540fu1NadcaC45132c3NHJU6DmvSUtmKH2A21StClPlaLWeTzYG+CcIJCi/mK0Bf2NcJwyvIClHilbc4TP5MgkzJl0LhCtj1iji2sVYXsgSQ2Q4brdbUxrXad0iPIF0nBGMWCdamOaG7GRc+dxxQ== 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=MYzDByWQCuv5lBSv033w5RbV924FUA92oJjYNjT5amM=; b=hA84Z2wnvezmC56xvW9VEiZ36QY46VtbFRWu5H4+zB8pecld1Bb1ctwg+50ThUdXy96mI4FG80xVkVb4C7evD/hS/D2HMjPTszRJs2ZMzvqjLZ1tVERCkkphxmhj29/AztjePwc7CQmJoS49WZRFXO3tZ0ubcuxJ2nyFwVdHG2kyo8nD3MPdkkfihlwl2fVml/rzIUBtO3WDxmhSpQ5bSDuA6ZFeb6voUnqpl6L8ivQQybAFMP0vYp7R0tHIc0zbg6QBiOOYSz+eXSraQrlhytE2OBBhn37zvspLtpIwdJwhlFi0dBp0JTuHfGkTSrSXhll9V4Fe3OkGfLyqYpCFMA== 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=MYzDByWQCuv5lBSv033w5RbV924FUA92oJjYNjT5amM=; b=G/Ka7IdkQIMf0HJX/RsY4gTMsOu+Xl/QxvBg8634TXy+LzHkNPw2SORDajD9AiViSjdWZuFc2DjR7z7LfGVqvtbrNyYZMniRMGi+SpVIwM3kxNNBiS/o8opw6C7bliDOPTU9miHCcHxYY71RolT025f8X0k55AVt+Wadc/QkcWM= 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:06 +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:06 +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:55:46 +0800 Message-Id: <20230221035548.28092-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.29.3 In-Reply-To: <20230221032909.16888-1-chaoyong.he@corigine.com> References: <20230221032909.16888-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: ea2b8e19-4ffd-459b-862c-08db13bf8e82 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hmMy2pJ8NZhlgvY811lpV7P9w0eszvYXMwWszkFYygRzwpoMcWQ+xcHeCASbb7WmWwE+2cwC30+d0csMXUDvCbxy5rSpGeZFHddUq7gMhp5UCR5c/ER6EmS4JNQGa57C1Bg3mfSc4xqo1Wt2Ch19HEKUZYz1LyyA0K/hY3r1rgZACSI4sGzebHpkoS0r0K5ZQvcrAetI7fQKWPmwBxzEtTiPm35EY6t5eZLo0pu/bw1FAd1gKgITB4PsHfYVw+LQorvGA4GnTa01xBUgvAOczgloTnrV+/oBRbAZkb66WNx+BMPSU/k1PEYerS1Q4JfWoW0ueq3XQmgGLKgeWbR6ZoQIk6W3hV7l9htGAylxac6sDF42SkI+3U1kHUi5FCYqusV7NQDrNCEsh6Y8OK157ARv/+5BpTDFdr4b5K+mq3As+JNKRz3KjPC2VkKFFxtUFLiypIOHL59q0HRaWjV6yPacokasNvCUqsUwU9JYxJ7irxfBxS1WciqcY1PTC8GNrAWYrVt9Ijp3tNq63+As1Y+G0EOb/dTY1cxyExgzC/kpIPTWORZqnK6e3h3tbNwnyc82uZkwAwWK1IH7lrfLhs7y1n+G7Jw8RNTr92C3orXYjy7VAwdmOj21jHnR5jURztPF05BnqwQnsNdZMEt+q7ZSUba5H3BeOldkZmp2sHU2aukdlPpfDlIYNh3JB1bCIQlgQYA0rtWNRNTGckXLZg== 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)(26005)(186003)(83380400001)(41300700001)(2616005)(36756003)(8676002)(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?dTdtU1VRTmNLVndlZm4rcStEQ2d0R2FsMFBEZGtNa1drNzJNYndyOTRyV1pi?= =?utf-8?B?T1VpQ0pTTmNzelBCZzBzMDhwVS9FUXJpdjNaTllpZitxSm9tZ0daWXlYRjgx?= =?utf-8?B?bnc2VVFXSDlHRW1ua1M5MHh4MkIwMm5wZEdkNTY2NlBxQzBQa2R3QkZBdEtl?= =?utf-8?B?Kys5SmZMeWJwUkpUaGFhdHh1YURaV3RjRGJaeWdLbVB0U2txem9RUURLU1hh?= =?utf-8?B?V3BJNXk2MDllRVg2YlhLTDFrWlNQUDMrVzA3ODgrODVQb3hUb3ZibVhYSzdP?= =?utf-8?B?a2pjT1F6R1JGaGZ0djkrekJkRTVDaFhsUEZtYnM5NWVXN2l4OEZ5dG5pOTBs?= =?utf-8?B?RnVZZEFqZVhUMDNJWS84V2pYam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aNzFBeHIy?= =?utf-8?B?L0E9PQ==?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: ea2b8e19-4ffd-459b-862c-08db13bf8e82 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:06.2268 (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: OSt1w7tTyBtExJzeveG0nx6Le5xbahaYU3u6Dq4YGSt9JEaB5Xq54+AzQjuRX2HBLfUh21EFy8V0ywJc/F/cM1wcxLrcU9yTIR6LnklqZ4U= 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 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 v3: * 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