Show a patch.

GET /api/patches/73591/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 73591,
    "url": "https://patches.dpdk.org/api/patches/73591/?format=api",
    "web_url": "https://patches.dpdk.org/patch/73591/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk"
    },
    "msgid": "<20200709073452.948894-10-parav@mellanox.com>",
    "date": "2020-07-09T07:34:52",
    "name": "[v5,9/9] common/mlx5: remove class checks from individual driver",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "8d658cd24d2848b07b87fdbca13aec90d98f5d57",
    "submitter": {
        "id": 1780,
        "url": "https://patches.dpdk.org/api/people/1780/?format=api",
        "name": "Parav Pandit",
        "email": "parav@mellanox.com"
    },
    "delegate": {
        "id": 3268,
        "url": "https://patches.dpdk.org/api/users/3268/?format=api",
        "username": "rasland",
        "first_name": "Raslan",
        "last_name": "Darawsheh",
        "email": "rasland@mellanox.com"
    },
    "mbox": "https://patches.dpdk.org/patch/73591/mbox/",
    "series": [
        {
            "id": 10912,
            "url": "https://patches.dpdk.org/api/series/10912/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=10912",
            "date": "2020-07-09T07:34:43",
            "name": "Improve mlx5 PMD driver framework for multiple classes",
            "version": 5,
            "mbox": "https://patches.dpdk.org/series/10912/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/73591/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/73591/checks/",
    "tags": {},
    "headers": {
        "X-OriginatorOrg": "Mellanox.com",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "References": "<20200610171728.89-2-parav@mellanox.com>\n <20200709073452.948894-1-parav@mellanox.com>",
        "X-Mailman-Version": "2.1.15",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "09 Jul 2020 07:36:11.8246 (UTC)",
        "X-MS-Exchange-CrossTenant-AuthAs": "Internal",
        "Content-Type": "text/plain",
        "X-MS-Exchange-CrossTenant-MailboxType": "HOSTED",
        "X-MS-Oob-TLC-OOBClassifiers": "OLM:773;",
        "Message-Id": "<20200709073452.948894-10-parav@mellanox.com>",
        "X-MS-PublicTrafficType": "Email",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 31894A0526;\n\tThu,  9 Jul 2020 09:37:04 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id BBF451DC58;\n\tThu,  9 Jul 2020 09:36:13 +0200 (CEST)",
            "from EUR03-DB5-obe.outbound.protection.outlook.com\n (mail-eopbgr40049.outbound.protection.outlook.com [40.107.4.49])\n by dpdk.org (Postfix) with ESMTP id C41141DD8D\n for <dev@dpdk.org>; Thu,  9 Jul 2020 09:36:12 +0200 (CEST)",
            "from DB7PR05MB4876.eurprd05.prod.outlook.com (2603:10a6:10:1d::32)\n by DB7PR05MB5084.eurprd05.prod.outlook.com (2603:10a6:10:15::15) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.28; Thu, 9 Jul\n 2020 07:36:11 +0000",
            "from DB7PR05MB4876.eurprd05.prod.outlook.com\n ([fe80::8cb3:93cb:c3ef:4293]) by DB7PR05MB4876.eurprd05.prod.outlook.com\n ([fe80::8cb3:93cb:c3ef:4293%5]) with mapi id 15.20.3174.022; Thu, 9 Jul 2020\n 07:36:11 +0000",
            "from sw-mtx-036.mtx.labs.mlnx (208.176.44.194) by\n SN4PR0501CA0104.namprd05.prod.outlook.com (2603:10b6:803:42::21) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.9 via Frontend\n Transport; Thu, 9 Jul 2020 07:36:09 +0000"
        ],
        "Subject": "[dpdk-dev] [PATCH v5 9/9] common/mlx5: remove class checks from\n\tindividual driver",
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=OYZ8Df+A9ktGZobZE1aJohNGW3gZ4pF2RV0SoWIOgQvYz/TDDuuLqbT3At/0kyoGlaVuQ2kNeczw6lvwGvb0Pv2Ed9td/rqbfUrEg/Gviz38fVL4JqcAT0vpvzqZk1YexfOXhWXYheFbjMTP7IsWGyx/FWSll5Z3pOLjWL1QGURb5XOEst3ld9zpG9bbbquiRkL8vqAv/HrcOIcTYVPOKFpLnrgEdtcdrtLGupIVlJ+a/nGR0LcyAUb2jlUu6knKl46K+2itaFtLCDUaA03iYBKhsvaQXU+eMhLBdL68JFU6SPym4njfGZQ20sU1WeJmxygzBV4ngQOkOv2tVBDVcw==",
        "X-MS-Exchange-CrossTenant-UserPrincipalName": "\n caI7XvKRHGnrv+IVDKetoyeRTr4ELJ4C504uXp/offsirJ2C6wZAQ5zWbuz7KSAKUpEYZTX39pplX0APJZywQw==",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "X-MS-Exchange-AntiSpam-MessageData": "\n pnkgRDvlEhUZNZk+Us+RrIirTY5pbVXet4HcGmk6wvv5Y/eKt8PiwQ9YnI/Bm1u7gc56H4lBpacm9TEBQBDoE0Ygop/1IR2g1449iHecjtr1QUy7Nw0TQZFzhGYR+ihMsLwhX163V3K8RZpHnfe+XSWKIqyTp5BssGC5qjMxud+W7mEUD5m3X3SkAezgfpAbFTSzE0gRCPjzNqFJms7nm2KNhFyh0eqeen0tMKg0svXcSyro5WBPwV6U/parT5cZ5gZRIkKsVtvdReBmzglCY2AlWr4tbs4MSfGPWFfeZkiG9drUun0MIFqCzrV4tUBW5IZBbMRv6akbDG9BcBPxPuOlMCVU3Vtg//njL6uOzGkaJgMNlTqyAU1PV/Mujp44Gs3SuQ3rYtlmXGfeOULomwb9pIeYYr8aOakPlLpYcoV8ZiMPkfzh0aDpvuLrodxRI9u35Nqqe5j4MUEri+JOSt3yFBjBXLBrvdKHiEuesNgwZDHAJv/XJEo8DJNeDs3A",
        "Precedence": "list",
        "Date": "Thu,  9 Jul 2020 10:34:52 +0300",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Cc": "rasland@mellanox.com, orika@mellanox.com, matan@mellanox.com,\n joyce.kong@arm.com, Parav Pandit <parav@mellanox.com>",
        "X-Forefront-PRVS": "04599F3534",
        "X-MS-Exchange-MessageSentRepresentingType": "1",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "Hosted",
        "Content-Transfer-Encoding": "8bit",
        "To": "dev@dpdk.org, grive@u256.net, ferruh.yigit@intel.com, thomas@monjalon.net",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "MIME-Version": "1.0",
        "List-Post": "<mailto:dev@dpdk.org>",
        "X-MS-Exchange-CrossTenant-AuthSource": "DB7PR05MB4876.eurprd05.prod.outlook.com",
        "From": "Parav Pandit <parav@mellanox.com>",
        "X-Microsoft-Antispam-Message-Info": "\n 3s2GJVawN2j1tB5XshX0Q2Jf4BqpXlEjE9Pz0vwvhr4H99ZPS2AxMsJmBNs6Vu9MZdXA65eZvw4mkA9o8b2aniSWK8+2uU6UAMVw3cZqwWJU8nP2pbg3PnFuo5rmNfjGkjDxiGaG6o4lSJph79bugxD7hqCEE5RFxLQD5IspqnCIhgoVRCIya7y8et/NG47MOutiVwFgYevL++fI+58is49G8/CpWKOA2aB14QnlQqDmC0Gaa1I5SvoJVSMUk3u7DA0EM0rRdoZtd+LUy7EdtxGTx/jSoj1Eg8bnDv2OqYu1tsP/PLgAbTUD8PspKVNW",
        "X-BeenThere": "dev@dpdk.org",
        "X-MS-Exchange-Transport-Forked": "True",
        "X-MS-Office365-Filtering-HT": "Tenant",
        "X-MS-Exchange-CrossTenant-Id": "a652971c-7d2e-4d9b-a6a4-d149256f461b",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "X-Forefront-Antispam-Report": "CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;\n IPV:NLI; SFV:NSPM; H:DB7PR05MB4876.eurprd05.prod.outlook.com; PTR:; CAT:NONE;\n SFTY:;\n SFS:(4636009)(396003)(366004)(136003)(39860400002)(346002)(376002)(2906002)(16526019)(186003)(26005)(6506007)(6512007)(52116002)(107886003)(5660300002)(1076003)(6666004)(4326008)(316002)(83380400001)(36756003)(478600001)(86362001)(6486002)(66556008)(66476007)(956004)(2616005)(8936002)(8676002)(66946007);\n DIR:OUT; SFP:1101;",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n e413d1da-43f0-4995-7c8e-08d823dac05f",
        "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass\n smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com;\n dkim=pass header.d=mellanox.com; arc=none",
        "X-Mailer": [
            "git-send-email 2.26.2",
            "git-send-email 2.26.2"
        ],
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "Authentication-Results": "dpdk.org; dkim=none (message not signed)\n header.d=none;dpdk.org; dmarc=none action=none header.from=mellanox.com;",
        "X-LD-Processed": "a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtFwd,ExtAddr",
        "X-MS-TrafficTypeDiagnostic": "DB7PR05MB5084:",
        "X-Originating-IP": "[208.176.44.194]",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "DB7PR05MB5084",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com;\n s=selector1;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=0W3vsmYBjYtXT7CrN/ZZCEsBij3evIC3AqBB19HqAl4=;\n b=NOSk76LkxiT8Eg7HDipqqgXC6yIeqXOLn41brvHXCrxpXcUTANhpX+y7E6PY9sIqaS0Pzxumc6S2L31Ni0/zjO0DOk9yDehX/LPeG5KnFQJzh1b/h+jZYCzJxrAbr3sqAR0T3gQGY7rUp+To6KVMcAFgAdXDEJSv5pv4ed4X+bU=",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Errors-To": "dev-bounces@dpdk.org",
        "X-Microsoft-Antispam-PRVS": "\n <DB7PR05MB508408BE508E589A9800970FD1640@DB7PR05MB5084.eurprd05.prod.outlook.com>",
        "X-MS-Office365-Filtering-Correlation-Id": "e413d1da-43f0-4995-7c8e-08d823dac05f",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector9901;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=0W3vsmYBjYtXT7CrN/ZZCEsBij3evIC3AqBB19HqAl4=;\n b=EVtzekL4z1ozKUxOM+NGQ8vNSK1Sd3lPQYYqmzYeMGIRdJeAamIUwE2tjnEjQEXCSVq9kJKzXPFoDR2JOe7CpURO/pXZcFyFzl6YVXthh8T0wOR7+J3gQ74+A1vXZND1QK3Aav2EIR/qmi9M/89Jx2FBBuio2wZ7RxraL6jAhM7oFJ6/CsGTtyb9r9HBEv6/IzeDrfTlyO9jgS2vdjIfBBAZ0x+YQquaDAS4tCq7q0iT01fT2jkk1+NpD1g0MuuNfXr/MWjuZlCe4eNmL5PbZ75NnUk0BZgBC1uISZw51aX10parP8Hi2vvEHR1tUla/EbwtEDPZm/QEAzC1AmFXwA==",
        "In-Reply-To": "<20200709073452.948894-1-parav@mellanox.com>",
        "X-ClientProxiedBy": "SN4PR0501CA0104.namprd05.prod.outlook.com\n (2603:10b6:803:42::21) To DB7PR05MB4876.eurprd05.prod.outlook.com\n (2603:10a6:10:1d::32)",
        "X-Microsoft-Antispam": "BCL:0;",
        "X-MS-Exchange-SenderADCheck": "1"
    },
    "content": "Now that mlx5_pci bus does the check for enabled classes and performs\nprobe(), remove() of associated classes, individual class driver\ndoesn't need to check if other driver is enabled.\n\nSigned-off-by: Parav Pandit <parav@mellanox.com>\nAcked-by: Matan Azrad <matan@mellanox.com>\n---\nChangelog:\nv2->v3:\n - Removed empty line\nv1->v2:\n - New patch\n---\n drivers/common/mlx5/mlx5_common.c             | 37 -------------------\n drivers/common/mlx5/mlx5_common.h             |  2 -\n .../common/mlx5/rte_common_mlx5_version.map   |  2 -\n drivers/net/mlx5/linux/mlx5_os.c              |  5 ---\n drivers/net/mlx5/linux/mlx5_os.h              |  1 -\n drivers/vdpa/mlx5/mlx5_vdpa.c                 |  5 ---\n 6 files changed, 52 deletions(-)",
    "diff": "diff --git a/drivers/common/mlx5/mlx5_common.c b/drivers/common/mlx5/mlx5_common.c\nindex 0ce5e4db1..771e046c1 100644\n--- a/drivers/common/mlx5/mlx5_common.c\n+++ b/drivers/common/mlx5/mlx5_common.c\n@@ -22,43 +22,6 @@ const struct mlx5_glue *mlx5_glue;\n \n uint8_t haswell_broadwell_cpu;\n \n-static int\n-mlx5_class_check_handler(__rte_unused const char *key, const char *value,\n-\t\t\t void *opaque)\n-{\n-\tenum mlx5_class *ret = opaque;\n-\n-\tif (strcmp(value, \"vdpa\") == 0) {\n-\t\t*ret = MLX5_CLASS_VDPA;\n-\t} else if (strcmp(value, \"net\") == 0) {\n-\t\t*ret = MLX5_CLASS_NET;\n-\t} else {\n-\t\tDRV_LOG(ERR, \"Invalid mlx5 class %s. Maybe typo in device\"\n-\t\t\t\" class argument setting?\", value);\n-\t\t*ret = MLX5_CLASS_INVALID;\n-\t}\n-\treturn 0;\n-}\n-\n-enum mlx5_class\n-mlx5_class_get(struct rte_devargs *devargs)\n-{\n-\tstruct rte_kvargs *kvlist;\n-\tconst char *key = MLX5_CLASS_ARG_NAME;\n-\tenum mlx5_class ret = MLX5_CLASS_NET;\n-\n-\tif (devargs == NULL)\n-\t\treturn ret;\n-\tkvlist = rte_kvargs_parse(devargs->args, NULL);\n-\tif (kvlist == NULL)\n-\t\treturn ret;\n-\tif (rte_kvargs_count(kvlist, key))\n-\t\trte_kvargs_process(kvlist, key, mlx5_class_check_handler, &ret);\n-\trte_kvargs_free(kvlist);\n-\treturn ret;\n-}\n-\n-\n /* In case this is an x86_64 intel processor to check if\n  * we should use relaxed ordering.\n  */\ndiff --git a/drivers/common/mlx5/mlx5_common.h b/drivers/common/mlx5/mlx5_common.h\nindex 00ccba622..0effaab1d 100644\n--- a/drivers/common/mlx5/mlx5_common.h\n+++ b/drivers/common/mlx5/mlx5_common.h\n@@ -243,8 +243,6 @@ struct mlx5_klm {\n \n LIST_HEAD(mlx5_dbr_page_list, mlx5_devx_dbr_page);\n \n-__rte_internal\n-enum mlx5_class mlx5_class_get(struct rte_devargs *devargs);\n __rte_internal\n void mlx5_translate_port_name(const char *port_name_in,\n \t\t\t      struct mlx5_switch_info *port_info_out);\ndiff --git a/drivers/common/mlx5/rte_common_mlx5_version.map b/drivers/common/mlx5/rte_common_mlx5_version.map\nindex ae57ebdba..01b4358a0 100644\n--- a/drivers/common/mlx5/rte_common_mlx5_version.map\n+++ b/drivers/common/mlx5/rte_common_mlx5_version.map\n@@ -1,8 +1,6 @@\n INTERNAL {\n \tglobal:\n \n-\tmlx5_class_get;\n-\n \tmlx5_common_verbs_reg_mr;\n \tmlx5_common_verbs_dereg_mr;\n \ndiff --git a/drivers/net/mlx5/linux/mlx5_os.c b/drivers/net/mlx5/linux/mlx5_os.c\nindex b6042b7ef..2bd2b664d 100644\n--- a/drivers/net/mlx5/linux/mlx5_os.c\n+++ b/drivers/net/mlx5/linux/mlx5_os.c\n@@ -1308,11 +1308,6 @@ mlx5_os_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,\n \tstruct mlx5_dev_config dev_config;\n \tint ret;\n \n-\tif (mlx5_class_get(pci_dev->device.devargs) != MLX5_CLASS_NET) {\n-\t\tDRV_LOG(DEBUG, \"Skip probing - should be probed by other mlx5\"\n-\t\t\t\" driver.\");\n-\t\treturn 1;\n-\t}\n \tif (rte_eal_process_type() == RTE_PROC_PRIMARY)\n \t\tmlx5_pmd_socket_init();\n \tret = mlx5_init_once();\ndiff --git a/drivers/net/mlx5/linux/mlx5_os.h b/drivers/net/mlx5/linux/mlx5_os.h\nindex 695722520..31add3988 100644\n--- a/drivers/net/mlx5/linux/mlx5_os.h\n+++ b/drivers/net/mlx5/linux/mlx5_os.h\n@@ -15,5 +15,4 @@ enum {\n #define PCI_DRV_FLAGS  (RTE_PCI_DRV_INTR_LSC | \\\n \t\t\tRTE_PCI_DRV_INTR_RMV | \\\n \t\t\tRTE_PCI_DRV_PROBE_AGAIN)\n-\n #endif /* RTE_PMD_MLX5_OS_H_ */\ndiff --git a/drivers/vdpa/mlx5/mlx5_vdpa.c b/drivers/vdpa/mlx5/mlx5_vdpa.c\nindex 09c9cb935..41d69e8a8 100644\n--- a/drivers/vdpa/mlx5/mlx5_vdpa.c\n+++ b/drivers/vdpa/mlx5/mlx5_vdpa.c\n@@ -680,11 +680,6 @@ mlx5_vdpa_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,\n \tstruct mlx5_hca_attr attr;\n \tint ret;\n \n-\tif (mlx5_class_get(pci_dev->device.devargs) != MLX5_CLASS_VDPA) {\n-\t\tDRV_LOG(DEBUG, \"Skip probing - should be probed by other mlx5\"\n-\t\t\t\" driver.\");\n-\t\treturn 1;\n-\t}\n \tibv = mlx5_vdpa_get_ib_device_match(&pci_dev->addr);\n \tif (!ibv) {\n \t\tDRV_LOG(ERR, \"No matching IB device for PCI slot \"\n",
    "prefixes": [
        "v5",
        "9/9"
    ]
}