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 2C54DA0C51; Wed, 21 Jul 2021 16:38:20 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 177234068B; Wed, 21 Jul 2021 16:38:20 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2059.outbound.protection.outlook.com [40.107.237.59]) by mails.dpdk.org (Postfix) with ESMTP id 0C25940689 for ; Wed, 21 Jul 2021 16:38:19 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XPLScamzvqZIlYBO+Obh3wTb92z+MmHll4pC7UIaxosGO9AGIU2I4RF5MnVPBglmelkbFDEV5+7BPBy5XWF8UXr4bZJfhqKyN7vqD5Jh8h9lnauLsZBM5DLVFWtMZ8rOrsj/cE8iJQ7DWs7MnGQe2bdvbra9ieRnvyp1J71Nu9/0gNXqoxoEcxDXpopVyIABhm35r1UPvaQTMJGOMzbsctdxySrClP/CrutnWkMhrQ12i0347AM/BBFAXLYqM3p32jQIaFUZxkeB3mV0vz/3JgADgzJ/KEXfaQMjto9QJD2SrQHCe8o/QiCffCdk7H0QDVAsxJJs6fg/o3seK8Pw/g== 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=oAoaXzP5i+rloo6j3H5+sN4Hd0/n/pf08QOiisTShRA=; b=aidqmvBKO2PfFWbW09oLwbODxy2uqmpA3btMfmlJD5oLoM1Fm2rna0fLmm0/tmRkoG/gwTGEChw3nryZ4DzD1zfyc1xEXGOBUGmFjnxN/e9R22iUd5vIS2xtgbMdFgK5Y75m9rF6qMuV37dVrKGo9UOw9SbU3/s7BOCC2vmqPTIbjVfj8gRb2q+QBdKujj49JaTKA5lnTfIoqVCo3eoOQlB3as+IT2RkIonBVOBHRJTKcmJ5iJaqcReDSPZkDypUPhbt7WjIGS55yPAG04A24EUXDqukQkHiZ/d8Ca8xM/7CoN1kbIffh3hCqvzoZ9TNMIk313/BEUKEG56veY8rvw== 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=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=oAoaXzP5i+rloo6j3H5+sN4Hd0/n/pf08QOiisTShRA=; b=NGibnaJSnU3C07MWATFJFYkZz8TaxzbB10w9l6k6LLx+If9QQCUt5Ab5kWRkPrIEHmCQJ4bBMnezQIZBVZ/9/EFQPpBIrsWsBDX3jr+t9/HBHAugzN/CHp8AlW0jUGfOo9WOotXIqHwffNf+Zwnm6ndmR8FwOpAM82PmRfVNmxuY3t6DEwO7EU1Al5UZ+S9dnYS/73J4d6JB6C1w8JOc4kZC6CVO/iTX3rYTF0cfHJ61c4v7Tu9XbOX7c8MH40yXXNMJum3kDiuUOf3WaGHyyuX0XHagP2q/MtYJfYIxTcLKqrIkle/BY82FW1JokiB4oEirwfVWaYeFMZZ6MW7EsA== Received: from BN6PR11CA0064.namprd11.prod.outlook.com (2603:10b6:404:f7::26) by BYAPR12MB4727.namprd12.prod.outlook.com (2603:10b6:a03:99::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.29; Wed, 21 Jul 2021 14:38:17 +0000 Received: from BN8NAM11FT009.eop-nam11.prod.protection.outlook.com (2603:10b6:404:f7:cafe::1b) by BN6PR11CA0064.outlook.office365.com (2603:10b6:404:f7::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.24 via Frontend Transport; Wed, 21 Jul 2021 14:38:17 +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 BN8NAM11FT009.mail.protection.outlook.com (10.13.176.65) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4352.24 via Frontend Transport; Wed, 21 Jul 2021 14:38:17 +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; Wed, 21 Jul 2021 14:38:15 +0000 From: Xueming Li To: Viacheslav Ovsiienko CC: , Date: Wed, 21 Jul 2021 22:37:27 +0800 Message-ID: <20210721143743.24626-1-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210616040935.311733-1-xuemingl@nvidia.com> References: <20210616040935.311733-1-xuemingl@nvidia.com> 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: e078da32-3446-4e14-6c14-08d94c552dcd X-MS-TrafficTypeDiagnostic: BYAPR12MB4727: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LgqloBZFpJoI9n7KGMKT2Yy/kmgmkTqqEH7rUa7S06+9vyv6U5hZ3aX/bvHt+ywF8EmP2SdPQ7sID/UjoMA2yPo8myPWxdvlpgFaKz6HL+xBR0hV/fWxg2GFIfbGvPIDkruxFF8L/3ds/GTEM6zulFmm7SnEL2JfTfpfBo8mkJ+/a8QeQatY45r4a+UIpWULoLCm8KchbdyxTTaa3alSOR1J0vsRy5PjYvqjBZwUzvgNEwURBwcfJEbfiFo3w0sRD1rH3/rFGZkYhkozChh3YrIe6gZnQzp5/EvWXvBxFtwT+UZD8lsBVgkTlrKVfuxPS7HeDHN0affwnQBY5USzH3hVEsh6pHaWNPVP1/SNLEA613CMZK/Lb4HS+jdvBnDthh8DcFrnBFgioAuSURcYUWnm8DAtoHXASEur0wfYQ9EtiYQDq4RAHvcCM0K5tpBRoTye6mps6ki0ZvbL7g/7VuXGn4eJeMyOK657Y0u1nJBEAVAPSzyRvaFde6vobJMVjdMO3Ltxe62oj43Qni60yRMs9obrxv3/aln6tk00EnaC1MlgqWHcleDgzC4iG7JcRFQqwAxZ6RupOHHA432HsDHG5jQTTlinqwqwj8BFS8/Fgp+NkptoZVAQhZb4v82zKboe6jH6msfu+PehWuhfLSFW+qaaePj/ABrkrZUJwQrfp602hFADzSDX9uTyAI2PDIoP/WBP4bnmlfwZgfTGUEHiM8feZiN+U4fATcGQYXpt2FQIwQ8240LjmvxHy+VTjS9D1XiXWqBC7VOZjtZO/jR/z9o+/4kErcyiwzDWpszJUqaIZpoSzeRvh6lg9ftTHfvJ0p5LuQDWNhEnIgW7jg== 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)(39860400002)(346002)(136003)(396003)(376002)(46966006)(36840700001)(8936002)(7696005)(316002)(36860700001)(6666004)(54906003)(82740400003)(478600001)(26005)(86362001)(7636003)(8676002)(186003)(82310400003)(107886003)(37006003)(356005)(6862004)(16526019)(83380400001)(5660300002)(36756003)(4326008)(6636002)(336012)(426003)(6286002)(2616005)(70586007)(55016002)(966005)(36906005)(2906002)(1076003)(47076005)(70206006); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jul 2021 14:38:17.2335 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e078da32-3446-4e14-6c14-08d94c552dcd 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: BN8NAM11FT009.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR12MB4727 Subject: [dpdk-dev] [PATCH v4 00/16] net/mlx5: support Sub-Function 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" Sub-Function [1] is a portion of the PCI device, a SF netdev has its own dedicated queues(txq, rxq). A SF shares PCI level resources with other SFs and/or with its parent PCI function. Auxiliary bus is the fundamental of SF. This patch set introduces Sub-Function support for mlx5 PMD driver including class net, regex, vdpa and compress. Version history: RFC: initial version V1: rebased on latest upstream code V2: init sh->numa_node earlier other bug fixes V3: split first patch and fix compilation issue V4: convert crypto pmd using new common driver [1] SubFunction in kernel: https://lore.kernel.org/netdev/20201112192424.2742-1-parav@nvidia.com/ [2] Auxiliary bus: http://patchwork.dpdk.org/project/dpdk/patch/20210510134732.2174-1-xuemingl@nvidia.com/ Thomas Monjalon (5): common/mlx5: move description of PCI sysfs functions common/mlx5: get PCI device address from any bus vdpa/mlx5: define driver name as macro vdpa/mlx5: remove PCI specifics vdpa/mlx5: support SubFunction Xueming Li (11): common/mlx5: rename eth device class name common/mlx5: add common device driver common/mlx5: support auxiliary bus net/mlx5: remove PCI dependency net/mlx5: migrate to bus-agnostic common driver net/mlx5: support SubFunction net/mlx5: check max Verbs port number regex/mlx5: migrate to common driver compress/mlx5: migrate to common driver crypto/mlx5: migrate to common driver common/mlx5: clean up legacy PCI bus driver doc/guides/nics/mlx5.rst | 54 +- doc/guides/rel_notes/release_21_08.rst | 5 + doc/guides/vdpadevs/mlx5.rst | 10 + drivers/common/mlx5/linux/meson.build | 3 + .../common/mlx5/linux/mlx5_common_auxiliary.c | 192 +++++++ drivers/common/mlx5/linux/mlx5_common_os.c | 29 +- drivers/common/mlx5/linux/mlx5_common_os.h | 6 +- drivers/common/mlx5/linux/mlx5_common_verbs.c | 24 +- drivers/common/mlx5/meson.build | 2 +- drivers/common/mlx5/mlx5_common.c | 390 ++++++++++++- drivers/common/mlx5/mlx5_common.h | 179 +++++- drivers/common/mlx5/mlx5_common_pci.c | 540 ++++-------------- drivers/common/mlx5/mlx5_common_pci.h | 78 --- drivers/common/mlx5/mlx5_common_private.h | 50 ++ drivers/common/mlx5/mlx5_common_utils.h | 2 + drivers/common/mlx5/version.map | 12 +- drivers/compress/mlx5/mlx5_compress.c | 71 +-- drivers/crypto/mlx5/mlx5_crypto.c | 61 +- drivers/crypto/mlx5/mlx5_crypto.h | 1 - drivers/net/mlx5/linux/mlx5_ethdev_os.c | 14 +- drivers/net/mlx5/linux/mlx5_os.c | 203 +++++-- drivers/net/mlx5/linux/mlx5_os.h | 5 +- drivers/net/mlx5/mlx5.c | 116 ++-- drivers/net/mlx5/mlx5.h | 14 +- drivers/net/mlx5/mlx5_ethdev.c | 2 +- drivers/net/mlx5/mlx5_mac.c | 2 +- drivers/net/mlx5/mlx5_mr.c | 48 +- drivers/net/mlx5/mlx5_rxmode.c | 8 +- drivers/net/mlx5/mlx5_rxtx.h | 9 +- drivers/net/mlx5/mlx5_trigger.c | 14 +- drivers/net/mlx5/mlx5_txq.c | 3 +- drivers/net/mlx5/windows/mlx5_os.c | 15 +- drivers/regex/mlx5/mlx5_regex.c | 49 +- drivers/regex/mlx5/mlx5_regex.h | 1 - drivers/vdpa/mlx5/mlx5_vdpa.c | 128 ++--- drivers/vdpa/mlx5/mlx5_vdpa.h | 1 - 36 files changed, 1380 insertions(+), 961 deletions(-) create mode 100644 drivers/common/mlx5/linux/mlx5_common_auxiliary.c delete mode 100644 drivers/common/mlx5/mlx5_common_pci.h create mode 100644 drivers/common/mlx5/mlx5_common_private.h -- 2.25.1