get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 87951,
    "url": "http://patches.dpdk.org/api/patches/87951/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210216203540.29290-13-aboyer@pensando.io/",
    "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": "<20210216203540.29290-13-aboyer@pensando.io>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210216203540.29290-13-aboyer@pensando.io",
    "date": "2021-02-16T20:35:37",
    "name": "[v2,12/15] net/ionic: ring doorbell once at the end of each burst",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "9e2c44ec3d5d3d0305c67d9395d2e691d42c775c",
    "submitter": {
        "id": 2036,
        "url": "http://patches.dpdk.org/api/people/2036/?format=api",
        "name": "Andrew Boyer",
        "email": "aboyer@pensando.io"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20210216203540.29290-13-aboyer@pensando.io/mbox/",
    "series": [
        {
            "id": 15272,
            "url": "http://patches.dpdk.org/api/series/15272/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=15272",
            "date": "2021-02-16T20:35:25",
            "name": "net/ionic: struct optimizations, fixes",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/15272/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/87951/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/87951/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 9A550A054D;\n\tTue, 16 Feb 2021 21:37:11 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 8A5D11607EE;\n\tTue, 16 Feb 2021 21:36:12 +0100 (CET)",
            "from mail-pl1-f174.google.com (mail-pl1-f174.google.com\n [209.85.214.174])\n by mails.dpdk.org (Postfix) with ESMTP id 5D8641607E8\n for <dev@dpdk.org>; Tue, 16 Feb 2021 21:36:10 +0100 (CET)",
            "by mail-pl1-f174.google.com with SMTP id f8so4549113plg.5\n for <dev@dpdk.org>; Tue, 16 Feb 2021 12:36:10 -0800 (PST)",
            "from driver-dev1.pensando.io ([12.226.153.42])\n by smtp.gmail.com with ESMTPSA id u17sm11371pgh.72.2021.02.16.12.36.08\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 16 Feb 2021 12:36:09 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=pensando.io; s=google;\n h=from:to:cc:subject:date:message-id:in-reply-to:references\n :in-reply-to:references;\n bh=851oKJmjSXniXofQ9MSMPw9GaZX8bwo64uNU2j2R6v4=;\n b=qnK/6nm5wr5l47x5NYn6AYHNM7zMCC7Avh6CGwTkhFS16I3fcTiOHJ4gL7uNzh/POB\n DwAJz7FMdz2Tn0p5UbsJfQqfmFDyUJA5UXKgZkt0DuGwW6jvxd5G6OmeLyZW3PGFYseh\n NJ7DKr8jrkbJKz5hj1y81kg3j/FmF/QyCvWZf8SEeGe3DtENLniQGMUeenCrHLrKMprY\n 8+9z7pKFxHFbx0EJpmVI7zChyP3OIE0Ei5DhGSI/H5vEtbte0ffV/PVXGwxbPYqZkrJH\n 92xq+4owgDvGskLPeHZx/B3jGKWiECIFbQT0KpAd+hN1WQHd9IFAnyJCLAd3Z8lw9sxQ\n 2S3A==",
        "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:in-reply-to:references;\n bh=851oKJmjSXniXofQ9MSMPw9GaZX8bwo64uNU2j2R6v4=;\n b=JYe0ODo+grKf0hdWlxdNxBvHqHN5PBQVKcUwg62Px8ZJqszMoN4vck3AxuVLzEiw5w\n t2AFiJBpA0phQF6iDLA8Xc1RUZuqZY2/WZF4BNst7AP24SsyvBX99gnv3vt3H7rOxhsj\n UVE+P5rNsaLvXnIjzDr+dUT3vU2Y0NjQmoo5ZkMnDlpfB3pix5fp0BN16i2U6QIl2Pvh\n hM8+YLiysAH/Hl/fREVoxdqcPSLr+P/hIMAk20jxkH+n/VVSDJuE7re532GBE2lrUZYC\n LScQ5v6lTImNRXqerY6A3BAVNDOOz/dkbceIqUUSm0IYZ6eVFN1FnmPeYGdXeMBjpfM+\n Twcw==",
        "X-Gm-Message-State": "AOAM531nmTWsQzn2BXvvhtpCC9chqCrqcCiaXU5KAKv7xO9dB2fyKef+\n J5uL8BjcdambMrPtD4Jelpc/HFPpRtf8Sg==",
        "X-Google-Smtp-Source": "\n ABdhPJxfLuOE6jeWSKVvQch6Cjnrfw4BLzNmfC0EGl9MPhF6oaVNQkoSK5SMbr4/ab+l9lCrM31CLQ==",
        "X-Received": "by 2002:a17:90a:d682:: with SMTP id\n x2mr6120294pju.139.1613507769370;\n Tue, 16 Feb 2021 12:36:09 -0800 (PST)",
        "From": "Andrew Boyer <aboyer@pensando.io>",
        "To": "dev@dpdk.org",
        "Cc": "Alfredo Cardigliano <cardigliano@ntop.org>,\n Andrew Boyer <aboyer@pensando.io>",
        "Date": "Tue, 16 Feb 2021 12:35:37 -0800",
        "Message-Id": "<20210216203540.29290-13-aboyer@pensando.io>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": [
            "<20210216203540.29290-1-aboyer@pensando.io>",
            "<20210204195853.13411-1-aboyer@pensando.io>"
        ],
        "References": [
            "<20210216203540.29290-1-aboyer@pensando.io>",
            "<20210204195853.13411-1-aboyer@pensando.io>"
        ],
        "Subject": "[dpdk-dev] [PATCH v2 12/15] net/ionic: ring doorbell once at the\n end of each burst",
        "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": "This improves performance.\n\nSigned-off-by: Andrew Boyer <aboyer@pensando.io>\n---\n drivers/net/ionic/ionic_rxtx.c | 41 +++++++++++-----------------------\n 1 file changed, 13 insertions(+), 28 deletions(-)",
    "diff": "diff --git a/drivers/net/ionic/ionic_rxtx.c b/drivers/net/ionic/ionic_rxtx.c\nindex 5236cae211..bb67c497a1 100644\n--- a/drivers/net/ionic/ionic_rxtx.c\n+++ b/drivers/net/ionic/ionic_rxtx.c\n@@ -47,8 +47,6 @@\n #include \"ionic_lif.h\"\n #include \"ionic_rxtx.h\"\n \n-#define IONIC_RX_RING_DOORBELL_STRIDE\t\t(32 - 1)\n-\n /*********************************************************************\n  *\n  *  TX functions\n@@ -322,9 +320,6 @@ ionic_tx_tso_post(struct ionic_queue *q, struct ionic_txq_desc *desc,\n \t}\n \n \tq->head_idx = Q_NEXT_TO_POST(q, 1);\n-\n-\tif (done)\n-\t\tionic_q_flush(q);\n }\n \n static struct ionic_txq_desc *\n@@ -341,8 +336,7 @@ ionic_tx_tso_next(struct ionic_tx_qcq *txq, struct ionic_txq_sg_elem **elem)\n }\n \n static int\n-ionic_tx_tso(struct ionic_tx_qcq *txq, struct rte_mbuf *txm,\n-\t\tbool not_xmit_more)\n+ionic_tx_tso(struct ionic_tx_qcq *txq, struct rte_mbuf *txm)\n {\n \tstruct ionic_queue *q = &txq->qcq.q;\n \tstruct ionic_tx_stats *stats = &txq->stats;\n@@ -410,7 +404,7 @@ ionic_tx_tso(struct ionic_tx_qcq *txq, struct rte_mbuf *txm,\n \t\t\thdrlen, mss,\n \t\t\tencap,\n \t\t\tvlan_tci, has_vlan,\n-\t\t\tstart, done && not_xmit_more);\n+\t\t\tstart, done);\n \t\tdesc = ionic_tx_tso_next(txq, &elem);\n \t\tstart = false;\n \t\tseglen = mss;\n@@ -451,7 +445,7 @@ ionic_tx_tso(struct ionic_tx_qcq *txq, struct rte_mbuf *txm,\n \t\t\t\thdrlen, mss,\n \t\t\t\tencap,\n \t\t\t\tvlan_tci, has_vlan,\n-\t\t\t\tstart, done && not_xmit_more);\n+\t\t\t\tstart, done);\n \t\t\tdesc = ionic_tx_tso_next(txq, &elem);\n \t\t\tstart = false;\n \t\t}\n@@ -465,8 +459,7 @@ ionic_tx_tso(struct ionic_tx_qcq *txq, struct rte_mbuf *txm,\n }\n \n static __rte_always_inline int\n-ionic_tx(struct ionic_tx_qcq *txq, struct rte_mbuf *txm,\n-\t\tbool not_xmit_more)\n+ionic_tx(struct ionic_tx_qcq *txq, struct rte_mbuf *txm)\n {\n \tstruct ionic_queue *q = &txq->qcq.q;\n \tstruct ionic_txq_desc *desc, *desc_base = q->base;\n@@ -531,9 +524,6 @@ ionic_tx(struct ionic_tx_qcq *txq, struct rte_mbuf *txm,\n \n \tq->head_idx = Q_NEXT_TO_POST(q, 1);\n \n-\tif (not_xmit_more)\n-\t\tionic_q_flush(q);\n-\n \treturn 0;\n }\n \n@@ -548,7 +538,6 @@ ionic_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts,\n \tuint32_t bytes_tx = 0;\n \tuint16_t nb_tx = 0;\n \tint err;\n-\tbool last;\n \n \t/* Cleaning old buffers */\n \tionic_tx_flush(txq);\n@@ -559,8 +548,6 @@ ionic_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts,\n \t}\n \n \twhile (nb_tx < nb_pkts) {\n-\t\tlast = (nb_tx == (nb_pkts - 1));\n-\n \t\tnext_q_head_idx = Q_NEXT_TO_POST(q, 1);\n \t\tif ((next_q_head_idx & 0x3) == 0) {\n \t\t\tstruct ionic_txq_desc *desc_base = q->base;\n@@ -569,13 +556,11 @@ ionic_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts,\n \t\t}\n \n \t\tif (tx_pkts[nb_tx]->ol_flags & PKT_TX_TCP_SEG)\n-\t\t\terr = ionic_tx_tso(txq, tx_pkts[nb_tx], last);\n+\t\t\terr = ionic_tx_tso(txq, tx_pkts[nb_tx]);\n \t\telse\n-\t\t\terr = ionic_tx(txq, tx_pkts[nb_tx], last);\n+\t\t\terr = ionic_tx(txq, tx_pkts[nb_tx]);\n \t\tif (err) {\n \t\t\tstats->drop += nb_pkts - nb_tx;\n-\t\t\tif (nb_tx > 0)\n-\t\t\t\tionic_q_flush(q);\n \t\t\tbreak;\n \t\t}\n \n@@ -583,6 +568,11 @@ ionic_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts,\n \t\tnb_tx++;\n \t}\n \n+\tif (nb_tx > 0) {\n+\t\trte_wmb();\n+\t\tionic_q_flush(q);\n+\t}\n+\n \tstats->packets += nb_tx;\n \tstats->bytes += bytes_tx;\n \n@@ -954,7 +944,6 @@ ionic_rx_fill(struct ionic_rx_qcq *rxq, uint32_t len)\n \tvoid **info;\n \trte_iova_t dma_addr;\n \tuint32_t i, j, nsegs, buf_size, size;\n-\tbool ring_doorbell;\n \n \tbuf_size = (uint16_t)(rte_pktmbuf_data_room_size(rxq->mb_pool) -\n \t\tRTE_PKTMBUF_HEADROOM);\n@@ -1010,17 +999,13 @@ ionic_rx_fill(struct ionic_rx_qcq *rxq, uint32_t len)\n \t\t\tIONIC_PRINT(ERR, \"Rx SG size is not sufficient (%d < %d)\",\n \t\t\t\tsize, len);\n \n-\t\tring_doorbell = ((q->head_idx + 1) &\n-\t\t\tIONIC_RX_RING_DOORBELL_STRIDE) == 0;\n-\n \t\tinfo[0] = rxm;\n \n \t\tq->head_idx = Q_NEXT_TO_POST(q, 1);\n-\n-\t\tif (ring_doorbell)\n-\t\t\tionic_q_flush(q);\n \t}\n \n+\tionic_q_flush(q);\n+\n \treturn 0;\n }\n \n",
    "prefixes": [
        "v2",
        "12/15"
    ]
}