Message ID | 20241030213940.3470062-73-sil-plv@napatech.com (mailing list archive) |
---|---|
State | Accepted, archived |
Delegated to: | Ferruh Yigit |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6EA5F45BCC; Thu, 31 Oct 2024 00:13:49 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A898643505; Thu, 31 Oct 2024 00:13:38 +0100 (CET) Received: from egress-ip11a.ess.de.barracuda.com (egress-ip11a.ess.de.barracuda.com [18.184.203.234]) by mails.dpdk.org (Postfix) with ESMTP id CCB32434BF for <dev@dpdk.org>; Thu, 31 Oct 2024 00:13:23 +0100 (CET) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05lp2104.outbound.protection.outlook.com [104.47.17.104]) by mx-outbound11-85.eu-central-1a.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 30 Oct 2024 23:13:21 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=op2CeD3RL81Pzgxt5YEhmJRn8CW+YzbGW52YOWtVGcLpfBm58p2KPgJK7Dl6Eu6s17g5XiNwurhdzf4JOiQGe+lS5tVeNhhtaRt9YZOBgC6xRnPPgmacOp+Nd/1rIzXgQyNJH5XwoxSoLHch9tPLHNQvIDi1RV6MNrmiAU4lBv3sCUezCgDz8iYqd0bdF2gwZOVB5d0+YjoSmk9VNhezod5UO1tH93g7Z/TTKo6Aw1aPq/DcGt86yjSfL+8R5L7MeR2hL7wsXEx9FXCSGCkBH/U0OIBieR9lmjfhGyEYwUx84em9Q5nT+6zD7RvB83w7v2VolZWw1LsMcJl1kaqJJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=jqEf6rp29DxgnJm1HUq/v3bfbmPIxps90SoM/yQ5XjA=; b=jKV2hvPdpe3Iqw/uy4OnkKhV5qViOF7JJtHgGY6y0rcSQY8xKX8CeKtBvOHnlYS8MfkZz/x+a1Q1+qU9xsuhBUdA5CD5bj5ssSgAUEbzkpZjRPuc9XfZS4YRKUbaFcLdBKNaDjLiT3Nlfz8OytRhrxqxBvsPWe5UMGZpN3nynCJeaGJRl4mDzhtmZj0TvRmV9OuxrbwToC8I7dOdirNP0Z+JWrKr0U18HPeccl/1Ozrj8bwSPuMPuMfiOZEVr2mR12jNd5tl/Spy7MlWS3t/IRCFyC46cpsR/WBibZoRYfsE8RzSzQJ0qSR9dO6Il5ClxwGrJ8vA7Fs25pYBg6yljw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 178.72.21.4) smtp.rcpttodomain=dpdk.org smtp.mailfrom=napatech.com; dmarc=fail (p=reject sp=reject pct=100) action=oreject header.from=napatech.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=napatech.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jqEf6rp29DxgnJm1HUq/v3bfbmPIxps90SoM/yQ5XjA=; b=HdSxsk1pBTSJMHuhzsvgLvibBl4yzIGL/9wVRCc4xybvkcAq6L/CwhJytPCgHWuMxUXCIhve4LPPXgH4zF4k4EUwkeyODg9UDLFX1cQQYBXaR9RwkZqLc9cBYCC3cIIPE9MgWTwZ/KmpV30HmlDmx0n3cOOMi8B2FDNcVPRrhWA= Received: from DUZPR01CA0014.eurprd01.prod.exchangelabs.com (2603:10a6:10:3c3::7) by GVXP190MB2231.EURP190.PROD.OUTLOOK.COM (2603:10a6:150:218::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.32; Wed, 30 Oct 2024 21:41:03 +0000 Received: from DU2PEPF00028D13.eurprd03.prod.outlook.com (2603:10a6:10:3c3:cafe::51) by DUZPR01CA0014.outlook.office365.com (2603:10a6:10:3c3::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.20 via Frontend Transport; Wed, 30 Oct 2024 21:41:03 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 178.72.21.4) smtp.mailfrom=napatech.com; dkim=none (message not signed) header.d=none;dmarc=fail action=oreject header.from=napatech.com; Received-SPF: Fail (protection.outlook.com: domain of napatech.com does not designate 178.72.21.4 as permitted sender) receiver=protection.outlook.com; client-ip=178.72.21.4; helo=localhost.localdomain; Received: from localhost.localdomain (178.72.21.4) by DU2PEPF00028D13.mail.protection.outlook.com (10.167.242.27) with Microsoft SMTP Server id 15.20.8114.16 via Frontend Transport; Wed, 30 Oct 2024 21:41:03 +0000 From: Serhii Iliushyk <sil-plv@napatech.com> To: dev@dpdk.org Cc: mko-plv@napatech.com, sil-plv@napatech.com, ckm@napatech.com, andrew.rybchenko@oktetlabs.ru, ferruh.yigit@amd.com, stephen@networkplumber.org, Danylo Vodopianov <dvo-plv@napatech.com> Subject: [PATCH v5 72/80] net/ntnic: add flow action update Date: Wed, 30 Oct 2024 22:39:19 +0100 Message-ID: <20241030213940.3470062-73-sil-plv@napatech.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20241030213940.3470062-1-sil-plv@napatech.com> References: <20241021210527.2075431-1-sil-plv@napatech.com> <20241030213940.3470062-1-sil-plv@napatech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PEPF00028D13:EE_|GVXP190MB2231:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 84116784-3e5b-4a8c-658b-08dcf92b8d8a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|36860700013|376014|1800799024; X-Microsoft-Antispam-Message-Info: yroqui/GZCD0J8x2CKu8mESpgjjMnw+adBFIhRhnT/xvMlBf5v8ZDWfUcSB8PiXWTqfzj+eIiH7GstCurLS0Tn2DgRxbg1ikDNRHCwao+weplmQLtiH+YBIW+Nx79QUZK1pQ9SUWZ1i+k4PWJ1bMWbQ3XsPr0mcMNVE3LextSP3f1YQ7feOdF0tNEtFAbKpB8Gld34UJsRihcQq6F0PI0ymxnMymFkCky2gWsRz5NmAZFRUZqMNBeeFQBXwafLcPduUe/O0ktRYal6Yjp9ZN/MJC38L/88Ut9Gu0A8qr8A+HYmq8cAu+GlyZTyAI27PfZ3CWP5FL2KRlQa1Ffm28WCYrBAqcf3nW9HRPvyFggCBiRKw91436NljcTzV6lFFtc5iwzxvwsPm4uyBhJgKaSoxJpbN4GK8H35yX7Xc0kc6oDYjn1OX74Y4c+ca5xgUSkbztpVqXaGztTORBlwQ4igKxVG+7e3PouFdttD7ZCuuMcrWgPj5XiaqWVELOFWZgrwgqe1e1iHriaoDtVQKX842jHKhNSlvFHwJ1jzUY6u0aUqwpFcy9SCMhc73ZP8et6wl3Ya1LGMaxRErnxWiTlKKfqUVKTypuOfVSePbCO/AzhMVOgF/TJCUqZjjfjXrnj1U0Ot+tVeBbkZGJXlr6n8fcNcJbJ5k6Hg+mMCtF5PMm3/mqjhtBYJE/XCzkQy4cwD6A/55beqpVsd4Xl6IyGCDv8DtIp9jldyMol53JyAm4pVVi/dmT2oHV3oVcdgiNnP+ii6vT2E0KBNspbj5dZFzT7oKeuN6HFY+Q3rshgc4oyyhCfyW3mqdesPsCa32DD9eCfDP8UKdUZrgAzlrVgcs1kPfi4TCpFXlTWcvohx2A3p8FCVNOK9jneqJ8No1ThfaqC0VOuB93SqfSOHtov146tFLhS+ZV1WCNtmujnctmC8vHTcaT3T0tA+gpd6zFk5Yx28jREFaQeSTYwT+U9Lt+Xm7qQFUfeq6H8tRLwvvhaR2Uc5RbGBpGvTg/HvDCPiHI7bZVAA67Yqb5jElgpix9Q0UxPCvTIri3lMOrDXkkGVVRo1Xz0LcEbX+7XkagSksPjDY+/eXUXtakDPmVOq8htLvXgVBs/lo10+H/7GrTSZnS2J5yvLf3S7mUamvX0TUDVvvWPxqXX8Rat/h7yeYOgbPyu5RQxIxYEQ3tnU+n3isRO0z8mK1ziV+EvNg1lQ28opZpA2mb8gsM3NwDhi+tFRaz5RPkzEtAa/bG2RzMyCtlkaMck90UDyT10ceh8XuqWYOKDEQ0+MWkC82cmzEp8brdEFXwYvDG4jrKdwFPWIRCTeSrQ+YKThd9ZmBVvGQlIk/FVvF6oJso7UtgjpFuo+OFwIR9DjMeXiB+q65pGuL8vL3UjyogRCIaD0Yy/0nEYpFLmJCRbfmemYWakQ== X-Forefront-Antispam-Report: CIP:178.72.21.4; CTRY:DK; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:localhost.localdomain; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(82310400026)(36860700013)(376014)(1800799024); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: wLIjVKGS4v+S5QTDLfHz75KKpvVNQ2mdnQjkZF22QPUmRqN42cT5yPBKr3l3td4jtngQx7x5pCQqAMxqSk+1x7IVJaJvpyeR6tSvB7XR+T87Wuq8v2JXMz88sZC1wgVPdSq9lFNNdXAK5Sqgnyl3i5Me+IXYtE6V7YBtjiluUs0ZleQ6DhmOWz3XCO3p8QUsq1IskImDlGKwHFLRwm4tZszAZgHBD0twMeXpYD45VGUpSoAslV+z7O/YxyLQZlBgIApZKWI2IOl/dmkv2Qy0UXj3RjKj9jTNbe2T58F0/5AfwDuQm1dRx1MlSue/lOa1k0e6rMIA4bN0NmhE6O8IoIiJdcbUkARB4boMpXYeNeU6edBUJ1frIud6vwQbB/D8qJ+/RjHhVwj6daab5ANybZ2u3I4yoijUJZNJgNVFICGe9qCPT8cpECsOk8d26W85oGG7EpPxdLHIVSIT0WyUjycge6It8+72rbpiGYyQe3RCh7V4uYfVJk8Q0A/2SoYnReckN3fflHMOmXpABBQnSei8EjDB/QWGA/p0osH6fZqxEjy9QECdfReFt8dZ6rMUzcX1GHeLpKe6jMgY9918JoI37P/qtaO0hVWZQjQTQk7nIbQ+vtVVpfoOqJ8W6Bz3TQCThBfS9JF3+4emqX0dy02FxIU+IHpGlFGdAdThVoA= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Oct 2024 21:41:03.0366 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 84116784-3e5b-4a8c-658b-08dcf92b8d8a X-MS-Exchange-CrossTenant-Id: c4540d0b-728a-4233-9da5-9ea30c7ec3ed X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=c4540d0b-728a-4233-9da5-9ea30c7ec3ed; Ip=[178.72.21.4]; Helo=[localhost.localdomain] X-MS-Exchange-CrossTenant-AuthSource: DU2PEPF00028D13.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXP190MB2231 X-OriginatorOrg: napatech.com X-BESS-ID: 1730330001-302901-12791-46809-1 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.17.104 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVkbGZsZAVgZQ0MTM0MTQxNTSIN XQ0NDSKNUwOdEs1cQ4zcwozdQsxdBEqTYWAHJBPPBBAAAA X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.260092 [from cloudscan20-80.eu-central-1b.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS113687 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series |
Provide flow filter and statistics support
|
|
Checks
Context | Check | Description |
---|---|---|
ci/checkpatch | success | coding style OK |
Commit Message
Serhii Iliushyk
Oct. 30, 2024, 9:39 p.m. UTC
From: Danylo Vodopianov <dvo-plv@napatech.com> flow_filter_ops was extended with flow action update API. Signed-off-by: Danylo Vodopianov <dvo-plv@napatech.com> --- drivers/net/ntnic/nthw/flow_api/flow_api.c | 16 ++++++++++++++++ .../profile_inline/flow_api_profile_inline.h | 5 +++++ 2 files changed, 21 insertions(+)
diff --git a/drivers/net/ntnic/nthw/flow_api/flow_api.c b/drivers/net/ntnic/nthw/flow_api/flow_api.c index 76492902ad..1fcccd37fd 100644 --- a/drivers/net/ntnic/nthw/flow_api/flow_api.c +++ b/drivers/net/ntnic/nthw/flow_api/flow_api.c @@ -264,6 +264,21 @@ static int flow_flush(struct flow_eth_dev *dev, uint16_t caller_id, struct rte_f return profile_inline_ops->flow_flush_profile_inline(dev, caller_id, error); } +static int flow_actions_update(struct flow_eth_dev *dev, + struct flow_handle *flow, + const struct rte_flow_action action[], + struct rte_flow_error *error) +{ + const struct profile_inline_ops *profile_inline_ops = get_profile_inline_ops(); + + if (profile_inline_ops == NULL) { + NT_LOG_DBGX(ERR, FILTER, "profile_inline module uninitialized"); + return -1; + } + + return profile_inline_ops->flow_actions_update_profile_inline(dev, flow, action, error); +} + /* * Device Management API */ @@ -1093,6 +1108,7 @@ static const struct flow_filter_ops ops = { .flow_create = flow_create, .flow_destroy = flow_destroy, .flow_flush = flow_flush, + .flow_actions_update = flow_actions_update, .flow_dev_dump = flow_dev_dump, .flow_get_flm_stats = flow_get_flm_stats, .flow_get_aged_flows = flow_get_aged_flows, diff --git a/drivers/net/ntnic/nthw/flow_api/profile_inline/flow_api_profile_inline.h b/drivers/net/ntnic/nthw/flow_api/profile_inline/flow_api_profile_inline.h index ea1d9c31b2..8a03be1ab7 100644 --- a/drivers/net/ntnic/nthw/flow_api/profile_inline/flow_api_profile_inline.h +++ b/drivers/net/ntnic/nthw/flow_api/profile_inline/flow_api_profile_inline.h @@ -42,6 +42,11 @@ int flow_flush_profile_inline(struct flow_eth_dev *dev, uint16_t caller_id, struct rte_flow_error *error); +int flow_actions_update_profile_inline(struct flow_eth_dev *dev, + struct flow_handle *flow, + const struct rte_flow_action action[], + struct rte_flow_error *error); + int flow_dev_dump_profile_inline(struct flow_eth_dev *dev, struct flow_handle *flow, uint16_t caller_id,