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 720A3A0C4D; Tue, 27 Jul 2021 09:31:41 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E62E9410ED; Tue, 27 Jul 2021 09:31:40 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2054.outbound.protection.outlook.com [40.107.223.54]) by mails.dpdk.org (Postfix) with ESMTP id 1634C410EC for ; Tue, 27 Jul 2021 09:31:39 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ieJiG9pVBVRV4X4joS4luW7JbzFVGV9YJ5hBWmEr6j0TS2R0Lo28oJE0koY0Ay10HXjJGCpeuZIQHP0FUJwcKKpGKd4WWqRSDqfNPEVbbS2e7vrfFkDkCu63DbF18NAXkpAFm7Q1XPc4w/3JGOOCC1lYzDsK2QXSrk43JZVnQ+uVtguMdmxUijVg2cb6ZjBA5qepnQFwdKO0rFHl3y5P0nRv7FDwl6TJ6Dfqvo1cgcgjtfLpMsES4SAHEr0Gr6SvmkrUXC8pH/WyCX+4MYC42lXK57jT5OSjTZO9TGodPOkzLtWF1pWOIdfiUnv0C0ZzZqU5AQ6RGmEk0SmngBy1xw== 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-SenderADCheck; bh=Cp8uH5M1lk9rwxrZ7kVOBvBsNDDHgSYlKB7fg+LLte4=; b=YqRITG7dHwzqu+mwF0qBNHV5ZbaXoVpx+IOz32TanffyPuR2oaJIjuuAU0FrkVhagkssY5CoPaKu9e86EG4DdtsJForc18Qii9CDa4MLfdHQeYoRRZhQmTa1E4qQQTEbRjQ9dnyDQSHhQ3Xy3q6nh8vp+48q9s/dTZJnlMw5FeR11CqKb2VDPnNWbXRpoToyTpBB4CyHr2rtrTpJQcr47WLmZ83Edk4l9U6FxsTKfHvwIdicpCI1U9b1niKo+4YXcU05lTiXArOGDYf121ef6DqNtIIL+pdVSm6tdkRO8mDAkk2xC9lEBxMdFJRxxZZm3oImQC4q8FTSsric6Gn7AA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=redhat.com smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=none 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=Cp8uH5M1lk9rwxrZ7kVOBvBsNDDHgSYlKB7fg+LLte4=; b=thYBgbtVO5cdfw+OVznLnf4WbWxgSE4YRzPaTrQduYJCANtmAkRtIia+0j1k48Ik7mUlBM2a60+VpcQWqyGMcAZr9XDGBw86zCgFYLtSLkiFi56ouRgdXdbjuWlqBAc1OTxthgApQbLwkSxeIhd3a/xQrdhwLtzImy6+hL0J2y3uHWu5SnmjCd1+dwI58COXuRMa8WxJnd6RoqdOqxA7XjJvCtt+Cb+B/UDEvSsSjluYZ1QVaf4zUj7mltH6bo/lwnXHsN+SdZl462Zmg/X2CAi+ij62shFdqWOarPVQU5WLkHOm7/0prP4KFLII7kZfiy0/XXAQbm9WWY0qsqD6HQ== Received: from BN1PR14CA0015.namprd14.prod.outlook.com (2603:10b6:408:e3::20) by BYAPR12MB2936.namprd12.prod.outlook.com (2603:10b6:a03:12f::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.29; Tue, 27 Jul 2021 07:31:37 +0000 Received: from BN8NAM11FT020.eop-nam11.prod.protection.outlook.com (2603:10b6:408:e3:cafe::82) by BN1PR14CA0015.outlook.office365.com (2603:10b6:408:e3::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.25 via Frontend Transport; Tue, 27 Jul 2021 07:31:37 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by BN8NAM11FT020.mail.protection.outlook.com (10.13.176.223) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4352.24 via Frontend Transport; Tue, 27 Jul 2021 07:31:37 +0000 Received: from nvidia.com (172.20.187.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 27 Jul 2021 07:31:35 +0000 From: Dmitry Kozlyuk To: CC: David Marchand Date: Tue, 27 Jul 2021 10:31:16 +0300 Message-ID: <20210727073121.895620-1-dkozlyuk@nvidia.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 08b2d02b-ce42-4ce5-1d10-08d950d09173 X-MS-TrafficTypeDiagnostic: BYAPR12MB2936: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5797; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cnZNth5dlDwPmvS0IAbY8ywj9ikS135xsksU2MTTVZ31MV21qivxgImt/SkiLC4fS7OKUu27HI8JyM5xwLR1l8ZCdYoqOS/SkcNCLupTMzb9oNGOGIp7IQsm9C828mZJIDRAxwlcjHIdOiGC2ADW6XU8kGzzLsbWeGu5KUnbHkdkCzNbWXC7OoKwHwUc454X+pLKjub2gjpPXCr9x3Rku+RQ2elrW+z0IXGc/jXJ50T5yqJ/QoF1Vri5RKI/gmmbhd01kBN4OJsypUp++Z4kqb5K0jy+ffZRWTrYmn5le/hC5NClMYVDFSdwp4+nMYgmqmpOA1yanWzNnX/jcMZwj3WEjEMI1V7XnovxnSFyORMXZvK7RxXmxZ/QlO+OxF4y3up5fDIV7cVw7m0V7bdAiQtF2zEmHggkUcvJ7e4DAIDnlpI2KTKkbJ4OJcgY5Er3gLCx6NzSIkKYsumGVb0KhXCds7aH2ZaerNplQF/picU8LyNLVNRZviw1EREbBI1ALWElJXZm/rphRDKvZcCUQ375TF8CRQc+9OtkKK37y363DYbZCo8uEzQOnLmQ3aRcM8upUdw0DjLCM3FhQdqvp92MxmcTBxB7E6LjBtaHhIYu2vvJ37D32A8R0b+igSZBy69AsJtYVBBnd6T6f3gTMgEraPj28bgngd7oC6axGKmnZXUhl3Qx8xcAyU31U5yHLP0OTBJgsgletHSyop1nfg== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(36840700001)(46966006)(8676002)(82310400003)(26005)(316002)(7696005)(47076005)(2906002)(1076003)(36756003)(5660300002)(508600001)(426003)(6666004)(70586007)(8936002)(70206006)(336012)(2616005)(4326008)(83380400001)(36860700001)(6286002)(86362001)(55016002)(16526019)(186003)(356005)(7636003)(36906005)(6916009); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jul 2021 07:31:37.1636 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 08b2d02b-ce42-4ce5-1d10-08d950d09173 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT020.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR12MB2936 Subject: [dpdk-dev] [PATCH 0/4] net/mlx5: keep indirect actions across port restart 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 Sender: "dev" It was unspecified what happens to indirect actions when a port is stopped, possibly reconfigured, and started again. MLX5 PMD, the first one to use indirect actions, intended to keep them across such a sequence, but the implementation was buggy. Patches 1-3 fix the PMD behavior, patch 4 adds common specification with rationale. Dmitry Kozlyuk (4): net/mlx5: discover max flow priority using DevX net/mlx5: create drop queue using DevX net/mlx5: preserve indirect actions across port restart ethdev: document indirect flow action life cycle doc/guides/prog_guide/rte_flow.rst | 10 + drivers/net/mlx5/linux/mlx5_os.c | 5 - drivers/net/mlx5/mlx5_devx.c | 204 +++++++++++++++++--- drivers/net/mlx5/mlx5_flow.c | 292 ++++++++++++++++++++++++++--- drivers/net/mlx5/mlx5_flow.h | 6 + drivers/net/mlx5/mlx5_flow_dv.c | 103 ++++++++++ drivers/net/mlx5/mlx5_flow_verbs.c | 77 +------- drivers/net/mlx5/mlx5_rx.h | 4 + drivers/net/mlx5/mlx5_rxq.c | 99 ++++++++-- drivers/net/mlx5/mlx5_trigger.c | 10 + lib/ethdev/rte_flow.h | 4 + 11 files changed, 680 insertions(+), 134 deletions(-) -- 2.25.1