get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 95848,
    "url": "http://patches.dpdk.org/api/patches/95848/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210714103435.3388-4-mk@semihalf.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": "<20210714103435.3388-4-mk@semihalf.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210714103435.3388-4-mk@semihalf.com",
    "date": "2021-07-14T10:34:32",
    "name": "[v2,3/6] net/ena: trigger reset when Tx prepare fails",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "5ddc3f9604eaa32a188814fce37842ee6993cdf9",
    "submitter": {
        "id": 786,
        "url": "http://patches.dpdk.org/api/people/786/?format=api",
        "name": "Michal Krawczyk",
        "email": "mk@semihalf.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20210714103435.3388-4-mk@semihalf.com/mbox/",
    "series": [
        {
            "id": 17818,
            "url": "http://patches.dpdk.org/api/series/17818/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=17818",
            "date": "2021-07-14T10:34:29",
            "name": "net/ena: v2.4.0 driver update",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/17818/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/95848/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/95848/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 5EF49A0C4B;\n\tWed, 14 Jul 2021 12:35:14 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 6637841319;\n\tWed, 14 Jul 2021 12:35:00 +0200 (CEST)",
            "from mail-lj1-f174.google.com (mail-lj1-f174.google.com\n [209.85.208.174])\n by mails.dpdk.org (Postfix) with ESMTP id CAE2841312\n for <dev@dpdk.org>; Wed, 14 Jul 2021 12:34:57 +0200 (CEST)",
            "by mail-lj1-f174.google.com with SMTP id h19so2664839ljl.4\n for <dev@dpdk.org>; Wed, 14 Jul 2021 03:34:57 -0700 (PDT)",
            "from DESKTOP-U5LNN3J.localdomain (89-79-189-199.dynamic.chello.pl.\n [89.79.189.199])\n by smtp.gmail.com with ESMTPSA id l2sm191642ljc.78.2021.07.14.03.34.55\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 14 Jul 2021 03:34:56 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=semihalf-com.20150623.gappssmtp.com; s=20150623;\n h=from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding;\n bh=2rFmWrYqaj0tzyKSmL/glJKqExTy201t0xRu8WszzCw=;\n b=TvTjwhKwge9qkmqzy1BmPKAsFp/+F+Wuq/m0s8NqH9K54mYMA63lwpyCYokYDdQkmq\n buEyNjLHmw34AWjhgeMRshycNoEFmSBxAZ1HPCnvbsityxZDpLw9gaGRr8w7L+ENWKUJ\n ZIOb2heY3I9400f72+z9Vap2VNz//0fD5RdFcC3wsHTTRncVI1LhnrXkVwifTbxGIhLd\n TuWbfqqk/A7PPl0vLFXUPy+8/HGtDybxiyCXQu7X5KTzzWaIBKjiwHKcWaWER4HpJyf4\n c90+rb6NMIsUJj3SORHiPmDyvmxfn4noTut04cXH5vJvUAM4UZARsqNSBRv3GnJz4CDO\n myHA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20161025;\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=2rFmWrYqaj0tzyKSmL/glJKqExTy201t0xRu8WszzCw=;\n b=QhzP+F1VeLHPKPtGEi/EZyKemkH/eGEWCYhsekfv+3AjgPLC2i5evglzlQ0h6zC6Y1\n /avb8IwvuKiz9DacSMfqmCFq3I61GZre0edKJ8AXYP/Q7lSdZoGNZZfKtpfwycDLxRWt\n KYDIVYAIZp4068cafRj/KKmdwKFHRaxFZpSJbiFhggR8hQ9fesWAvLDrCKdr5ST0AouJ\n 3IsAOHLKuFoErNgd1F6KXMzTdCnYHxkw8BPTHhSuOiRjNIzVMM7FrcKSZ1iI6NFP1vcH\n R/4Tu9ehSvqALfuW8Ths/lfRZ3DRlyTSXowmdQWGFtfn3/9U8cfkAR2pEJHDcyJQCNRy\n gmqQ==",
        "X-Gm-Message-State": "AOAM533kw6unUwbf/UtDNqkSPoUbLly01JkBRbae4hPNPXrCMOVa4M0E\n SgRKeEZFYMMkPrSeFZV9wrEgSKEVFQq0l+/H",
        "X-Google-Smtp-Source": "\n ABdhPJx87JDi3V3prbHpHF0BzCLo308Bwh7JUv9by8Jph1fbG5IGPeIz2rSKigqrW1KFUAn50rzJeA==",
        "X-Received": "by 2002:a2e:5810:: with SMTP id m16mr8600787ljb.323.1626258897147;\n Wed, 14 Jul 2021 03:34:57 -0700 (PDT)",
        "From": "Michal Krawczyk <mk@semihalf.com>",
        "To": "dev@dpdk.org",
        "Cc": "ndagan@amazon.com, shaibran@amazon.com, upstream@semihalf.com,\n Michal Krawczyk <mk@semihalf.com>, stable@dpdk.org,\n Shay Agroskin <shayagr@amazon.com>",
        "Date": "Wed, 14 Jul 2021 12:34:32 +0200",
        "Message-Id": "<20210714103435.3388-4-mk@semihalf.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20210714103435.3388-1-mk@semihalf.com>",
        "References": "<20210713154118.32111-1-mk@semihalf.com>\n <20210714103435.3388-1-mk@semihalf.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v2 3/6] net/ena: trigger reset when Tx prepare\n fails",
        "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": "If the prepare function failed, then it means the descriptors are in the\ninvalid state.\n\nThis condition now triggers the reset, which should be further handled\nby the application.\n\nTo notify the application about prepare function failure, the error log\nwas added. In general, it should never fail in normal conditions, as the\nTx function checks for the available space in the Tx ring before the\npreparation even starts.\n\nFixes: 2081d5e2e92d (\"net/ena: add reset routine\")\nCc: stable@dpdk.org\n\nSigned-off-by: Michal Krawczyk <mk@semihalf.com>\nReviewed-by: Shai Brandes <shaibran@amazon.com>\nReviewed-by: Shay Agroskin <shayagr@amazon.com>\nChange-Id: Iff7b3a0e8b0b8e52f5230331b8486bb04a076d5b\n---\n drivers/net/ena/ena_ethdev.c | 4 ++++\n 1 file changed, 4 insertions(+)",
    "diff": "diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c\nindex 2335436b6c..67cd91046a 100644\n--- a/drivers/net/ena/ena_ethdev.c\n+++ b/drivers/net/ena/ena_ethdev.c\n@@ -2570,7 +2570,11 @@ static int ena_xmit_mbuf(struct ena_ring *tx_ring, struct rte_mbuf *mbuf)\n \trc = ena_com_prepare_tx(tx_ring->ena_com_io_sq,\t&ena_tx_ctx,\n \t\t&nb_hw_desc);\n \tif (unlikely(rc)) {\n+\t\tPMD_DRV_LOG(ERR, \"Failed to prepare Tx buffers, rc: %d\\n\", rc);\n \t\t++tx_ring->tx_stats.prepare_ctx_err;\n+\t\ttx_ring->adapter->reset_reason =\n+\t\t    ENA_REGS_RESET_DRIVER_INVALID_STATE;\n+\t\ttx_ring->adapter->trigger_reset = true;\n \t\treturn rc;\n \t}\n \n",
    "prefixes": [
        "v2",
        "3/6"
    ]
}