get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 77549,
    "url": "https://patches.dpdk.org/api/patches/77549/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1600023922-14738-2-git-send-email-michaelba@nvidia.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": "<1600023922-14738-2-git-send-email-michaelba@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1600023922-14738-2-git-send-email-michaelba@nvidia.com",
    "date": "2020-09-13T19:05:22",
    "name": "[v1,2/2] net/mlx5: fix using hairpin without dest DevX TIR support",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "80821f40184e57bf7a5364bcc460992db3633bf7",
    "submitter": {
        "id": 1949,
        "url": "https://patches.dpdk.org/api/people/1949/?format=api",
        "name": "Michael Baum",
        "email": "michaelba@nvidia.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/1600023922-14738-2-git-send-email-michaelba@nvidia.com/mbox/",
    "series": [
        {
            "id": 12170,
            "url": "https://patches.dpdk.org/api/series/12170/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=12170",
            "date": "2020-09-13T19:05:21",
            "name": "[v1,1/2] net/mlx5: fix Rx objects creator selection",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/12170/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/77549/comments/",
    "check": "warning",
    "checks": "https://patches.dpdk.org/api/patches/77549/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 0F78DA04C9;\n\tSun, 13 Sep 2020 21:05:50 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id E0193FFA;\n\tSun, 13 Sep 2020 21:05:49 +0200 (CEST)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id 15357160\n for <dev@dpdk.org>; Sun, 13 Sep 2020 21:05:49 +0200 (CEST)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n michaelba@nvidia.com) with SMTP; 13 Sep 2020 22:05:46 +0300",
            "from nvidia.com (pegasus07.mtr.labs.mlnx [10.210.16.112])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 08DJ5S1n018345;\n Sun, 13 Sep 2020 22:05:46 +0300"
        ],
        "From": "Michael Baum <michaelba@nvidia.com>",
        "To": "dev@dpdk.org",
        "Cc": "Matan Azrad <matan@nvidia.com>, Raslan Darawsheh <rasland@nvidia.com>,\n Viacheslav Ovsiienko <viacheslavo@nvidia.com>, stable@dpdk.org",
        "Date": "Sun, 13 Sep 2020 19:05:22 +0000",
        "Message-Id": "<1600023922-14738-2-git-send-email-michaelba@nvidia.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1600023922-14738-1-git-send-email-michaelba@nvidia.com>",
        "References": "<1600023922-14738-1-git-send-email-michaelba@nvidia.com>",
        "Subject": "[dpdk-dev] [PATCH v1 2/2] net/mlx5: fix using hairpin without dest\n\tDevX TIR support",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "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": "The PMD supports hairpin only if DevX is supported and DV flow is enable.\n\nWhen destination DevX TIR is not supported, the PMD tries to create TIR\naction, and fails.\n\nAvoid supporting hairpin when destination DevX TIR is not supported.\n\nFixes: b6b3bf86bd1a (\"net/mlx5: get hairpin capabilities\")\nCc: stable@dpdk.org\n\nSigned-off-by: Michael Baum <michaelba@nvidia.com>\nAcked-by: Matan Azrad <matan@nvidia.com>\n---\n drivers/net/mlx5/mlx5_ethdev.c | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/net/mlx5/mlx5_ethdev.c b/drivers/net/mlx5/mlx5_ethdev.c\nindex cefb450..a7924b1 100644\n--- a/drivers/net/mlx5/mlx5_ethdev.c\n+++ b/drivers/net/mlx5/mlx5_ethdev.c\n@@ -569,12 +569,12 @@ struct mlx5_priv *\n  *   0 on success, a negative errno value otherwise and rte_errno is set.\n  */\n int\n-mlx5_hairpin_cap_get(struct rte_eth_dev *dev,\n-\t\t\t struct rte_eth_hairpin_cap *cap)\n+mlx5_hairpin_cap_get(struct rte_eth_dev *dev, struct rte_eth_hairpin_cap *cap)\n {\n \tstruct mlx5_priv *priv = dev->data->dev_private;\n+\tstruct mlx5_dev_config *config = &priv->config;\n \n-\tif (priv->sh->devx == 0) {\n+\tif (!priv->sh->devx || !config->dest_tir || !config->dv_flow_en) {\n \t\trte_errno = ENOTSUP;\n \t\treturn -rte_errno;\n \t}\n",
    "prefixes": [
        "v1",
        "2/2"
    ]
}