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 E432A432E1; Thu, 9 Nov 2023 09:56:27 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A7CE042E2E; Thu, 9 Nov 2023 09:56:27 +0100 (CET) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2055.outbound.protection.outlook.com [40.107.244.55]) by mails.dpdk.org (Postfix) with ESMTP id 3827542DEF for ; Thu, 9 Nov 2023 09:56:26 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HmotGyeicekediBGdV3Pzi78oUxyE13c9bUMHin4KTnLx+toylczuPDqmiN4gwrPF/kdI0sDHJDNcs5DxBeK5PsWctC24LpRolCTQwStfez3/Oak2Z+iU8A0G0rN9hNI4V8FVFFErhpc77DeEs8+UUjkWlx1d0ka7ye7Opjkq/wu395oIjjbzS5rAmaa2T0+5TsPMRsAg12caf0vUjRjJJMskxWGIQiGBxSvTPKYsGBzepsTHW9EtQgpsAIpiKRlqloBUhAJHsndrvdgJz+xoG8/bBx4LTS01aQ5ff7BXd6ZUO9K0UikdATdgNZVhhMX6C4wbfTiI4/vuPN5jzax7g== 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=7Fhc3ZAMsIgjk1QUipNEMkYhht67s+Oo3T4BW8WXMS4=; b=lzzqhhzMoluxqM/nDuOX58UgiVQEAUNBSzMSAodiJv4coXHWv/NRgvPQcCrIpfOIT1dcQ7x+kNAWmoJ2hLXU/BE5j3qq7YAaa7nyIPjdhADMqmNHxdH1kI+aR3AH2uAVcrZZ8gaAmDvpxVO2skZIpfniBYoOrPmbcEK5vdcB4dxXlHarJQhK1NU9XH53dkvITkMiTMmb9Iw3k7+7CM7/7NBkb+tRHTsali7tjH4oDQjsItM2w2N7ItyrrUquwZwEpomAZMdFunl/TPWqFRDctWVZd1UbQ+euXwfdEomKQejvQkqBI0gkhaRy+VArYRbv01huDOchTVE2uCpcDI7e/g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) 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 (0) 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=7Fhc3ZAMsIgjk1QUipNEMkYhht67s+Oo3T4BW8WXMS4=; b=nks17M/22mjH5cXXzR2fjUdL/PjgngvTZDx0MBjL8qcaprzGmeYFkh3jsTHJ0vjj9wzTu7wvySM89zEx3SD0eTD5HVUsw2oZ/0+cUf0495QC5qNuNm8wcvE0aBjksB7wQPjFS5/9Waz+7WOPW3BKR5i8A0zlhx3QnX38IDCnIhsRw3Pkc7dLjuB4sBOmzSkvieLTxfRt5JQD1maHqwU+ktPsamojZMztjMFwblLTU3spWARXypVidqTzyQ6ZUzS/3CYxPCusXKGJ2yt7OB2bYcNMMUC5OKwP+rTbMWf5ArzDVgl7lRod2/neQCexGoagmiYNBwa6cqhqLuifrjGiqw== Received: from PH0P220CA0011.NAMP220.PROD.OUTLOOK.COM (2603:10b6:510:d3::16) by DS7PR12MB9042.namprd12.prod.outlook.com (2603:10b6:8:ed::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.28; Thu, 9 Nov 2023 08:56:23 +0000 Received: from SN1PEPF000252A4.namprd05.prod.outlook.com (2603:10b6:510:d3:cafe::2) by PH0P220CA0011.outlook.office365.com (2603:10b6:510:d3::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6977.19 via Frontend Transport; Thu, 9 Nov 2023 08:56:22 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) 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 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by SN1PEPF000252A4.mail.protection.outlook.com (10.167.242.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6977.16 via Frontend Transport; Thu, 9 Nov 2023 08:56:22 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Thu, 9 Nov 2023 00:56:05 -0800 Received: from nvidia.com (10.126.230.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.41; Thu, 9 Nov 2023 00:56:03 -0800 From: Suanming Mou To: CC: , Subject: [PATCH 0/2] net/mlx5: fix flow rules for external SQ Date: Thu, 9 Nov 2023 16:55:45 +0800 Message-ID: <20231109085547.1313003-1-suanmingm@nvidia.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1PEPF000252A4:EE_|DS7PR12MB9042:EE_ X-MS-Office365-Filtering-Correlation-Id: 34796533-c6ee-467f-cc32-08dbe101bf93 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LMy+gw51xSfS7/i8KuUOHZKivcsXbaEFS3H+yeQ1PSJ8795o0SZIQ/IMrje+FLw7SPvid4EVcDXtu9hjeaGAOP2rE6fEd+VC6FdTx3dz9czX94c/cfYOhbczu48/iB7Vs7/4JEVhKb4/aR8ySPKPBe/qxtIWOGhqCr/P50HQAWrr8HJoXps3rFeB2jpZFRYWFkLMdCenVrlkXF0GlY/+cBGlIso7ZL06Ufqa5CvR5AsX6Y5NmSgrjr27f7bu7bUGAqw3ICpRrtezmKEm5uQeiTMnB2fi6mPM4X98YgnDimVU35AA0p85OrP3ltd04O/vQ/PYwX4NPVQM+Ou38OG1/oXrYcShG6jcQRuTNGZBSiV+M8Zd60Lp/b2X3Bw0/xDui5azIR+Y+I0l5vuqZ0HvxYZWO153A61y3Et2KiDLVEa9cSj7OtibWzW/Ggr5MWXR03TagyOETfD+1iBcsvwE4Arb4wNNcABhygMNk51cuVOMbbjPwSChOy2kd0DEvx9Yxihg1KGzWt4cx1pG0nshQ0HVwgmm9yrXQc/ZbIvFy9uoSYMBGjIixTJeYdj+QDJM/clB9ZmB01WSDyT4HMHWYLkb0cSDfMx0Un2UDtIhHiipkhT42XJGZFtKZlYNnTlWduyWgC7sNe3LaQoeAykhnhJMfSgIuZlUw9G9H1oBHsOfpWaiL1wUC683bIsdaouKm96L4Od3TPjAOoqSXhjQuP3JREMerRcAAVaQ2cByQ2rtFxNhhBf3rg5rrx4fHzzF9ZPBHVHtagxtBwYVCWnsZRpIj3WuvnXLrQVeW4hzavTAZrBJeez/Yt6yaqJ7e2eZ X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230031)(4636009)(376002)(136003)(396003)(346002)(39860400002)(230922051799003)(230173577357003)(230273577357003)(109986022)(1800799009)(82310400011)(186009)(64100799003)(451199024)(46966006)(36840700001)(40470700004)(47076005)(107886003)(41300700001)(7696005)(2616005)(478600001)(6666004)(26005)(336012)(4326008)(8676002)(316002)(8936002)(16526019)(5660300002)(83380400001)(70586007)(36860700001)(6286002)(1076003)(54906003)(70206006)(356005)(7636003)(426003)(2906002)(86362001)(82740400003)(55016003)(40480700001)(36756003)(40460700003)(266003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Nov 2023 08:56:22.7002 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 34796533-c6ee-467f-cc32-08dbe101bf93 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: SN1PEPF000252A4.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB9042 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 If representor matching was enabled (device argument repr_matching_en is equal to 1, default configuration), then during registration of external SQs, mlx5 PMD would not create control flow rules in NIC Tx domain. This caused an issue with packet metadata. If a packet sent on external SQ had packet metadata attached, then it would be lost when it would go from NIC Tx to FDB domain. Meanwhile, the external SQ flow rules should be managed individually and not be destroyed internally by PMD. This series fixes these two issues for the external SQ flow rules in rte_pmd_mlx5_external_sq_enable(). Dariusz Sosnowski (1): net/mlx5: fix missing flow rules for external SQ Suanming Mou (1): net/mlx5: fix destroying external representor matched flows drivers/net/mlx5/mlx5.h | 41 ++++++++++ drivers/net/mlx5/mlx5_flow.h | 6 +- drivers/net/mlx5/mlx5_flow_hw.c | 132 ++++++++++++++++++++++++++++---- drivers/net/mlx5/mlx5_trigger.c | 4 +- drivers/net/mlx5/mlx5_txq.c | 12 ++- 5 files changed, 176 insertions(+), 19 deletions(-) -- 2.34.1