Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/100772/?format=api
http://patches.dpdk.org/api/patches/100772/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20211007184350.73858-5-srikanth.k@oneconvergence.com/", "project": { "id": 1, "url": "http://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", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20211007184350.73858-5-srikanth.k@oneconvergence.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20211007184350.73858-5-srikanth.k@oneconvergence.com", "date": "2021-10-07T18:43:13", "name": "[v2,04/41] common/mlx5: add mlx5_glue_constructor", "commit_ref": null, "pull_url": null, "state": "deferred", "archived": false, "hash": "278c923184ce4d5d2a8aad40d2ee8e2a5e7dc0b8", "submitter": { "id": 2368, "url": "http://patches.dpdk.org/api/people/2368/?format=api", "name": "Srikanth Kaka", "email": "srikanth.k@oneconvergence.com" }, "delegate": { "id": 3268, "url": "http://patches.dpdk.org/api/users/3268/?format=api", "username": "rasland", "first_name": "Raslan", "last_name": "Darawsheh", "email": "rasland@nvidia.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20211007184350.73858-5-srikanth.k@oneconvergence.com/mbox/", "series": [ { "id": 19455, "url": "http://patches.dpdk.org/api/series/19455/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=19455", "date": "2021-10-07T18:43:09", "name": "add MLX5 FreeBSD support", "version": 2, "mbox": "http://patches.dpdk.org/series/19455/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/100772/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/100772/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 4EA5FA034F;\n\tFri, 8 Oct 2021 12:56:19 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 846694113E;\n\tFri, 8 Oct 2021 12:56:01 +0200 (CEST)", "from mail-pf1-f169.google.com (mail-pf1-f169.google.com\n [209.85.210.169])\n by mails.dpdk.org (Postfix) with ESMTP id BC00041217\n for <dev@dpdk.org>; Thu, 7 Oct 2021 20:44:24 +0200 (CEST)", "by mail-pf1-f169.google.com with SMTP id m14so6071222pfc.9\n for <dev@dpdk.org>; Thu, 07 Oct 2021 11:44:24 -0700 (PDT)", "from srikanth-ThinkPad-T450.domain.name ([136.185.113.102])\n by smtp.gmail.com with ESMTPSA id c11sm3311586pji.38.2021.10.07.11.44.21\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 07 Oct 2021 11:44:23 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oneconvergence.com; s=google;\n h=from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding;\n bh=Js650ATGX38a96CjrnBRXwUZidvvOM64NcThp39GPI4=;\n b=ME6BP0HKP5A62iN7cRL8sWVkMLpGSAGvWiJl/zgBz+sp1voYOtqG+HRRPY316Sp0Jv\n zrV7vCTvfFdo56ec1yzqzNKlYBRhjOc6fMtf7zaDSpmbMNfQIYJc5k0CyO55U48yCBqM\n w2woY/wAI7YI/r7b803rDbUg/aeNFJ3dlqmbk=", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20210112;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n :references:mime-version:content-transfer-encoding;\n bh=Js650ATGX38a96CjrnBRXwUZidvvOM64NcThp39GPI4=;\n b=i2PP9do82AEgYGm8fi8rnc1/FnqR8SI/hr1Hvzzn/Mj2dYSlsNMcpXSo57NdeV/Bwx\n bsb8zbs2NmWWm3I18cftf9MUaItPj4DBuFeGT6oDMPutP6Jl5ZBC6RHGZZy603Qo5WNB\n MnjLSW35mgr1E5GjOdiNZ/MLtmwtjbC6pAcmUK9MiXC/1PsPzutYhax97S/VV/ogacnF\n /eGHJ0P507FqMZ0mF2xs69AH9zZ+nbXnVFPzqY00IXaq+anAIYseAk34LNVvcCh7MMjw\n FD4sLQ/sdeTK9Llt1JpF7GSHGk7jqo5CF1CagT6QNxGWhgq1S8faQpG/19tuWC2kLTHT\n VBWw==", "X-Gm-Message-State": "AOAM533zwg7ADbLk25qSk27GmAvuLR9wrUsgWA12xcnbWGVMBDtsAaOD\n 4No5yCS95m62odWTQqjvJoU5aA==", "X-Google-Smtp-Source": "\n ABdhPJwzlFP0qEO/z/gnBXpR1tQ9CJNBK29NxjNWLHIcL4NGX8klFrfTQDV1uuZn5fq3dZ5uiDuCEg==", "X-Received": "by 2002:a63:af4a:: with SMTP id s10mr966790pgo.469.1633632263969;\n Thu, 07 Oct 2021 11:44:23 -0700 (PDT)", "From": "Srikanth Kaka <srikanth.k@oneconvergence.com>", "To": "Matan Azrad <matan@nvidia.com>,\n Viacheslav Ovsiienko <viacheslavo@nvidia.com>", "Cc": "dev@dpdk.org, Vag Singh <vag.singh@oneconvergence.com>,\n Anand Thulasiram <avelu@juniper.net>,\n Srikanth Kaka <srikanth.k@oneconvergence.com>", "Date": "Fri, 8 Oct 2021 00:13:13 +0530", "Message-Id": "<20211007184350.73858-5-srikanth.k@oneconvergence.com>", "X-Mailer": "git-send-email 2.30.2", "In-Reply-To": "<20211007184350.73858-1-srikanth.k@oneconvergence.com>", "References": "<20211007184350.73858-1-srikanth.k@oneconvergence.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-Mailman-Approved-At": "Fri, 08 Oct 2021 12:55:54 +0200", "Subject": "[dpdk-dev] [PATCH v2 04/41] common/mlx5: add mlx5_glue_constructor", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Defined mlx5_glue_constructor in mlx5_common_os.c to support\nrun-time dependency on rdma-core\n\nSigned-off-by: Srikanth Kaka <srikanth.k@oneconvergence.com>\nSigned-off-by: Vag Singh <vag.singh@oneconvergence.com>\nSigned-off-by: Anand Thulasiram <avelu@juniper.net>\n---\n drivers/common/mlx5/freebsd/mlx5_common_os.c | 60 ++++++++++++++++++++\n 1 file changed, 60 insertions(+)\n create mode 100644 drivers/common/mlx5/freebsd/mlx5_common_os.c", "diff": "diff --git a/drivers/common/mlx5/freebsd/mlx5_common_os.c b/drivers/common/mlx5/freebsd/mlx5_common_os.c\nnew file mode 100644\nindex 0000000000..9c3cd1e4e6\n--- /dev/null\n+++ b/drivers/common/mlx5/freebsd/mlx5_common_os.c\n@@ -0,0 +1,60 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright 2020 Mellanox Technologies, Ltd\n+ */\n+\n+#include <unistd.h>\n+#include <stdio.h>\n+#include <sys/sysctl.h>\n+\n+#include <rte_errno.h>\n+\n+#include \"mlx5_common.h\"\n+#include \"mlx5_common_log.h\"\n+#include \"mlx5_glue.h\"\n+\n+/**\n+ * Initialization routine for run-time dependency on rdma-core.\n+ */\n+void\n+mlx5_glue_constructor(void)\n+{\n+\t/*\n+\t * RDMAV_HUGEPAGES_SAFE tells ibv_fork_init() we intend to use\n+\t * huge pages. Calling ibv_fork_init() during init allows\n+\t * applications to use fork() safely for purposes other than\n+\t * using this PMD, which is not supported in forked processes.\n+\t */\n+\tsetenv(\"RDMAV_HUGEPAGES_SAFE\", \"1\", 1);\n+\t/* Match the size of Rx completion entry to the size of a cacheline. */\n+\tif (RTE_CACHE_LINE_SIZE == 128)\n+\t\tsetenv(\"MLX5_CQE_SIZE\", \"128\", 0);\n+\t/*\n+\t * MLX5_DEVICE_FATAL_CLEANUP tells ibv_destroy functions to\n+\t * cleanup all the Verbs resources even when the device was removed.\n+\t */\n+\tsetenv(\"MLX5_DEVICE_FATAL_CLEANUP\", \"1\", 1);\n+\n+#ifdef RTE_LIBRTE_MLX5_DEBUG\n+\t/* Glue structure must not contain any NULL pointers. */\n+\t{\n+\t\tunsigned int i;\n+\n+\t\tfor (i = 0; i != sizeof(*mlx5_glue) / sizeof(void *); ++i)\n+\t\t\tMLX5_ASSERT(((const void *const *)mlx5_glue)[i]);\n+\t}\n+#endif\n+\tif (strcmp(mlx5_glue->version, MLX5_GLUE_VERSION)) {\n+\t\trte_errno = EINVAL;\n+\t\tDRV_LOG(ERR, \"rdma-core glue \\\"%s\\\" mismatch: \\\"%s\\\" is \"\n+\t\t\t\"required\", mlx5_glue->version, MLX5_GLUE_VERSION);\n+\t\tgoto glue_error;\n+\t}\n+\tmlx5_glue->fork_init();\n+\treturn;\n+\n+glue_error:\n+\tDRV_LOG(WARNING, \"Cannot initialize MLX5 common due to missing\"\n+\t\t\" run-time dependency on rdma-core libraries (libibverbs,\"\n+\t\t\" libmlx5)\");\n+\tmlx5_glue = NULL;\n+}\n", "prefixes": [ "v2", "04/41" ] }{ "id": 100772, "url": "