get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 91422,
    "url": "https://patches.dpdk.org/api/patches/91422/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1618385649-44717-2-git-send-email-wenzhuo.lu@intel.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": "<1618385649-44717-2-git-send-email-wenzhuo.lu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1618385649-44717-2-git-send-email-wenzhuo.lu@intel.com",
    "date": "2021-04-14T07:34:06",
    "name": "[v5,1/4] net/iavf: store offload flag of Rx queue",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "f87c70ebb675b0f90b5457603afb9cdc70cf8731",
    "submitter": {
        "id": 258,
        "url": "https://patches.dpdk.org/api/people/258/?format=api",
        "name": "Wenzhuo Lu",
        "email": "wenzhuo.lu@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "https://patches.dpdk.org/api/users/1540/?format=api",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1618385649-44717-2-git-send-email-wenzhuo.lu@intel.com/mbox/",
    "series": [
        {
            "id": 16361,
            "url": "https://patches.dpdk.org/api/series/16361/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=16361",
            "date": "2021-04-14T07:34:05",
            "name": "add Rx/Tx offload paths for IAVF AVX512",
            "version": 5,
            "mbox": "https://patches.dpdk.org/series/16361/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/91422/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/91422/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 4A040A0524;\n\tWed, 14 Apr 2021 09:34:29 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5AB1D1613D8;\n\tWed, 14 Apr 2021 09:34:25 +0200 (CEST)",
            "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n by mails.dpdk.org (Postfix) with ESMTP id 48A1E160ADA\n for <dev@dpdk.org>; Wed, 14 Apr 2021 09:34:23 +0200 (CEST)",
            "from fmsmga003.fm.intel.com ([10.253.24.29])\n by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 14 Apr 2021 00:34:21 -0700",
            "from dpdk-wenzhuo-haswell.sh.intel.com ([10.67.111.137])\n by FMSMGA003.fm.intel.com with ESMTP; 14 Apr 2021 00:34:20 -0700"
        ],
        "IronPort-SDR": [
            "\n OCawIwuhrUXpI98gWJt1SjSnrvq310ohx+57KP7+wwXpbCFCcIiX49m25BuLTVIIaqp8vVGCU4\n Sc09i1nqe0Cg==",
            "\n h0Gu9DIdNhHRHdO+qD3j26dtkf71YBVLtgCbgdxGALQSgn5Bf8W6UmuKj3PocxhSXvPogIEngi\n 1kCE+d23/lPw=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,9953\"; a=\"174084744\"",
            "E=Sophos;i=\"5.82,221,1613462400\"; d=\"scan'208\";a=\"174084744\"",
            "E=Sophos;i=\"5.82,221,1613462400\"; d=\"scan'208\";a=\"450705148\""
        ],
        "X-ExtLoop1": "1",
        "From": "Wenzhuo Lu <wenzhuo.lu@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Wenzhuo Lu <wenzhuo.lu@intel.com>",
        "Date": "Wed, 14 Apr 2021 15:34:06 +0800",
        "Message-Id": "<1618385649-44717-2-git-send-email-wenzhuo.lu@intel.com>",
        "X-Mailer": "git-send-email 1.9.3",
        "In-Reply-To": "<1618385649-44717-1-git-send-email-wenzhuo.lu@intel.com>",
        "References": "<1617947944-130983-1-git-send-email-wenzhuo.lu@intel.com>\n <1618385649-44717-1-git-send-email-wenzhuo.lu@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v5 1/4] net/iavf: store offload flag of Rx queue",
        "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 the offload flag for RX queues to know which offload\nfeatures are set.\n\nSigned-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>\n---\n drivers/net/iavf/iavf_rxtx.c | 4 ++++\n drivers/net/iavf/iavf_rxtx.h | 1 +\n 2 files changed, 5 insertions(+)",
    "diff": "diff --git a/drivers/net/iavf/iavf_rxtx.c b/drivers/net/iavf/iavf_rxtx.c\nindex 541b444..bd0b7ee 100644\n--- a/drivers/net/iavf/iavf_rxtx.c\n+++ b/drivers/net/iavf/iavf_rxtx.c\n@@ -523,9 +523,12 @@\n \tuint8_t proto_xtr;\n \tuint16_t len;\n \tuint16_t rx_free_thresh;\n+\tuint64_t offloads;\n \n \tPMD_INIT_FUNC_TRACE();\n \n+\toffloads = rx_conf->offloads | dev->data->dev_conf.rxmode.offloads;\n+\n \tif (nb_desc % IAVF_ALIGN_RING_DESC != 0 ||\n \t    nb_desc > IAVF_MAX_RING_DESC ||\n \t    nb_desc < IAVF_MIN_RING_DESC) {\n@@ -596,6 +599,7 @@\n \trxq->rx_deferred_start = rx_conf->rx_deferred_start;\n \trxq->rx_hdr_len = 0;\n \trxq->vsi = vsi;\n+\trxq->offloads = offloads;\n \n \tif (dev->data->dev_conf.rxmode.offloads & DEV_RX_OFFLOAD_KEEP_CRC)\n \t\trxq->crc_len = RTE_ETHER_CRC_LEN;\ndiff --git a/drivers/net/iavf/iavf_rxtx.h b/drivers/net/iavf/iavf_rxtx.h\nindex 4fbd847..f56dd74 100644\n--- a/drivers/net/iavf/iavf_rxtx.h\n+++ b/drivers/net/iavf/iavf_rxtx.h\n@@ -198,6 +198,7 @@ struct iavf_rx_queue {\n \t\t/* flexible descriptor metadata extraction offload flag */\n \tiavf_rxd_to_pkt_fields_t rxd_to_pkt_fields;\n \t\t\t\t/* handle flexible descriptor by RXDID */\n+\tuint64_t offloads;\n };\n \n struct iavf_tx_entry {\n",
    "prefixes": [
        "v5",
        "1/4"
    ]
}