get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 100771,
    "url": "http://patches.dpdk.org/api/patches/100771/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20211007184350.73858-4-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-4-srikanth.k@oneconvergence.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20211007184350.73858-4-srikanth.k@oneconvergence.com",
    "date": "2021-10-07T18:43:12",
    "name": "[v2,03/41] common/mlx5: add FreeBSD getter functions",
    "commit_ref": null,
    "pull_url": null,
    "state": "deferred",
    "archived": false,
    "hash": "929995be704b8f7a53d0b27f38945f268c32c819",
    "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-4-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/100771/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/100771/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 F0FB3A034F;\n\tFri,  8 Oct 2021 12:56:13 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5764741137;\n\tFri,  8 Oct 2021 12:56:00 +0200 (CEST)",
            "from mail-pg1-f171.google.com (mail-pg1-f171.google.com\n [209.85.215.171])\n by mails.dpdk.org (Postfix) with ESMTP id 17F9A411E0\n for <dev@dpdk.org>; Thu,  7 Oct 2021 20:44:22 +0200 (CEST)",
            "by mail-pg1-f171.google.com with SMTP id 66so640277pgc.9\n for <dev@dpdk.org>; Thu, 07 Oct 2021 11:44:22 -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.18\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 07 Oct 2021 11:44:20 -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=SCiDwcmZ9wju0qauoRPefGhGDoF4vNLEO/QWe5/PrBE=;\n b=EZGKaxh5/acPqjcUeZeCNNfsHQCyHuXLN8w0j4wQXNdqGUnHJ68oe6rzg8HPhiok/0\n yJFdmO6aFQ20tEOdmE4lgmRVlqJiaqtkSxyN3ggza8s35q3MUuOZhrJIESP7ewQ7VFo2\n HUGUVtsTFMhrDgSDb9HeBko66iHNsSVXkSa/o=",
        "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=SCiDwcmZ9wju0qauoRPefGhGDoF4vNLEO/QWe5/PrBE=;\n b=6d5Y155Ssc6wDGEVLl6tVVwZ4MFWEVVGFofrR8RXKrcVKDb11gLdCGfhwPJizR3b6b\n +B2voj8frwetFQaVkUU1PfNdgvajxgoupTKMb04CvalVDA72JTERnprBwPU64XNGua7m\n ilXaUNWrja+D91qKg09pqHSwAP/vSioOP+P9OMLQVVr/kRZxFeqcT1/Y/d+0zVbt5zLr\n G0huZ1ImylPJJadrDC/qQVUVhhvdgkHMPghejyAizRtV/pr61X33vKNNpUiV9KaVQ5m3\n pYgRLniz//Dvf3w2W2/KiIxsqNnof6UtL02QoBC634+z4x9uvDow5EEA6xQsqWb7/wXR\n 2GQg==",
        "X-Gm-Message-State": "AOAM532lnDwFg9Y/2jGCRCKbxirSDhQFApNaSniax+uqgTj945iUagiF\n z070E95r+17eXJGzJdl9yzz2GA==",
        "X-Google-Smtp-Source": "\n ABdhPJy218NYzYe29wvVMXPEs3V2Eco9gI9TYSFfr+5sGnJ+8ZNCyZnLUf90tkYt2/gvhppV3ig9xQ==",
        "X-Received": "by 2002:a05:6a00:14c2:b0:44c:d483:4df3 with SMTP id\n w2-20020a056a0014c200b0044cd4834df3mr843260pfu.52.1633632261274;\n Thu, 07 Oct 2021 11:44:21 -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:12 +0530",
        "Message-Id": "<20211007184350.73858-4-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 03/41] common/mlx5: add FreeBSD getter\n functions",
        "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": "Add helper functions in mlx5_common_os.h from its Linux\ncounterpart\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.h | 244 +++++++++++++++++++\n 1 file changed, 244 insertions(+)",
    "diff": "diff --git a/drivers/common/mlx5/freebsd/mlx5_common_os.h b/drivers/common/mlx5/freebsd/mlx5_common_os.h\nindex 0bf22e016a..dab67ecbf0 100644\n--- a/drivers/common/mlx5/freebsd/mlx5_common_os.h\n+++ b/drivers/common/mlx5/freebsd/mlx5_common_os.h\n@@ -8,6 +8,250 @@\n \n #include <stdio.h>\n \n+#include <rte_pci.h>\n+#include <rte_debug.h>\n+#include <rte_atomic.h>\n+#include <rte_log.h>\n+#include <rte_kvargs.h>\n+#include <rte_devargs.h>\n+\n+#include \"mlx5_autoconf.h\"\n+#include \"mlx5_glue.h\"\n+\n+/**\n+ * Get device name. Given an ibv_device pointer - return a\n+ * pointer to the corresponding device name.\n+ *\n+ * @param[in] dev\n+ *   Pointer to ibv device.\n+ *\n+ * @return\n+ *   Pointer to device name if dev is valid, NULL otherwise.\n+ */\n+static inline const char *\n+mlx5_os_get_dev_device_name(void *dev)\n+{\n+\tif (!dev)\n+\t\treturn NULL;\n+\treturn ((struct ibv_device *)dev)->name;\n+}\n+\n+/**\n+ * Get ibv device name. Given an ibv_context pointer - return a\n+ * pointer to the corresponding device name.\n+ *\n+ * @param[in] ctx\n+ *   Pointer to ibv context.\n+ *\n+ * @return\n+ *   Pointer to device name if ctx is valid, NULL otherwise.\n+ */\n+static inline const char *\n+mlx5_os_get_ctx_device_name(void *ctx)\n+{\n+\tif (!ctx)\n+\t\treturn NULL;\n+\treturn ((struct ibv_context *)ctx)->device->name;\n+}\n+\n+/**\n+ * Get ibv device path name. Given an ibv_context pointer - return a\n+ * pointer to the corresponding device path name.\n+ *\n+ * @param[in] ctx\n+ *   Pointer to ibv context.\n+ *\n+ * @return\n+ *   Pointer to device path name if ctx is valid, NULL otherwise.\n+ */\n+\n+static inline const char *\n+mlx5_os_get_ctx_device_path(void *ctx)\n+{\n+\tif (!ctx)\n+\t\treturn NULL;\n+\n+\treturn ((struct ibv_context *)ctx)->device->ibdev_path;\n+}\n+\n+/**\n+ * Get umem id. Given a pointer to umem object of type\n+ * 'struct mlx5dv_devx_umem *' - return its id.\n+ *\n+ * @param[in] umem\n+ *    Pointer to umem object.\n+ *\n+ * @return\n+ *    The umem id if umem is valid, 0 otherwise.\n+ */\n+static inline uint32_t\n+mlx5_os_get_umem_id(void *umem)\n+{\n+\tif (!umem)\n+\t\treturn 0;\n+\treturn ((struct mlx5dv_devx_umem *)umem)->umem_id;\n+}\n+\n+/**\n+ * Get fd. Given a pointer to DevX channel object of type\n+ * 'struct mlx5dv_devx_event_channel*' - return its fd.\n+ *\n+ * @param[in] channel\n+ *    Pointer to channel object.\n+ *\n+ * @return\n+ *    The fd if channel is valid, 0 otherwise.\n+ */\n+static inline int\n+mlx5_os_get_devx_channel_fd(void *channel)\n+{\n+\tif (!channel)\n+\t\treturn 0;\n+\treturn ((struct mlx5dv_devx_event_channel *)channel)->fd;\n+}\n+\n+/**\n+ * Get mmap offset. Given a pointer to an DevX UAR object of type\n+ * 'struct mlx5dv_devx_uar *' - return its mmap offset.\n+ *\n+ * @param[in] uar\n+ *    Pointer to UAR object.\n+ *\n+ * @return\n+ *    The mmap offset if uar is valid, 0 otherwise.\n+ */\n+static inline off_t\n+mlx5_os_get_devx_uar_mmap_offset(void *uar)\n+{\n+#ifdef HAVE_MLX5DV_DEVX_UAR_OFFSET\n+\tif (!uar)\n+\t\treturn 0;\n+\treturn ((struct mlx5dv_devx_uar *)uar)->mmap_off;\n+#else\n+\tRTE_SET_USED(uar);\n+\treturn 0;\n+#endif\n+}\n+\n+/**\n+ * Get base addr pointer. Given a pointer to an UAR object of type\n+ * 'struct mlx5dv_devx_uar *' - return its base address.\n+ *\n+ * @param[in] uar\n+ *    Pointer to an UAR object.\n+ *\n+ * @return\n+ *    The base address if UAR is valid, 0 otherwise.\n+ */\n+static inline void *\n+mlx5_os_get_devx_uar_base_addr(void *uar)\n+{\n+#ifdef HAVE_MLX5DV_DEVX_UAR_OFFSET\n+\tif (!uar)\n+\t\treturn NULL;\n+\treturn ((struct mlx5dv_devx_uar *)uar)->base_addr;\n+#else\n+\tRTE_SET_USED(uar);\n+\treturn NULL;\n+#endif\n+}\n+\n+/**\n+ * Get reg addr pointer. Given a pointer to an UAR object of type\n+ * 'struct mlx5dv_devx_uar *' - return its reg address.\n+ *\n+ * @param[in] uar\n+ *    Pointer to an UAR object.\n+ *\n+ * @return\n+ *    The reg address if UAR is valid, 0 otherwise.\n+ */\n+static inline void *\n+mlx5_os_get_devx_uar_reg_addr(void *uar)\n+{\n+#ifdef HAVE_MLX5DV_DEVX_UAR_OFFSET\n+\tif (!uar)\n+\t\treturn NULL;\n+\treturn ((struct mlx5dv_devx_uar *)uar)->reg_addr;\n+#else\n+\tRTE_SET_USED(uar);\n+\treturn NULL;\n+#endif\n+}\n+\n+/**\n+ * Get page id. Given a pointer to an UAR object of type\n+ * 'struct mlx5dv_devx_uar *' - return its page id.\n+ *\n+ * @param[in] uar\n+ *    Pointer to an UAR object.\n+ *\n+ * @return\n+ *    The page id if UAR is valid, 0 otherwise.\n+ */\n+static inline uint32_t\n+mlx5_os_get_devx_uar_page_id(void *uar)\n+{\n+#ifdef HAVE_MLX5DV_DEVX_UAR_OFFSET\n+\tif (!uar)\n+\t\treturn 0;\n+\treturn ((struct mlx5dv_devx_uar *)uar)->page_id;\n+#else\n+\tRTE_SET_USED(uar);\n+\treturn 0;\n+#endif\n+}\n+\n+__rte_internal\n+static inline void *\n+mlx5_os_alloc_pd(void *ctx)\n+{\n+\treturn mlx5_glue->alloc_pd(ctx);\n+}\n+\n+__rte_internal\n+static inline int\n+mlx5_os_dealloc_pd(void *pd)\n+{\n+\treturn mlx5_glue->dealloc_pd(pd);\n+}\n+\n+__rte_internal\n+static inline void *\n+mlx5_os_umem_reg(void *ctx, void *addr, size_t size, uint32_t access)\n+{\n+\treturn mlx5_glue->devx_umem_reg(ctx, addr, size, access);\n+}\n+\n+__rte_internal\n+static inline int\n+mlx5_os_umem_dereg(void *pumem)\n+{\n+\treturn mlx5_glue->devx_umem_dereg(pumem);\n+}\n+\n+static inline void *\n+mlx5_os_devx_create_event_channel(void *ctx, int flags)\n+{\n+\treturn mlx5_glue->devx_create_event_channel(ctx, flags);\n+}\n+\n+static inline void\n+mlx5_os_devx_destroy_event_channel(void *eventc)\n+{\n+\tmlx5_glue->devx_destroy_event_channel(eventc);\n+}\n+\n+static inline int\n+mlx5_os_devx_subscribe_devx_event(void *eventc,\n+\t\t\t\t  void *obj,\n+\t\t\t\t  uint16_t events_sz, uint16_t events_num[],\n+\t\t\t\t  uint64_t cookie)\n+{\n+\treturn mlx5_glue->devx_subscribe_devx_event(eventc, obj, events_sz,\n+\t\t\t\t\t\t    events_num, cookie);\n+}\n+\n /**\n  * Memory allocation optionally with alignment.\n  *\n",
    "prefixes": [
        "v2",
        "03/41"
    ]
}