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 893E5A0547; Wed, 1 Jun 2022 09:39:40 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6E81140694; Wed, 1 Jun 2022 09:39:40 +0200 (CEST) Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2072.outbound.protection.outlook.com [40.107.95.72]) by mails.dpdk.org (Postfix) with ESMTP id 6ABB440689 for ; Wed, 1 Jun 2022 09:39:39 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=W8Fqd+kBijM8joH6MAaXbuqlrmg6GiHQhwXjmsDxkgnaepbBLaofFk/kTex/o0dXNsEWZhuuu3JCaUrwUR2N3c+HR3UQj2GSrq1D5GyJRv9VdbmG4bU8gUf90iC5YTuwV4lQNhSDwXcgA3mFks3uFqrcPV1pr/xxguMYAWjj9lYx7ojhJ02vp/0zk/PeKGAz3w7pC8WO+OSOHgPtAtSM2VnJdDUL2FCfZnGTuhaw9bHR+bji9+VX3SqMEuHHkf2k9xAFYnca8u+3Jxk6UwVzZ0cJmqa+Y5Tv45yNNzBlJ0ERLqj/SgXF3m1MkOlItRUqxv+jbfaHexnv+YnAka7yxw== 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=ClTGXbnwjSQUZpEBn9/Ya85xfgAI2TGnUsPC9Tzx3GE=; b=UzLnwope6s7AHubxO6JPTufQ9JfbgH3brBV8IemVfESdjqXKx1wirLrYNaVjcmZ9liixwVK9iGhBBKIaH/+jmIga6Um/VQ4XsMRd99ZqR50MGNe1ii4kk02tH8JZhByqDZkVNYyQYR00y+bCSTiieQiufEGx6+h3Cpykx7gE7yiVhRW2Ok1KHENikchMqzcBfNGGL0YGeqBPeM2Dcu+qUrl8V3tB47vkerrmPCbW5lcvyBtO67Tob+LOkXi7FcflxK70EqtV6JUctaDJgeXUdxbaf0eP8rSzOpuu3/sjs11R71gS06z50+QMB79Bl2Uwl++ArANC25mMnyzplFg1Jw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.235) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ClTGXbnwjSQUZpEBn9/Ya85xfgAI2TGnUsPC9Tzx3GE=; b=M0exXMoDNCCu3JwiOImeE9HIsfsOcs9t0m9DCw5YTomErFeJZ5U34B8ZI7r86qeomY4vDR3SoCVyOerk08sjrM/VxpmRnJgF1K0TZy6T9X54xhWfPnFMtApSOfmDyG2wSfMbmE2k/YqrzhjTnte0qPbtryI5JZ72WG53tdl+Voxzj893MiynsG5Nz3IVz9lW4vIJ5oTJIP73a7EK6asCyScfE7D37JO1y0/9mSPF8D6vzK5z7dox/dPgASpbVzV/0HC//6mvlhDOqhdJhFWhEb6eN3XxKtbfntqnFHgVy3GuwrCHfZCMHCf1gjnUJVshrxZwW8CjyLN3c4M9pDlUog== Received: from DM6PR03CA0020.namprd03.prod.outlook.com (2603:10b6:5:40::33) by DM6PR12MB4745.namprd12.prod.outlook.com (2603:10b6:5:7b::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5293.17; Wed, 1 Jun 2022 07:39:37 +0000 Received: from DM6NAM11FT038.eop-nam11.prod.protection.outlook.com (2603:10b6:5:40:cafe::f2) by DM6PR03CA0020.outlook.office365.com (2603:10b6:5:40::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5293.17 via Frontend Transport; Wed, 1 Jun 2022 07:39:37 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.235) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 12.22.5.235 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.235; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (12.22.5.235) by DM6NAM11FT038.mail.protection.outlook.com (10.13.173.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5314.12 via Frontend Transport; Wed, 1 Jun 2022 07:39:37 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL107.nvidia.com (10.27.9.16) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Wed, 1 Jun 2022 07:39:36 +0000 Received: from nvidia.com (10.126.231.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 1 Jun 2022 00:39:35 -0700 From: Xiaoyu Min To: CC: Subject: [RFC 0/2] queue-based flow aged report Date: Wed, 1 Jun 2022 15:39:17 +0800 Message-ID: X-Mailer: git-send-email 2.36.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bce8379e-f4b2-44f4-4560-08da43a1e17a X-MS-TrafficTypeDiagnostic: DM6PR12MB4745:EE_ X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fHIEMwooJa4uZhXhk1ywG+dIqcZ9IpYrk200s4hXyw+jdDkbqscZgLs20smUX4GPUtGpkitvxb+7RgJlhiMb5U5Y+MysaE624Bvz3m2QTebr72mnvduINvyAmFK5YYK18b7vPpm5TVZxwDwWyJf8338fmgTYrqSjJtB52lCwQGCbU5viIVxwnJF/Uz3izKi2ignmgGDf/I25mCr93SHIhkLtK5wO/6+v7g7xbRHoUAv+gRa3LDPZR5Ddt9t9NXdmzAOEzw4FoU8DndSeEjLiCWY6HPv7EsB7mo1ckeGGv0FKDSvEpL+7TH9ygHFDD4pcLjQvFHwGfM09b+TFqfPJGNbQ2z9IlPS2bJVdbJsAWVcQ0VMHBQXtgjUwnlbGySZTcaj9zkfKIXV7GBmNPApBPQ7PHuBeLRnt/DPmmsapBZV7W9d5gAVhXjVTXJL+/G6fdjQ45nIirGueIyt1dq0DRAjFwIxhO2RxfHc17VAmwLoFYaKCJ/ZvAdM9liSwRd0v9kzEfIzkxbSExmMsD61wVX7Xc88YTP1jk075zd3UJwZNhZTmWUQ7Uxku4gD/RiQvjhEVTKtHW667qS4EWmmCpOowGfCarln6C2OrghRPGZp1qLkq/1jTPePXdkV6i0rVOzuNFTMNq3XBRoFo0X18TnK4PIack9LqfqlVoxubGAanui0Qf9Tmr32LXxgtZOA1SYpIkXtHHNYu9uGEa/Ax9g== X-Forefront-Antispam-Report: CIP:12.22.5.235; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230001)(4636009)(36840700001)(40470700004)(46966006)(2906002)(6916009)(2616005)(316002)(36756003)(40460700003)(82310400005)(6286002)(26005)(36860700001)(81166007)(186003)(55016003)(5660300002)(16526019)(70206006)(7696005)(86362001)(70586007)(4326008)(8676002)(356005)(47076005)(426003)(336012)(6666004)(8936002)(4744005)(508600001)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jun 2022 07:39:37.6778 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bce8379e-f4b2-44f4-4560-08da43a1e17a X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[12.22.5.235]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT038.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4745 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 For the queue-based flow managemnt, application can operate the same flow on the same queue. For example, application create flow with age action, query aged flow, and destroy aged flow. All operations of flow happens on the same queue. In this case, the PMD could be more optimized since all operations of the same flow happens in sequence. The current flow aged report API hasn't queue parameter as same as other queue-based flow management API. This RFC propose to add new flow aged report API with queue parameter. Keep the old one for compatibility. v2: - Add new API for querying which queues have aged out flows instead of passing queue id via *ret_param* in event. - Use bit flags instead of enum - Fix typo and wording Xiaoyu Min (2): ethdev: port flags for pre-configuration flow hints ethdev: queue-based flow aged report lib/ethdev/rte_flow.h | 93 ++++++++++++++++++++++++++++++++++++ lib/ethdev/rte_flow_driver.h | 13 +++++ 2 files changed, 106 insertions(+) -- 2.36.1