get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 92503,
    "url": "https://patches.dpdk.org/api/patches/92503/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210430125725.28796-15-mk@semihalf.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": "<20210430125725.28796-15-mk@semihalf.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210430125725.28796-15-mk@semihalf.com",
    "date": "2021-04-30T12:57:17",
    "name": "[14/22] net/ena: indicate Rx RSS hash presence",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "31911ebe4432ca87ef025d6ba0eae4afe09ae02c",
    "submitter": {
        "id": 786,
        "url": "https://patches.dpdk.org/api/people/786/?format=api",
        "name": "Michal Krawczyk",
        "email": "mk@semihalf.com"
    },
    "delegate": {
        "id": 319,
        "url": "https://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210430125725.28796-15-mk@semihalf.com/mbox/",
    "series": [
        {
            "id": 16774,
            "url": "https://patches.dpdk.org/api/series/16774/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=16774",
            "date": "2021-04-30T12:57:03",
            "name": "net/ena: update ENA PMD to v2.3.0",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/16774/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/92503/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/92503/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 A171EA0546;\n\tFri, 30 Apr 2021 14:59:10 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id A659641137;\n\tFri, 30 Apr 2021 14:58:02 +0200 (CEST)",
            "from mail-wr1-f49.google.com (mail-wr1-f49.google.com\n [209.85.221.49]) by mails.dpdk.org (Postfix) with ESMTP id C406041273\n for <dev@dpdk.org>; Fri, 30 Apr 2021 14:57:55 +0200 (CEST)",
            "by mail-wr1-f49.google.com with SMTP id n2so17315758wrm.0\n for <dev@dpdk.org>; Fri, 30 Apr 2021 05:57:55 -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 l13sm13476245wmj.3.2021.04.30.05.57.53\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 30 Apr 2021 05:57:54 -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=CCn/jybjwpSYdpjlPdx2Ac4wk64prMVI0wGVgKgb4uo=;\n b=kDAayFKIk4vQR2DA7kV16tgbX2PPGZI+SyfGFMdTik3o0oj0sTFMC9yWNd6GH825YV\n YY/ftHZSg38Xhk6R1U1AYmOG6yNxPG0ZDo3/VQKreyfUfOn7EooeJ/Z6rt1D6bsQIdep\n 4guLRpMarXw96LvtLj0cWEvr6iPRXnhYDXWBaig1s48/Gu7+/TXzTI8+eyKqlFP2ZKUp\n XSQiuyzwIUMgHmStbdjgzwSUUNvoOo3E8qvov84bSBeSFe2dutCfjaXpKoHQ47LD2kG5\n DqgaCrVFnuLmjJ+SYI0rq5pR1m64zOcrKk3C+aOd+ZzPthdR8gAo6eeYCIJZ0yiFRZ5W\n +N2A==",
        "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=CCn/jybjwpSYdpjlPdx2Ac4wk64prMVI0wGVgKgb4uo=;\n b=B7HQuN/ud2KcGavhJKDsOfadvR/7XhKieaSjyFuMTk0YuLIokjvC4P6MlR/rKiY2ZW\n MxZy26Ol85lM6hDsRPh6DXUlg8a1zSefBiUig+JcdORlKwiO4FLFC4MwsMvYor1o6zvj\n ZeNinrvbVqMvnbqfUeIkkBa/optY+Z9QthpGF3uJM0ZbUD8s+8N6nY2Ptk8FSvcOsq5w\n vuTiE5aslI1KjbB5yC8nxOWgipLHNbOwLqFJCPQqMpdTs4YhIyZOZrSTvZWB40iZohZ/\n yyOT2FMySDn00vO7wqgyxmMqKv+5tx9cNTegW2PbcKpJAM6diR6I1W9cJacCYUTwV7SP\n nVbQ==",
        "X-Gm-Message-State": "AOAM532b8VZbbaZ7Aec9G3y0OTnwmujjS/3zDkv6EvXHsnqi8V1B0h+x\n s0fSwLKjv43WLtyYcEVRjaOnNmXsSO0LT/EW",
        "X-Google-Smtp-Source": "\n ABdhPJwhQQaDkIDfsCjt7PcTg+nAz4fvSae7jX++jZ5T3QE6kOPArmbcomp5HTskgzNanNr7AjGDvw==",
        "X-Received": "by 2002:a5d:4805:: with SMTP id l5mr6961948wrq.40.1619787475155;\n Fri, 30 Apr 2021 05:57:55 -0700 (PDT)",
        "From": "Michal Krawczyk <mk@semihalf.com>",
        "To": "dev@dpdk.org",
        "Cc": "ndagan@amazom.com, gtzalik@amazon.com, igorch@amazon.com, mw@semihalf.com,\n Michal Krawczyk <mk@semihalf.com>, stable@dpdk.org,\n Amit Bernstein <amitbern@amazon.com>",
        "Date": "Fri, 30 Apr 2021 14:57:17 +0200",
        "Message-Id": "<20210430125725.28796-15-mk@semihalf.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20210430125725.28796-1-mk@semihalf.com>",
        "References": "<20210430125725.28796-1-mk@semihalf.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH 14/22] net/ena: indicate Rx RSS hash presence",
        "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": "To make it possible to the app to determine if the hash was calculated\nfor the packet or not, the PKT_RX_RSS_HASH should be set in the mbuf's\nol_flags.\n\nAs the PMD wasn't setting that, the application couldn't check if there\nis a hash in a proper way.\n\nThe hash is valid only if it's UDP or TCP and the IP packet wasn't\nfragmented.\n\nFixes: e5df9f33db00 (\"net/ena: fix passing RSS hash to mbuf\")\nCc: stable@dpdk.org\n\nSigned-off-by: Michal Krawczyk <mk@semihalf.com>\nReviewed-by: Igor Chauskin <igorch@amazon.com>\nReviewed-by: Amit Bernstein <amitbern@amazon.com>\n---\n drivers/net/ena/ena_ethdev.c | 9 +++++++--\n 1 file changed, 7 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c\nindex 6092288239..5d107775f4 100644\n--- a/drivers/net/ena/ena_ethdev.c\n+++ b/drivers/net/ena/ena_ethdev.c\n@@ -51,6 +51,8 @@\n \n #define ENA_MIN_RING_DESC\t128\n \n+#define ENA_PTYPE_HAS_HASH\t(RTE_PTYPE_L4_TCP | RTE_PTYPE_L4_UDP)\n+\n enum ethtool_stringset {\n \tETH_SS_TEST             = 0,\n \tETH_SS_STATS,\n@@ -314,6 +316,11 @@ static inline void ena_rx_mbuf_prepare(struct rte_mbuf *mbuf,\n \t\telse\n \t\t\tol_flags |= PKT_RX_L4_CKSUM_GOOD;\n \n+\tif (likely((packet_type & ENA_PTYPE_HAS_HASH) && !ena_rx_ctx->frag)) {\n+\t\tol_flags |= PKT_RX_RSS_HASH;\n+\t\tmbuf->hash.rss = ena_rx_ctx->hash;\n+\t}\n+\n \tmbuf->ol_flags = ol_flags;\n \tmbuf->packet_type = packet_type;\n }\n@@ -2245,8 +2252,6 @@ static uint16_t eth_ena_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts,\n \t\t\t++rx_ring->rx_stats.bad_csum;\n \t\t}\n \n-\t\tmbuf->hash.rss = ena_rx_ctx.hash;\n-\n \t\trx_pkts[completed] = mbuf;\n \t\trx_ring->rx_stats.bytes += mbuf->pkt_len;\n \t}\n",
    "prefixes": [
        "14/22"
    ]
}