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 C6F82A00C3; Wed, 7 Dec 2022 03:18:13 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 64246410FB; Wed, 7 Dec 2022 03:18:13 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2114.outbound.protection.outlook.com [40.107.220.114]) by mails.dpdk.org (Postfix) with ESMTP id 04810410D7 for ; Wed, 7 Dec 2022 03:18:11 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h3fH55SM/NfaJNZdY9dqPpk7mpGMZn6wSBBhYTFBeNEBr1PzrqkSbV/nV5iJVHy7uFTG9RtZWOFcacnKWvn+j9d78iRXGrsOr5fTinfYgdbUSx74mK+2yQGwBieRSFIR8dQKOwD2Aj+YCjX8zhllcpAXLncqd/PCZuc1BK0TJFRSgJz5nj1ddwopnwCkUmnZD5grSdXi+spjzuV+q5bGwFSqkBDH+vK9BWc7fnCy2PVeFvgOGfz3rLjiLJF1ZvCMLXVIxIgzwaRmSrSZOy0Vb1jodSYxLHpc2G46GxRQXEHcQg98FzkD0e6z1ZY+ToGcB7nuxdTkkbyNxE3Nh37vhA== 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=1gek3gqvo8l7KQGkN2ZNXQDUu8kUCcqfn6LHjZA1edI=; b=IVtAxw+lN3Dl4Wst2D4g8j6pOPJHKfgHlJIY+OgUXQJkWbOungMfvOUNQgw77RIVm+oJ+qxH0qQ3qZFP2uqGfcDEXfzvTfiAdMbzv3BXbrmO3J4LvsbzGqnTZH4L0WEakO+K3Z1HjxRy/hJ1n3H/ASmzZ8YZ40/0UoKfJEv6brxl2I9Pg7osdguxER8FPrrV0n1HH9gFJmjwZWbyG9ab7y7JKjbdgDSQbae8rIOJOWHpFjWhROTPQ7HYAVtL5ymZSx32FHMj7iVk+wp9y+XVfDDn2+EBIdK1yCr6+NZWc6QluzxoNaUAk7pZ6mvDIqCZlpcijBn5ty6CCur60gFNDw== 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=1gek3gqvo8l7KQGkN2ZNXQDUu8kUCcqfn6LHjZA1edI=; b=ZyLHP5xGvlDSz0y5awR9zlQqTIZ9eAvYnpT9W1Meg9ly5MtsHDCi+MLIv2qhXCC7dSppq25T91+HDShpjPn0NoHWrZLjhM+9dsPWvr0DzioD88+ADUjKfoZqgqFpWxclJNdaJASZBqJ66GRcsdfPl6vffYOvNM6DdYwI2/EkwMo= 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 CH0PR13MB4603.namprd13.prod.outlook.com (2603:10b6:610:c3::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.14; Wed, 7 Dec 2022 02:18:09 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::5122:8c31:51f3:4ee7]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::5122:8c31:51f3:4ee7%4]) with mapi id 15.20.5880.014; Wed, 7 Dec 2022 02:18:09 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, niklas.soderlund@corigine.com, Chaoyong He Subject: [PATCH 0/6] add offload support of meter for NFP cards Date: Wed, 7 Dec 2022 10:17:42 +0800 Message-Id: <20221207021748.40143-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.29.3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO6P265CA0021.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:2ff::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_|CH0PR13MB4603:EE_ X-MS-Office365-Filtering-Correlation-Id: 3b94eb3e-e1a9-4181-7ee6-08dad7f948ae X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TEV5oeFD3gOxvj9wWFO0oJJzEqoGcFQk5ui9plXSbJ8p88vRg9lCDybj1N7vkYXO/aex3jbgJ89rSG6mQjr4AEUAcoGltEdRsbkU6+lpqQdFSTKj3Ar7dBdi/E2WkxE8ocFDF4ryyWOjDubJ19UMaDPLRlZAxn42X+1JpxtuQqqwhkfpJISvaz7Ze39JrLwHsfRiVKQTUM1Nao6brMRRbLfP+d6ovSnc/B4ZuClCslwWk+Gwg6mFrN7xCrM/bymSCeQKmTyONYioiIEfNyb3K5ckhLYytbIQZ844+CY5R5YHO5Dwkkrx7VjUqTtVz/FXgDSkEt3R9w0ZJR8rCrI3pY+GahmrR5sYn4jNulmXpf1IrlMXI8qqm1wuD7XccFhx6PciSWNTy7dRQB4CYq5Utq6ry34I/yLVSdWLroeBKs+mnENAHbfoS37/Wd/zOplniiGeC0DUVG//QWlmlzz6apbylXpHQiDT8i5hhdDIdR0+kdfuXKurVew0UKoN20+FxIC9V4cNTYW9lMeT65mFs6OA6+mK/nbkBPh2FCG808RjQt9mZwXBpJ9PZF2QrDCFXGEqIQnOJrGQ9MFAtDt4n5rnSvLmiNSmZx9q3iCr/nyByap+18OfozkcPcGx6RHkS0hVh8Isf5DLEHigtkWTIHXehe9uAZ0QlAXpcUuGFT3oDQ4HbpbsvwpbBiy4hC2EWAyPVSNi69mRvdL0jkflsdWh9O5BXAJZ5oCHhjsL4eM7NxBpKKMmHbvCQYybYX78 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:(13230022)(4636009)(136003)(396003)(39840400004)(366004)(376002)(346002)(451199015)(107886003)(6486002)(6506007)(6666004)(66556008)(52116002)(6916009)(66476007)(86362001)(66946007)(478600001)(316002)(8676002)(4326008)(26005)(6512007)(2906002)(1076003)(186003)(38100700002)(38350700002)(2616005)(41300700001)(44832011)(8936002)(83380400001)(5660300002)(36756003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?NjEwWVJiUDZTR2pZWEhlWkpWcERvd1M1d3dLVURNS0hQeUZQaE5ZNVJ0cHdJ?= =?utf-8?B?dmx3U1JBSDZSZ3czVWlJUWlhQytTV2ZSdkc0dytHUExveGF5eGFmZURmZm4x?= =?utf-8?B?WHVhVU1DNVNLZXZYakxZUDBuL1JvRXY0NTh3aFR2WW1lLzFJbnowQmJHeUlW?= =?utf-8?B?N25EUUtPUXJqZmFCUHU3Y3hzWS9VR0VVVnRXQjc3Q3ZtR2Iwbi9IUHkzWk5P?= =?utf-8?B?RUxSNDhBOVJXYmRWbTdxTzN6bDlKdXZWbGlMT0Y1dWxWRWVqSWFzYklqbWpq?= =?utf-8?B?VW41NWVtRlJ1SVFSMkI0OEJSSGQ3VWN0blV0Yy9wY3Z2MC9DdU01eDhsOWx4?= =?utf-8?B?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aHl2dnpEYTcwRjZCYkE4?= =?utf-8?B?Wmc9PQ==?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3b94eb3e-e1a9-4181-7ee6-08dad7f948ae X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2022 02:18:09.6632 (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: e2BXZ1G6ch2Uq6ARIOxX99y6HVcfdbyyq7D9BlDBLJ03fksHoV/9+3iHcbh2RtFOGh9dQkbAh6o0SbLzBpNnRktta56ebFC2pyS2Fb8DLwE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR13MB4603 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 This patch series mainly add the offload support of the meter for NFP cards, includes: - Add meter profile - Add meter policy - Add meter stats - Add meter action - Add meter offload support Jin Liu (6): net/nfp: correct flower cmsg include dependencies net/nfp: add meter profile options net/nfp: add meter policy options net/nfp: add meter options net/nfp: add meter stats options net/nfp: add meter action logic doc/guides/nics/features/nfp.ini | 1 + doc/guides/rel_notes/release_23_03.rst | 4 + drivers/net/nfp/flower/nfp_flower.c | 13 +- drivers/net/nfp/flower/nfp_flower.h | 1 + drivers/net/nfp/flower/nfp_flower_cmsg.c | 88 +- drivers/net/nfp/flower/nfp_flower_cmsg.h | 25 + drivers/net/nfp/flower/nfp_flower_ctrl.c | 58 +- .../net/nfp/flower/nfp_flower_representor.c | 2 +- drivers/net/nfp/meson.build | 1 + drivers/net/nfp/nfp_flow.c | 86 +- drivers/net/nfp/nfp_flow.h | 1 + drivers/net/nfp/nfp_mtr.c | 1143 +++++++++++++++++ drivers/net/nfp/nfp_mtr.h | 182 +++ 13 files changed, 1597 insertions(+), 8 deletions(-) create mode 100644 drivers/net/nfp/nfp_mtr.c create mode 100644 drivers/net/nfp/nfp_mtr.h -- 2.29.3