Message ID | 20241029164243.1648775-71-sil-plv@napatech.com (mailing list archive) |
---|---|
State | Superseded, 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 2BE5A45BC0; Tue, 29 Oct 2024 18:16:39 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7774242FBF; Tue, 29 Oct 2024 18:16:27 +0100 (CET) Received: from egress-ip11b.ess.de.barracuda.com (egress-ip11b.ess.de.barracuda.com [18.185.115.215]) by mails.dpdk.org (Postfix) with ESMTP id A5A9842FAF for <dev@dpdk.org>; Tue, 29 Oct 2024 18:16:23 +0100 (CET) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05lp2106.outbound.protection.outlook.com [104.47.18.106]) by mx-outbound17-86.eu-central-1b.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 29 Oct 2024 17:16:20 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mgGrSTwx0Y7AX+5cyRRVPY8RLosMpM2lS5GnSomQyejca5MmrKCfblo82oywRD2qVTOmGfOAonQuHL7z+gUd2Joa6yICDIQ0WeD9IDThzNrb1bC2rbB3BN0J7OwhEBrQipeT7FghvOVxssQWlxuE9IG4GCUhA7f0zs7WloWMfjQQNnFAgImtClEAbFg4UFaKMHZgxr6FIOA9MMZGajuyfbLCg6JZyvn7a+7UYMWIzDhTH3aG005VHxj4KRQrk2AoxLqUZJ3ws1cZsEw8tFxsUuOlEhoFIqMJvE6CJc3irmz/XU3Pgx2s7Jau3o6STiDeZRdUWe+mySKlVmU/2HiZGw== 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=Jd5AALSOPZkiDYNgUr9eK1VN8Lx8omXH/+58KyQVpH0=; b=tW98bolW1bNE/OfmbTkqltnpNbr5SHXmvt98OcJNjXgJlXbSKTlI/OhPlYF6oqYDF1DUX+CeQsAyRM9aVh9dYg6/9wRePVl9Ae4DWoLAQiCqXqhjDRYz1UIuRt30eNhOvVxaKjeR4rO65316sX1cI/ZVB5ngYzDWAo2cR41jIUIIO4SRWB/oPk0EcJurRMFiySQNeUV2FHTxwHEpEOtDwwH6bqwQ02bsT2oI347jh5znSyIOzSx4+Xyc32GHbWossNzZ/sVPDJibXeehZ0s2a83p/O2dESjmt9wDjCg/pxhmmIwf+3FuRweQCNMXOu/sJIZbkwd8AERNioy12/ja+Q== 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=Jd5AALSOPZkiDYNgUr9eK1VN8Lx8omXH/+58KyQVpH0=; b=kyWPlErz+YSEW+GNbFOF9Ww5yChkCdzjeboCbkozQOGjnJsYc3JpVTCN9qi1ZBYsGdqUIWVo1scAhbZhIOEgunqdM4+f4bbItWpxavgg89jqIkwnQaHDFSrwTfkzN+4FgllMmcG7qGnCCYN9zWk9XywpasqvqiTwnUBEfnS8AFA= Received: from DUZPR01CA0194.eurprd01.prod.exchangelabs.com (2603:10a6:10:4b6::19) by DBAP190MB0886.EURP190.PROD.OUTLOOK.COM (2603:10a6:10:1b0::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.20; Tue, 29 Oct 2024 16:44:02 +0000 Received: from DU2PEPF00028D06.eurprd03.prod.outlook.com (2603:10a6:10:4b6:cafe::6e) by DUZPR01CA0194.outlook.office365.com (2603:10a6:10:4b6::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.29 via Frontend Transport; Tue, 29 Oct 2024 16:44:02 +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 DU2PEPF00028D06.mail.protection.outlook.com (10.167.242.166) with Microsoft SMTP Server id 15.20.8114.16 via Frontend Transport; Tue, 29 Oct 2024 16:44:02 +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 v4 70/86] net/ntnic: add aging documentation Date: Tue, 29 Oct 2024 17:42:14 +0100 Message-ID: <20241029164243.1648775-71-sil-plv@napatech.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20241029164243.1648775-1-sil-plv@napatech.com> References: <20241021210527.2075431-1-sil-plv@napatech.com> <20241029164243.1648775-1-sil-plv@napatech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PEPF00028D06:EE_|DBAP190MB0886:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 2a767bcc-59c3-42f3-1538-08dcf838e549 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|376014|36860700013|1800799024; X-Microsoft-Antispam-Message-Info: WZGQGQa/QxEmO2dM72gWs6iJ8ce82Ytl03/LISJI4WGwqWgOpA6HxE8JVaRKlZBCq4PNNSlVdQ8H99fVb/LvTPkD3mWinudTKca5K6r1N6sEKJcfp3AmWcAEQdyE5TR7Rhh87RtesocOqI2SjwMdiy5tEKa8baibSg7G2zzfZvQz47h/godI9t6neOwJdgaQnEFWLYxwSzi5Y8bMFXp3neSad10WaGIsh48VbkEfHIcQbPNLgJ9HdMkLVy6Sb08CHWs3D3ADAqchrAT8RLPPp+Q5oYJFp5/21O9oPnfbS6m8O4d5dtzVzB2EaehI8m2xDDTVJVfamiIVXd1tCdj/bIjnKTCysZZ58mjmAnvQw2Ro7a8UZxn9YYXlnp2O9gn0LuR4EPpeQ6ff81zjzNyFh88ycxwZg6nKQ5YTOVVaYhzUt1jt+6weCxljei36ZHbv5t+/gEvlDpNfNfLs7kR8W6FUSylrvPJ/9WPIGzh9K69xY9C3040A5cxF1LgTxgMrkVsUxC0PxJVIcJNt+Zdxqj0U+O6SPz1tOFyc2sa4dsQcNgGzsMAHQfLUidYUrnAx5eZv2T0W5Vn9USZKjKcVOjF6V89eRyFog2rKRf7NSCZl8vKKqTHN8XbktgAU6ygOxQLZ2LSQJ8GrSxLUe8CXpd2diA83i6J/uz/xVXrpb+rfOCbpISXZNNNqM16TsZax1IMeNqDia1Cix46hm5tTETAJ1zlUS+2zOLyV46OR4cren7j+klpc5FgvSQZMMewg3d4uRgBmqw+fMKt3b0eEX+OsvWPshEX2stzz6KvbH5BivpHFZ91HWAufX4Afr3WP0NwAsHxdEbGwGPzMVH9IcbvAnTHusTkTxqrDzoSxXrjXttWfXI12tZPkIh+zuyw6UnstAGRjbfdZT585RY5MOeJLszbck7E79WmnxBF+6WZWZe7BQnQ/Za0IvXXI5AxEDBrLBSDs/HdRvlEwv42EiYw/1HIu/rj3hkN4DhlS6CARoUkycp6nvyR6jkqbTqpTfBtaFoKiDHvWsAzhF01CZA0J3s26PzB3DZPeLR1cbe8qr7ocQSj/49XccCOqSnECvMDrMGIMpFkuFlc3zcchJJQMGS/aMkxlgVcXiKA4dY7JjgRRhmArfUCJOEWy4Pr0wRlb0sOyNGl/VQMmxlgQI3hl/bAJN0h2ZmAjhZoYqKjKjK3AV9e15872NTW03Y+Zswan+vUoWCei3+LYAAyeYLEeDnJpNnUJFHQ/MItvCapDGqNWfHiuAe/z9LgAb/V/mS4of1YeIFh2HzUErTAeShBu7VclEtU+qTvK3uOUes7nP1v0hRf6HMnQ73X5dhXjHHpO7eF17i1SnT5XeDkSPIdQmI8a4oCDjcJfBGlxFSmRhMtaBDpay/EC8Re6CRV/vrXX8LLr468ybxuqyUhqyw== 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)(376014)(36860700013)(1800799024); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: fPhfVOStjHbn+8rfuCmskn3RW0nQYCWJg1VwsbLgkzQMfQvay9EimBaSJWSP8AKpcoCCXU/NvplkIUbxsLdX3v39g9YNbW9g2VhcZ+8/ajvqdmAcuoDNC1Qc/6sSYEMqrzIufeX8OUh6qywvSwxCJzYeqa0xKpfJlpxd1UgRN12mEeDDUhOZCJhgu7CAW/GnO3MZ1epULFUOnmofkLytpsU6Qcz3qLz2wVAejjt575xAPTWnn7WccG5qt00ROhFJBzsScR5A5pxg8kVhzfmFjajjfiS6h0FsuEbCtRWZleCLbe+JMN70zX2xzDtF5lNyfNIlYTxSiGkeMoxeejOFsOG7hHWAfkafJnnoAn4bGi4jHhUhWOxnPOL/Vc5pkCheCFYBdPbFGQhrDUhHdza+HKThIybmtZoIw9F74BUpEd7WhwtkC6gV6hPzVZqNQjQuwGvbRKVcqKuIhdHBK6eyZ0+K6Xzc3vk6MMTa14Aa7s830bSK8acRLgOTIDryBoZOy1pBPWQowowM8Pg/DafuOorbwwU8uvUfpn0Erhx997e1oMuNuPGMq7pUKRQVSucfRj5b5G6ClgZ+OxB89Sc0SOWEKHrwlT3tW2FVJkjmw2omDNHc1EXdBWN/j9hAe2JyMzinyIc4aRMrKvxbyw3L3Et/fiEC3QAOpdb9FNkwXHs= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Oct 2024 16:44:02.5428 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2a767bcc-59c3-42f3-1538-08dcf838e549 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: DU2PEPF00028D06.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAP190MB0886 X-OriginatorOrg: napatech.com X-BESS-ID: 1730222180-304438-12709-31867-1 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.18.106 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVsYGBsZAVgZQ0DjJMtnQIiUx2d TQ0iDZzNIyLSk12SAtLTHZ0sTYxDBFqTYWAOzXTPhBAAAA X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.260064 [from cloudscan17-87.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 API and statistics
|
|
Checks
Context | Check | Description |
---|---|---|
ci/checkpatch | success | coding style OK |
Commit Message
Serhii Iliushyk
Oct. 29, 2024, 4:42 p.m. UTC
From: Danylo Vodopianov <dvo-plv@napatech.com> ntnic.rst document was exntede with age feature specification. ntnic.ini was extended with rte_flow action age support. Signed-off-by: Danylo Vodopianov <dvo-plv@napatech.com> --- doc/guides/nics/features/ntnic.ini | 1 + doc/guides/nics/ntnic.rst | 18 ++++++++++++++++++ doc/guides/rel_notes/release_24_11.rst | 1 + 3 files changed, 20 insertions(+)
Comments
On 10/29/2024 4:42 PM, Serhii Iliushyk wrote: > From: Danylo Vodopianov <dvo-plv@napatech.com> > > ntnic.rst document was exntede with age feature specification. > ntnic.ini was extended with rte_flow action age support. > > Signed-off-by: Danylo Vodopianov <dvo-plv@napatech.com> > --- > doc/guides/nics/features/ntnic.ini | 1 + > doc/guides/nics/ntnic.rst | 18 ++++++++++++++++++ > doc/guides/rel_notes/release_24_11.rst | 1 + > 3 files changed, 20 insertions(+) > > diff --git a/doc/guides/nics/features/ntnic.ini b/doc/guides/nics/features/ntnic.ini > index 947c7ba3a1..af2981ccf6 100644 > --- a/doc/guides/nics/features/ntnic.ini > +++ b/doc/guides/nics/features/ntnic.ini > @@ -33,6 +33,7 @@ udp = Y > vlan = Y > > [rte_flow actions] > +age = Y > drop = Y > jump = Y > mark = Y > diff --git a/doc/guides/nics/ntnic.rst b/doc/guides/nics/ntnic.rst > index e7e1cbcff7..e5a8d71892 100644 > --- a/doc/guides/nics/ntnic.rst > +++ b/doc/guides/nics/ntnic.rst > @@ -148,3 +148,21 @@ FILTER > To enable logging on all levels use wildcard in the following way:: > > --log-level=pmd.net.ntnic.*,8 > + > +Flow Scanner > +------------ > + > +Flow Scanner is DPDK mechanism that constantly and periodically scans the RTE flow tables to check for aged-out flows. > +When flow timeout is reached, i.e. no packets were matched by the flow within timeout period, > +``RTE_ETH_EVENT_FLOW_AGED`` event is reported, and flow is marked as aged-out. > + > +Therefore, flow scanner functionality is closely connected to the RTE flows' ``age`` action. > + > +There are list of characteristics that ``age timeout`` action has: > + - functions only in group > 0; > + - flow timeout is specified in seconds; > + - flow scanner checks flows age timeout once in 1-480 seconds, therefore, flows may not age-out immediately, depedning on how big are intervals of flow scanner mechanism checks; > + - aging counters can display maximum of **n - 1** aged flows when aging counters are set to **n**; > + - overall 15 different timeouts can be specified for the flows at the same time (note that this limit is combined for all actions, therefore, 15 different actions can be created at the same time, maximum limit of 15 can be reached only across different groups - when 5 flows with different timeouts are created per one group, otherwise the limit within one group is 14 distinct flows); > + - after flow is aged-out it's not automatically deleted; > + - aged-out flow can be updated with ``flow update`` command, and its aged-out status will be reverted; > diff --git a/doc/guides/rel_notes/release_24_11.rst b/doc/guides/rel_notes/release_24_11.rst > index 75769d1992..b449b01dc8 100644 > --- a/doc/guides/rel_notes/release_24_11.rst > +++ b/doc/guides/rel_notes/release_24_11.rst > @@ -162,6 +162,7 @@ New Features > * Added basic handling of the virtual queues. > * Added flow handling API > * Added statistics API > + * Added age rte flow action support > Similar comment as previous, please merge this patch with the patch that introduces the flow aging functionality. Same for "meter documentation" patch, "documentation for flow actions update" patch, "flow API documentation" patch and "documentation for set MTU" patch.
diff --git a/doc/guides/nics/features/ntnic.ini b/doc/guides/nics/features/ntnic.ini index 947c7ba3a1..af2981ccf6 100644 --- a/doc/guides/nics/features/ntnic.ini +++ b/doc/guides/nics/features/ntnic.ini @@ -33,6 +33,7 @@ udp = Y vlan = Y [rte_flow actions] +age = Y drop = Y jump = Y mark = Y diff --git a/doc/guides/nics/ntnic.rst b/doc/guides/nics/ntnic.rst index e7e1cbcff7..e5a8d71892 100644 --- a/doc/guides/nics/ntnic.rst +++ b/doc/guides/nics/ntnic.rst @@ -148,3 +148,21 @@ FILTER To enable logging on all levels use wildcard in the following way:: --log-level=pmd.net.ntnic.*,8 + +Flow Scanner +------------ + +Flow Scanner is DPDK mechanism that constantly and periodically scans the RTE flow tables to check for aged-out flows. +When flow timeout is reached, i.e. no packets were matched by the flow within timeout period, +``RTE_ETH_EVENT_FLOW_AGED`` event is reported, and flow is marked as aged-out. + +Therefore, flow scanner functionality is closely connected to the RTE flows' ``age`` action. + +There are list of characteristics that ``age timeout`` action has: + - functions only in group > 0; + - flow timeout is specified in seconds; + - flow scanner checks flows age timeout once in 1-480 seconds, therefore, flows may not age-out immediately, depedning on how big are intervals of flow scanner mechanism checks; + - aging counters can display maximum of **n - 1** aged flows when aging counters are set to **n**; + - overall 15 different timeouts can be specified for the flows at the same time (note that this limit is combined for all actions, therefore, 15 different actions can be created at the same time, maximum limit of 15 can be reached only across different groups - when 5 flows with different timeouts are created per one group, otherwise the limit within one group is 14 distinct flows); + - after flow is aged-out it's not automatically deleted; + - aged-out flow can be updated with ``flow update`` command, and its aged-out status will be reverted; diff --git a/doc/guides/rel_notes/release_24_11.rst b/doc/guides/rel_notes/release_24_11.rst index 75769d1992..b449b01dc8 100644 --- a/doc/guides/rel_notes/release_24_11.rst +++ b/doc/guides/rel_notes/release_24_11.rst @@ -162,6 +162,7 @@ New Features * Added basic handling of the virtual queues. * Added flow handling API * Added statistics API + * Added age rte flow action support * **Added cryptodev queue pair reset support.**