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 6DFA1A0A02; Tue, 27 Apr 2021 17:38:31 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2FDAF410D8; Tue, 27 Apr 2021 17:38:31 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2072.outbound.protection.outlook.com [40.107.243.72]) by mails.dpdk.org (Postfix) with ESMTP id 2B86740683 for ; Tue, 27 Apr 2021 17:38:30 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O8bvTOQeZS4yKHzu/jFia6ce2hjrc8Gt4uESVLXmbXleLB7kGApQfIduSuq2jBivtflR8/+5c6NpTRNncx+Y5zafUxF1WYnTIveiiXyf/f8eOwSSKPWynBVzH4/ro8Nri3L4irGT7iK2ljzH1UpwC4JLZFJbpAuu/SDX1tW0SksZ3xtNE7Tdw1Jk/IAW5fl/gtbRWuigeVstNVyFsavRTgTw0hkPCst+puCoK5ryq8m+v1udkFjfjCOJUf92mIeXsf9IDWhTazUju1kyyBGetLT/Mi6XhWxpwGDowxZPa/R+lgHaAnC1mrdlK9aBOIUYDT201Y1UYHU4ky0yS1FX8w== 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=zw/7FcjPidwn60xLyEo4EXzhz6KcIRcsLldgLVSx7mY=; b=jPBf7BYg2Qk5dwIpGMqezEwzH0BleqrX2YJxI1Di/MZjwqAzJgcXSw5Kl9OKRvYYDRuNrhNcfeosAcFfZr3qCuhVCWd6V5kTjgvaA5b0hEt1f0tCxqnu9wWTNd5yLvYsGN1Ok1mP/s0cXRrQjLVBsHTlYlfATKQ+Rrl7AOONQiewViTTzS6DWxuPEwCNAyBL4+Nx7zuVZa6giwh5s2WCP+9bP+wZAc5wdms8naD/DhSkQyKXA54SCXekCSj5KVZtpxazElRemsINjWZnfrziJFTrwFOFzDqEcs8I636WrAxlf/4eGFsLOXlcwh/gFzYiuw+Vvz9ntRblfH/kd7ifVg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=none 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=zw/7FcjPidwn60xLyEo4EXzhz6KcIRcsLldgLVSx7mY=; b=VtAJ67GXBupqHGQc96f+eox86rtGJmZ/VXGHDESOJtOE20lL4AILvcYcdLDcqniZNeLIbPxa1C9w4D146LqWy17JgB95oxX6bKdKn47CfWf3bxLAqyg8b7zYBsNGMATEKcpMp0MesG31reP6JFdJG4YdLKKu49Rej6/wWBbb9xmjgxIbnpoCLIiXj+nP4rmb2LbNsxHT8qrkJx5zKoW9KKbOTEIkzh+fWJXxDIsCyn/3DowHEfQLJlU8azu8+5f0SfYpM9ijUT4WYAT8duVw8ujkFaFzEdPSZ3M44Mb3zC04tY0+wcQZj7yvE5RVVh7GV68cbsQNB76dk86mZ/cOgA== Received: from MWHPR11CA0014.namprd11.prod.outlook.com (2603:10b6:301:1::24) by SN1PR12MB2542.namprd12.prod.outlook.com (2603:10b6:802:26::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.20; Tue, 27 Apr 2021 15:38:28 +0000 Received: from CO1NAM11FT020.eop-nam11.prod.protection.outlook.com (2603:10b6:301:1:cafe::2a) by MWHPR11CA0014.outlook.office365.com (2603:10b6:301:1::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.25 via Frontend Transport; Tue, 27 Apr 2021 15:38:28 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; 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 CO1NAM11FT020.mail.protection.outlook.com (10.13.174.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4065.21 via Frontend Transport; Tue, 27 Apr 2021 15:38:28 +0000 Received: from nvidia.com (172.20.145.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 27 Apr 2021 15:38:26 +0000 From: Bing Zhao To: , CC: , , Date: Tue, 27 Apr 2021 18:37:54 +0300 Message-ID: <20210427153811.11554-1-bingz@nvidia.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.145.6] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 338ae51a-474e-4247-c401-08d90992811a X-MS-TrafficTypeDiagnostic: SN1PR12MB2542: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:179; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kPuMqbllXHI2M+4kNF0Qdv2r3pSHAs2j/6nABB0LBU+tcGmEr0uOalNA+UH4rb/udLUlTkQuhNF1nTHxiNbmaHVd8rggQNuZmWQN4rqulYA4+h5pxSDy2+1fSHIxBrH5OSJZgQm6Z+CwNl/u3g/fSr1qjdrujA+e76L3DRVIIiHcuyyqW1WSn5418nWDBJIjw/jWb2Y59GyHDseiLWlWrCct36h1y9JX8U39vlIRivd6i8dznSPIkeaVWp3Joo/NqckAGTiTvbsCcCO+sSlkiRwzf8Qq0S7mNxVHPwMNmt6/XtXpDmTCS/dA6/gjeyBi2rc7wfKsd6GdnOUcQ97pHjcIW0mYboYxgWrDHbaXnkCWsNkzHcAeL6iqi7hBNrav6Kcb7v0ZP39+kqN424WomikYHyYXUOzYrYYBv4iBsuKKqaf6XJa8ffg5LBUSbCTXyFIHRRLtODChuiUSRQaOC9MUeap1UWCQOvlc1c0YEzEeK1+5izIL6n0A9r08kzNtUoUNUGfwOK2h/3qSHWOUVFEk2cidjKasWHVomJO7MHZlV9dbXj5u/6rlk32spMkb7LeP/G47yGBmSkxnS3qVlUMBLb4c4z4uSsogAV8bLCFoT55bqQNhM+0d14CdCcq6wYbwyTs/VGp8MSTEtcBQINJmGoNf2AO9Wd0DUoXrAYU= 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)(136003)(39860400002)(376002)(346002)(396003)(46966006)(36840700001)(7696005)(70206006)(6666004)(2906002)(4326008)(336012)(82310400003)(55016002)(70586007)(6636002)(186003)(47076005)(16526019)(316002)(110136005)(6286002)(54906003)(86362001)(82740400003)(1076003)(36906005)(8676002)(83380400001)(36860700001)(7636003)(26005)(107886003)(2616005)(356005)(36756003)(8936002)(478600001)(426003)(5660300002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Apr 2021 15:38:28.4506 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 338ae51a-474e-4247-c401-08d90992811a 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: CO1NAM11FT020.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB2542 Subject: [dpdk-dev] [PATCH 00/17] conntrack support in mlx5 PMD 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" This patch set adds the connection tracking offload support in the mlx5 driver. Bing Zhao (17): common/mlx5: add connection tracking object definition common/mlx5: add CT offload capability checking net/mlx5: use meter color reg for CT net/mlx5: initialization of CT management common/mlx5: add Dexv CT objects creation net/mlx5: add modify support for CT net/mlx5: add actions creating for CT net/mlx5: close CT management structure net/mlx5: add ASO CT query implementation net/mlx5: add ASO CT destroy handling net/mlx5: add translation for CT action net/mlx5: add translation of CT item net/mlx5: add CT context update net/mlx5: validation of CT action net/mlx5: validation of CT item net/mlx5: reduce the reference count of CT net/mlx5: add support of CT between two ports drivers/common/mlx5/linux/meson.build | 2 + drivers/common/mlx5/mlx5_devx_cmds.c | 53 +++ drivers/common/mlx5/mlx5_devx_cmds.h | 5 + drivers/common/mlx5/mlx5_prm.h | 88 +++++ drivers/common/mlx5/version.map | 1 + drivers/net/mlx5/linux/mlx5_os.c | 13 + drivers/net/mlx5/mlx5.c | 92 ++++++ drivers/net/mlx5/mlx5.h | 72 +++++ drivers/net/mlx5/mlx5_flow.c | 44 ++- drivers/net/mlx5/mlx5_flow.h | 99 +++++- drivers/net/mlx5/mlx5_flow_aso.c | 586 ++++++++++++++++++++++++++++++++++ drivers/net/mlx5/mlx5_flow_dv.c | 571 ++++++++++++++++++++++++++++++++- 12 files changed, 1623 insertions(+), 3 deletions(-) -- 2.5.5