get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 78911,
    "url": "https://patches.dpdk.org/api/patches/78911/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200927072626.28374-9-robinx.zhang@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": "<20200927072626.28374-9-robinx.zhang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200927072626.28374-9-robinx.zhang@intel.com",
    "date": "2020-09-27T07:26:26",
    "name": "[8/8] net/iavf: support check DD bit of a RX descriptor",
    "commit_ref": null,
    "pull_url": null,
    "state": "rejected",
    "archived": true,
    "hash": "30517146ba36138d6a926956fb08e6f1202b79ae",
    "submitter": {
        "id": 2004,
        "url": "https://patches.dpdk.org/api/people/2004/?format=api",
        "name": "Robin Zhang",
        "email": "robinx.zhang@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/20200927072626.28374-9-robinx.zhang@intel.com/mbox/",
    "series": [
        {
            "id": 12526,
            "url": "https://patches.dpdk.org/api/series/12526/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=12526",
            "date": "2020-09-27T07:26:18",
            "name": "feature porting from i40evf to iavf",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/12526/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/78911/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/78911/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 4F1B3A04BC;\n\tSun, 27 Sep 2020 09:49:39 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 7C0611D9A4;\n\tSun, 27 Sep 2020 09:47:43 +0200 (CEST)",
            "from mga06.intel.com (mga06.intel.com [134.134.136.31])\n by dpdk.org (Postfix) with ESMTP id 07B011D98F\n for <dev@dpdk.org>; Sun, 27 Sep 2020 09:47:40 +0200 (CEST)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 27 Sep 2020 00:47:40 -0700",
            "from intel-npg-odc-srv03.cd.intel.com ([10.240.178.138])\n by orsmga002.jf.intel.com with ESMTP; 27 Sep 2020 00:47:37 -0700"
        ],
        "IronPort-SDR": [
            "\n sItlqkCMbSt48hl3t1SZFtCz9upvmL8jboYRK9H925hxGAHrUhtqWFBae0iESV2dgTTMz96Xut\n A427iZRux9lA==",
            "\n OgdAapvVYYjcxQT8+tzHlCRN82EYEXX/uk78pi9prjoV+Eo1OmE/t0y42qRHwju84uvmhzDHLl\n NPsjyBOMcH2A=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9756\"; a=\"223438307\"",
            "E=Sophos;i=\"5.77,309,1596524400\"; d=\"scan'208\";a=\"223438307\"",
            "E=Sophos;i=\"5.77,309,1596524400\"; d=\"scan'208\";a=\"323939531\""
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "From": "Robin Zhang <robinx.zhang@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "beilei.xing@intel.com, jingjing.wu@intel.com, qiming.yang@intel.com,\n stevex.yang@intel.com, Robin Zhang <robinx.zhang@intel.com>",
        "Date": "Sun, 27 Sep 2020 07:26:26 +0000",
        "Message-Id": "<20200927072626.28374-9-robinx.zhang@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20200927072626.28374-1-robinx.zhang@intel.com>",
        "References": "<20200927072626.28374-1-robinx.zhang@intel.com>",
        "Subject": "[dpdk-dev] [PATCH 8/8] net/iavf: support check DD bit of a RX\n\tdescriptor",
        "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": "Add implementation of inline API rx_descriptor_done in iavf PMD.\n\nSigned-off-by: Robin Zhang <robinx.zhang@intel.com>\n---\n drivers/net/iavf/iavf_ethdev.c |  1 +\n drivers/net/iavf/iavf_rxtx.c   | 26 ++++++++++++++++++++++++++\n drivers/net/iavf/iavf_rxtx.h   |  1 +\n 3 files changed, 28 insertions(+)",
    "diff": "diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c\nindex 836c09f58..b7a819a0e 100644\n--- a/drivers/net/iavf/iavf_ethdev.c\n+++ b/drivers/net/iavf/iavf_ethdev.c\n@@ -1417,6 +1417,7 @@ iavf_dev_init(struct rte_eth_dev *eth_dev)\n \t/* assign ops func pointer */\n \teth_dev->dev_ops = &iavf_eth_dev_ops;\n \teth_dev->rx_queue_count = iavf_dev_rxq_count;\n+\teth_dev->rx_descriptor_done = iavf_dev_rx_desc_done;\n \teth_dev->rx_descriptor_status = iavf_dev_rx_desc_status;\n \teth_dev->tx_descriptor_status = iavf_dev_tx_desc_status;\n \teth_dev->rx_pkt_burst = &iavf_recv_pkts;\ndiff --git a/drivers/net/iavf/iavf_rxtx.c b/drivers/net/iavf/iavf_rxtx.c\nindex 1b0efe043..d9e3aac1d 100644\n--- a/drivers/net/iavf/iavf_rxtx.c\n+++ b/drivers/net/iavf/iavf_rxtx.c\n@@ -2337,6 +2337,32 @@ iavf_dev_rxq_count(struct rte_eth_dev *dev, uint16_t queue_id)\n \treturn desc;\n }\n \n+int\n+iavf_dev_rx_desc_done(void *rx_queue, uint16_t offset)\n+{\n+\tvolatile union iavf_rx_desc *rxdp;\n+\tstruct iavf_rx_queue *rxq = rx_queue;\n+\tuint16_t desc;\n+\tint ret;\n+\n+\tif (unlikely(offset >= rxq->nb_rx_desc)) {\n+\t\tPMD_DRV_LOG(ERR, \"Invalid RX descriptor id %u\", offset);\n+\t\treturn 0;\n+\t}\n+\n+\tdesc = rxq->rx_tail + offset;\n+\tif (desc >= rxq->nb_rx_desc)\n+\t\tdesc -= rxq->nb_rx_desc;\n+\n+\trxdp = &rxq->rx_ring[desc];\n+\n+\tret = !!(((rte_le_to_cpu_64(rxdp->wb.qword1.status_error_len) &\n+\t\tIAVF_RXD_QW1_STATUS_MASK) >> IAVF_RXD_QW1_STATUS_SHIFT) &\n+\t\t\t\t(1 << IAVF_RX_DESC_STATUS_DD_SHIFT));\n+\n+\treturn ret;\n+}\n+\n int\n iavf_dev_rx_desc_status(void *rx_queue, uint16_t offset)\n {\ndiff --git a/drivers/net/iavf/iavf_rxtx.h b/drivers/net/iavf/iavf_rxtx.h\nindex 3d02c6589..d5c002858 100644\n--- a/drivers/net/iavf/iavf_rxtx.h\n+++ b/drivers/net/iavf/iavf_rxtx.h\n@@ -404,6 +404,7 @@ void iavf_dev_rxq_info_get(struct rte_eth_dev *dev, uint16_t queue_id,\n void iavf_dev_txq_info_get(struct rte_eth_dev *dev, uint16_t queue_id,\n \t\t\t  struct rte_eth_txq_info *qinfo);\n uint32_t iavf_dev_rxq_count(struct rte_eth_dev *dev, uint16_t queue_id);\n+int iavf_dev_rx_desc_done(void *rx_queue, uint16_t offset);\n int iavf_dev_rx_desc_status(void *rx_queue, uint16_t offset);\n int iavf_dev_tx_desc_status(void *tx_queue, uint16_t offset);\n \n",
    "prefixes": [
        "8/8"
    ]
}