get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 100777,
    "url": "https://patches.dpdk.org/api/patches/100777/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20211007184350.73858-10-srikanth.k@oneconvergence.com/",
    "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",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20211007184350.73858-10-srikanth.k@oneconvergence.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20211007184350.73858-10-srikanth.k@oneconvergence.com",
    "date": "2021-10-07T18:43:18",
    "name": "[v2,09/41] net/mlx5: get the FreeBSD interface name",
    "commit_ref": null,
    "pull_url": null,
    "state": "deferred",
    "archived": false,
    "hash": "c6b769c293dd877f1761561acbc245f6c8a58b19",
    "submitter": {
        "id": 2368,
        "url": "https://patches.dpdk.org/api/people/2368/?format=api",
        "name": "Srikanth Kaka",
        "email": "srikanth.k@oneconvergence.com"
    },
    "delegate": {
        "id": 3268,
        "url": "https://patches.dpdk.org/api/users/3268/?format=api",
        "username": "rasland",
        "first_name": "Raslan",
        "last_name": "Darawsheh",
        "email": "rasland@nvidia.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20211007184350.73858-10-srikanth.k@oneconvergence.com/mbox/",
    "series": [
        {
            "id": 19455,
            "url": "https://patches.dpdk.org/api/series/19455/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=19455",
            "date": "2021-10-07T18:43:09",
            "name": "add MLX5 FreeBSD support",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/19455/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/100777/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/100777/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 2A39BA034F;\n\tFri,  8 Oct 2021 12:56:48 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 3E5334115C;\n\tFri,  8 Oct 2021 12:56:07 +0200 (CEST)",
            "from mail-pl1-f182.google.com (mail-pl1-f182.google.com\n [209.85.214.182])\n by mails.dpdk.org (Postfix) with ESMTP id 2F7FA411E0\n for <dev@dpdk.org>; Thu,  7 Oct 2021 20:44:38 +0200 (CEST)",
            "by mail-pl1-f182.google.com with SMTP id w11so4459694plz.13\n for <dev@dpdk.org>; Thu, 07 Oct 2021 11:44:38 -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.35\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 07 Oct 2021 11:44:37 -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=cOqwjSVXND9RTMldJZrp6ccQyMXReo0ANSwSaR7VQ2M=;\n b=gqb4lZB815oAgQbhx532jD10iZbROsw6jzaEpJ0VVYXYyxNTYWeNlSo42yrLNEVfZI\n 68i64ka9HCG/lU3eIJDgkS5ur5fel6IV0uLvG1vdLR9q0rZBpEmQjHpMhZHr9LdupbQA\n u/wO1FZp30YAFWBwjUMzG1ba8BjO6TTOfscW8=",
        "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=cOqwjSVXND9RTMldJZrp6ccQyMXReo0ANSwSaR7VQ2M=;\n b=XVABp2UAXHO9NL5IlX45FfixzWODrdzhA2lbYxkyvszhHRlvozFVt2Ky7VP4i55+Ed\n N1oaf0bV4wIZDMOvyhySb7uajGVzKrLotZVdZ5ly9191myi3CMDkKuKwbWygYZttUeXj\n cjJqEUpLd3iUDLczNjVhr0Zhi1tGW4kCdfsKOt+3tkOEGk3mwqd59LAuUTNFDrTIHb8P\n fO36GQKbmnpdARADxq7uEhOqgQtOdRf9Am/0lm9GTP7c5TWhuDyTy8JQSkI60rKTW/ST\n 5ReEZBbXGR9SPOjqYdZ3fMfunucAiSD9KV1GEtKkqbXY7cB5w7IszWiSWHq0VJv0N9oc\n ROdQ==",
        "X-Gm-Message-State": "AOAM5314aV1wdSIPHC27gkp0J3aFLWnKqV01XcUutkjpULj9VyJuE4mB\n 9XoM1k/5i+kQItphkhNnYLdRWw==",
        "X-Google-Smtp-Source": "\n ABdhPJxy84NBwW+7v3LuEOM9Zht4NL3aLm1UJaiXwuQGAOSdzrpNSTdOXinO2IVy/VJk0u6/umVBkw==",
        "X-Received": "by 2002:a17:90a:b382:: with SMTP id\n e2mr6693892pjr.119.1633632277471;\n Thu, 07 Oct 2021 11:44:37 -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:18 +0530",
        "Message-Id": "<20211007184350.73858-10-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 09/41] net/mlx5: get the FreeBSD interface name",
        "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": "Using the dev structure, mlx5_get_ifname can get the MLX\ninterface name\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/net/mlx5/freebsd/mlx5_ethdev_os.c | 33 +++++++++++++++++++++++\n 1 file changed, 33 insertions(+)\n create mode 100644 drivers/net/mlx5/freebsd/mlx5_ethdev_os.c",
    "diff": "diff --git a/drivers/net/mlx5/freebsd/mlx5_ethdev_os.c b/drivers/net/mlx5/freebsd/mlx5_ethdev_os.c\nnew file mode 100644\nindex 0000000000..ad53ec5968\n--- /dev/null\n+++ b/drivers/net/mlx5/freebsd/mlx5_ethdev_os.c\n@@ -0,0 +1,33 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright 2015 6WIND S.A.\n+ * Copyright 2015 Mellanox Technologies, Ltd\n+ */\n+\n+#include <stdio.h>\n+\n+#include <ethdev_driver.h>\n+\n+#include <mlx5_common.h>\n+\n+#include \"mlx5.h\"\n+\n+/**\n+ * Get interface name from private structure.\n+ *\n+ * @param[in] dev\n+ *   Pointer to Ethernet device.\n+ * @param[out] ifname\n+ *   Interface name output buffer.\n+ *\n+ * @return\n+ *   0 on success, a negative errno value otherwise and rte_errno is set.\n+ */\n+int\n+mlx5_get_ifname(const struct rte_eth_dev *dev, char (*ifname)[MLX5_NAMESIZE])\n+{\n+\tstruct mlx5_priv *priv = dev->data->dev_private;\n+\n+\tMLX5_ASSERT(priv);\n+\tMLX5_ASSERT(priv->sh);\n+\treturn mlx5_get_ifname_sysfs(priv->sh->ibdev_path, *ifname);\n+}\n",
    "prefixes": [
        "v2",
        "09/41"
    ]
}