get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 75986,
    "url": "http://patches.dpdk.org/api/patches/75986/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200826095552.82525-3-radu.nicolau@intel.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": "<20200826095552.82525-3-radu.nicolau@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200826095552.82525-3-radu.nicolau@intel.com",
    "date": "2020-08-26T09:55:49",
    "name": "[v11,2/5] net/i40e: use WC store to update queue tail registers",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "967554111d9931f79d10f1b21d8b022609edabb9",
    "submitter": {
        "id": 743,
        "url": "http://patches.dpdk.org/api/people/743/?format=api",
        "name": "Radu Nicolau",
        "email": "radu.nicolau@intel.com"
    },
    "delegate": {
        "id": 24651,
        "url": "http://patches.dpdk.org/api/users/24651/?format=api",
        "username": "dmarchand",
        "first_name": "David",
        "last_name": "Marchand",
        "email": "david.marchand@redhat.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200826095552.82525-3-radu.nicolau@intel.com/mbox/",
    "series": [
        {
            "id": 11800,
            "url": "http://patches.dpdk.org/api/series/11800/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=11800",
            "date": "2020-08-26T09:55:47",
            "name": "eal: add WC store functions",
            "version": 11,
            "mbox": "http://patches.dpdk.org/series/11800/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/75986/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/75986/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 66523A04B2;\n\tWed, 26 Aug 2020 11:56:21 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 4D2EB1BFE3;\n\tWed, 26 Aug 2020 11:56:08 +0200 (CEST)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n by dpdk.org (Postfix) with ESMTP id 5B1C71BFE3\n for <dev@dpdk.org>; Wed, 26 Aug 2020 11:56:06 +0200 (CEST)",
            "from orsmga003.jf.intel.com ([10.7.209.27])\n by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 26 Aug 2020 02:56:06 -0700",
            "from silpixa00400567.ir.intel.com ([10.237.214.190])\n by orsmga003.jf.intel.com with ESMTP; 26 Aug 2020 02:56:03 -0700"
        ],
        "IronPort-SDR": [
            "\n /WLN4JbGD/u93hp1sNTs6jQ01LpTdIgFJakmNfs/KSgK8yKcAXzabc6+l57CPRbq7GxGroAbu8\n HhBDNp+5fbMQ==",
            "\n q2aoME4Fa47f1+b0QUAfLn+vmZsS19ExCbJSJ6FDxqVs4Gf6mIyRdIUd437KsT0pcnCQ8GYPdP\n 3kACHwdpcuEg=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9724\"; a=\"157301345\"",
            "E=Sophos;i=\"5.76,355,1592895600\"; d=\"scan'208\";a=\"157301345\"",
            "E=Sophos;i=\"5.76,355,1592895600\"; d=\"scan'208\";a=\"295319490\""
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "From": "Radu Nicolau <radu.nicolau@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "beilei.xing@intel.com, jia.guo@intel.com, bruce.richardson@intel.com,\n konstantin.ananyev@intel.com, jerinjacobk@gmail.com,\n david.marchand@redhat.com, fiona.trahe@intel.com, wei.zhao1@intel.com,\n ruifeng.wang@arm.com, qiming.yang@intel.com, qi.z.zhang@intel.com,\n Radu Nicolau <radu.nicolau@intel.com>",
        "Date": "Wed, 26 Aug 2020 10:55:49 +0100",
        "Message-Id": "<20200826095552.82525-3-radu.nicolau@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20200826095552.82525-1-radu.nicolau@intel.com>",
        "References": "<1591870283-7776-1-git-send-email-radu.nicolau@intel.com>\n <20200826095552.82525-1-radu.nicolau@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v11 2/5] net/i40e: use WC store to update queue\n\ttail registers",
        "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": "Performance improvement: use a write combining store\ninstead of a regular mmio write to update queue tail\nregisters.\n\nSigned-off-by: Radu Nicolau <radu.nicolau@intel.com>\nAcked-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n drivers/net/i40e/base/i40e_osdep.h    | 5 +++++\n drivers/net/i40e/i40e_rxtx.c          | 8 ++++----\n drivers/net/i40e/i40e_rxtx_vec_avx2.c | 4 ++--\n drivers/net/i40e/i40e_rxtx_vec_sse.c  | 4 ++--\n 4 files changed, 13 insertions(+), 8 deletions(-)",
    "diff": "diff --git a/drivers/net/i40e/base/i40e_osdep.h b/drivers/net/i40e/base/i40e_osdep.h\nindex 58be39677..9b5033024 100644\n--- a/drivers/net/i40e/base/i40e_osdep.h\n+++ b/drivers/net/i40e/base/i40e_osdep.h\n@@ -138,6 +138,11 @@ static inline uint32_t i40e_read_addr(volatile void *addr)\n #define I40E_PCI_REG_WRITE_RELAXED(reg, value)\t\\\n \trte_write32_relaxed((rte_cpu_to_le_32(value)), reg)\n \n+#define I40E_PCI_REG_WC_WRITE(reg, value) \\\n+\trte_write32_wc((rte_cpu_to_le_32(value)), reg)\n+#define I40E_PCI_REG_WC_WRITE_RELAXED(reg, value) \\\n+\trte_write32_wc_relaxed((rte_cpu_to_le_32(value)), reg)\n+\n #define I40E_WRITE_FLUSH(a) I40E_READ_REG(a, I40E_GLGEN_STAT)\n #define I40EVF_WRITE_FLUSH(a) I40E_READ_REG(a, I40E_VFGEN_RSTAT)\n \ndiff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c\nindex fe7f9200c..76d634091 100644\n--- a/drivers/net/i40e/i40e_rxtx.c\n+++ b/drivers/net/i40e/i40e_rxtx.c\n@@ -760,7 +760,7 @@ i40e_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts, uint16_t nb_pkts)\n \tif (nb_hold > rxq->rx_free_thresh) {\n \t\trx_id = (uint16_t) ((rx_id == 0) ?\n \t\t\t(rxq->nb_rx_desc - 1) : (rx_id - 1));\n-\t\tI40E_PCI_REG_WRITE(rxq->qrx_tail, rx_id);\n+\t\tI40E_PCI_REG_WC_WRITE(rxq->qrx_tail, rx_id);\n \t\tnb_hold = 0;\n \t}\n \trxq->nb_rx_hold = nb_hold;\n@@ -938,7 +938,7 @@ i40e_recv_scattered_pkts(void *rx_queue,\n \tif (nb_hold > rxq->rx_free_thresh) {\n \t\trx_id = (uint16_t)(rx_id == 0 ?\n \t\t\t(rxq->nb_rx_desc - 1) : (rx_id - 1));\n-\t\tI40E_PCI_REG_WRITE(rxq->qrx_tail, rx_id);\n+\t\tI40E_PCI_REG_WC_WRITE(rxq->qrx_tail, rx_id);\n \t\tnb_hold = 0;\n \t}\n \trxq->nb_rx_hold = nb_hold;\n@@ -1249,7 +1249,7 @@ i40e_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_pkts)\n \t\t   (unsigned) tx_id, (unsigned) nb_tx);\n \n \trte_cio_wmb();\n-\tI40E_PCI_REG_WRITE_RELAXED(txq->qtx_tail, tx_id);\n+\tI40E_PCI_REG_WC_WRITE_RELAXED(txq->qtx_tail, tx_id);\n \ttxq->tx_tail = tx_id;\n \n \treturn nb_tx;\n@@ -1400,7 +1400,7 @@ tx_xmit_pkts(struct i40e_tx_queue *txq,\n \t\ttxq->tx_tail = 0;\n \n \t/* Update the tx tail register */\n-\tI40E_PCI_REG_WRITE(txq->qtx_tail, txq->tx_tail);\n+\tI40E_PCI_REG_WC_WRITE(txq->qtx_tail, txq->tx_tail);\n \n \treturn nb_pkts;\n }\ndiff --git a/drivers/net/i40e/i40e_rxtx_vec_avx2.c b/drivers/net/i40e/i40e_rxtx_vec_avx2.c\nindex 3bcef1363..178d8f4e2 100644\n--- a/drivers/net/i40e/i40e_rxtx_vec_avx2.c\n+++ b/drivers/net/i40e/i40e_rxtx_vec_avx2.c\n@@ -134,7 +134,7 @@ i40e_rxq_rearm(struct i40e_rx_queue *rxq)\n \t\t\t     (rxq->nb_rx_desc - 1) : (rxq->rxrearm_start - 1));\n \n \t/* Update the tail pointer on the NIC */\n-\tI40E_PCI_REG_WRITE(rxq->qrx_tail, rx_id);\n+\tI40E_PCI_REG_WC_WRITE(rxq->qrx_tail, rx_id);\n }\n \n #ifndef RTE_LIBRTE_I40E_16BYTE_RX_DESC\n@@ -921,7 +921,7 @@ i40e_xmit_fixed_burst_vec_avx2(void *tx_queue, struct rte_mbuf **tx_pkts,\n \n \ttxq->tx_tail = tx_id;\n \n-\tI40E_PCI_REG_WRITE(txq->qtx_tail, txq->tx_tail);\n+\tI40E_PCI_REG_WC_WRITE(txq->qtx_tail, txq->tx_tail);\n \n \treturn nb_pkts;\n }\ndiff --git a/drivers/net/i40e/i40e_rxtx_vec_sse.c b/drivers/net/i40e/i40e_rxtx_vec_sse.c\nindex 698518349..240ce478a 100644\n--- a/drivers/net/i40e/i40e_rxtx_vec_sse.c\n+++ b/drivers/net/i40e/i40e_rxtx_vec_sse.c\n@@ -86,7 +86,7 @@ i40e_rxq_rearm(struct i40e_rx_queue *rxq)\n \t\t\t     (rxq->nb_rx_desc - 1) : (rxq->rxrearm_start - 1));\n \n \t/* Update the tail pointer on the NIC */\n-\tI40E_PCI_REG_WRITE(rxq->qrx_tail, rx_id);\n+\tI40E_PCI_REG_WC_WRITE(rxq->qrx_tail, rx_id);\n }\n \n #ifndef RTE_LIBRTE_I40E_16BYTE_RX_DESC\n@@ -733,7 +733,7 @@ i40e_xmit_fixed_burst_vec(void *tx_queue, struct rte_mbuf **tx_pkts,\n \n \ttxq->tx_tail = tx_id;\n \n-\tI40E_PCI_REG_WRITE(txq->qtx_tail, txq->tx_tail);\n+\tI40E_PCI_REG_WC_WRITE(txq->qtx_tail, txq->tx_tail);\n \n \treturn nb_pkts;\n }\n",
    "prefixes": [
        "v11",
        "2/5"
    ]
}