Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/53815/?format=api
http://patches.dpdk.org/api/patches/53815/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190529150234.15166-3-lance.richardson@broadcom.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": "<20190529150234.15166-3-lance.richardson@broadcom.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20190529150234.15166-3-lance.richardson@broadcom.com", "date": "2019-05-29T15:02:28", "name": "[v4,2/8] net/bnxt: move Tx bd checking to header file", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "28cd768943495bc5605e946ac427f8f213faf522", "submitter": { "id": 1323, "url": "http://patches.dpdk.org/api/people/1323/?format=api", "name": "Lance Richardson", "email": "lance.richardson@broadcom.com" }, "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/20190529150234.15166-3-lance.richardson@broadcom.com/mbox/", "series": [ { "id": 4810, "url": "http://patches.dpdk.org/api/series/4810/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4810", "date": "2019-05-29T15:02:26", "name": "bnxt patchset", "version": 4, "mbox": "http://patches.dpdk.org/series/4810/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/53815/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/53815/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 3A48E1B95B;\n\tWed, 29 May 2019 17:03:12 +0200 (CEST)", "from mail-pf1-f195.google.com (mail-pf1-f195.google.com\n\t[209.85.210.195]) by dpdk.org (Postfix) with ESMTP id 0628A1B950\n\tfor <dev@dpdk.org>; Wed, 29 May 2019 17:03:08 +0200 (CEST)", "by mail-pf1-f195.google.com with SMTP id r22so1805234pfh.9\n\tfor <dev@dpdk.org>; Wed, 29 May 2019 08:03:07 -0700 (PDT)", "from localhost.localdomain ([192.19.231.250])\n\tby smtp.gmail.com with ESMTPSA id\n\tq193sm21579361pfc.52.2019.05.29.08.03.05\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 29 May 2019 08:03:06 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com;\n\ts=google; \n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=xqntc0zx8qv6Px9K8cRLEJlZz5wdigPelpcCLb5s6XE=;\n\tb=hhvNVeqHW5Wxd8qpIFlHllFBi8l4mzMc3Znjc34PE+771r1OjclbIk4ERLNb024ad5\n\tgs+8xKCyIMIZBmu3sFH2qkAgSG0cew2f2nsPAaEzMFE+IhvDFW+KejaQMCNmP7IQEH9C\n\t0wTET8GWFo0u9NIPYICRa6e61QuBN+8JStY4Q=", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=xqntc0zx8qv6Px9K8cRLEJlZz5wdigPelpcCLb5s6XE=;\n\tb=EjXRVgnQm50bNjpEFAqC6M0IB0Mwpkv9Amcw5jpcjlCDAD9LRZ2lNJ+LjHlSGkETMs\n\t1v5lbestXbd9j8a0hHwIhaq31extQ9rNCbwSSJ/AVA3AXDmjHgGbZgfcc8JlBMPH/Lok\n\tiHgAtvyfX+gm8p1t11JpZSsWUbbDN6Ziwj7534WyVXFpKH+//hV6DUb5JgnuEomcGM0a\n\t6SmvNvnseWs+Z77vRIaxFaMeb0OK7todjxllKmt9o0rU42o5uVXaYqZU+l++87lnwPQX\n\tI/eFVZhRN3ntLE5Fryp/7lYIPdK4HtAzHd/ywLTZ9yWFV3cFS8a8HOX6I79xiG2uejJq\n\tuROw==", "X-Gm-Message-State": "APjAAAW9PqIhTBuK6GEpUyZO5rGdXAvkkvo24Nvb5G00rMvZOZBrBwt1\n\tShZEnoU00s4OSaGbhT51JohdiMk447gAgA/JqjUhtLLLx3VOsPmNUsdAO3gkUcL5cHE19wd1Jms\n\t2BJXESc4G9e4fnVzPd46AX/t8MywdqDgkP6O/C6ObsMmVrwF+wNkpx1zCmFqng2GC", "X-Google-Smtp-Source": "APXvYqxOWvIoqX+qeiLCvJK6wpLSOD473f+iP2loEx5ShdMGCh34C4J3TFaqLTSsYBcytqnd1M8n9w==", "X-Received": "by 2002:a63:78c6:: with SMTP id\n\tt189mr57375374pgc.293.1559142186943; \n\tWed, 29 May 2019 08:03:06 -0700 (PDT)", "From": "Lance Richardson <lance.richardson@broadcom.com>", "To": "dev@dpdk.org", "Cc": "ajit.khaparde@broadcom.com, ferruh.yigit@intel.com,\n\tmaxime.coquelin@redhat.com,\n\tLance Richardson <lance.richardson@broadcom.com>", "Date": "Wed, 29 May 2019 11:02:28 -0400", "Message-Id": "<20190529150234.15166-3-lance.richardson@broadcom.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20190529150234.15166-1-lance.richardson@broadcom.com>", "References": "<20190521213953.25425-1-ajit.khaparde@broadcom.com>\n\t<20190529150234.15166-1-lance.richardson@broadcom.com>", "Subject": "[dpdk-dev] [PATCH v4 2/8] net/bnxt: move Tx bd checking to header\n\tfile", "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "To allow sharing of tx_bds_in_hw() and bnxt_tx_avail() between\nvector-mode and non-vector transmit functions, move these functions\ninto bnxt_txr.h.\n\nSigned-off-by: Lance Richardson <lance.richardson@broadcom.com>\nReviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>\nReviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>\n---\n drivers/net/bnxt/bnxt_txr.c | 15 ---------------\n drivers/net/bnxt/bnxt_txr.h | 15 +++++++++++++++\n 2 files changed, 15 insertions(+), 15 deletions(-)", "diff": "diff --git a/drivers/net/bnxt/bnxt_txr.c b/drivers/net/bnxt/bnxt_txr.c\nindex 9de12e0d0..16598ba63 100644\n--- a/drivers/net/bnxt/bnxt_txr.c\n+++ b/drivers/net/bnxt/bnxt_txr.c\n@@ -103,21 +103,6 @@ int bnxt_init_tx_ring_struct(struct bnxt_tx_queue *txq, unsigned int socket_id)\n \treturn 0;\n }\n \n-static inline uint32_t bnxt_tx_bds_in_hw(struct bnxt_tx_queue *txq)\n-{\n-\treturn ((txq->tx_ring->tx_prod - txq->tx_ring->tx_cons) &\n-\t\ttxq->tx_ring->tx_ring_struct->ring_mask);\n-}\n-\n-static inline uint32_t bnxt_tx_avail(struct bnxt_tx_queue *txq)\n-{\n-\t/* Tell compiler to fetch tx indices from memory. */\n-\trte_compiler_barrier();\n-\n-\treturn ((txq->tx_ring->tx_ring_struct->ring_size -\n-\t\t bnxt_tx_bds_in_hw(txq)) - 1);\n-}\n-\n static uint16_t bnxt_start_xmit(struct rte_mbuf *tx_pkt,\n \t\t\t\tstruct bnxt_tx_queue *txq,\n \t\t\t\tuint16_t *coal_pkts,\ndiff --git a/drivers/net/bnxt/bnxt_txr.h b/drivers/net/bnxt/bnxt_txr.h\nindex f802d5080..13ca04676 100644\n--- a/drivers/net/bnxt/bnxt_txr.h\n+++ b/drivers/net/bnxt/bnxt_txr.h\n@@ -37,6 +37,21 @@ struct bnxt_sw_tx_bd {\n \tunsigned short\t\tnr_bds;\n };\n \n+static inline uint32_t bnxt_tx_bds_in_hw(struct bnxt_tx_queue *txq)\n+{\n+\treturn ((txq->tx_ring->tx_prod - txq->tx_ring->tx_cons) &\n+\t\ttxq->tx_ring->tx_ring_struct->ring_mask);\n+}\n+\n+static inline uint32_t bnxt_tx_avail(struct bnxt_tx_queue *txq)\n+{\n+\t/* Tell compiler to fetch tx indices from memory. */\n+\trte_compiler_barrier();\n+\n+\treturn ((txq->tx_ring->tx_ring_struct->ring_size -\n+\t\t bnxt_tx_bds_in_hw(txq)) - 1);\n+}\n+\n void bnxt_free_tx_rings(struct bnxt *bp);\n int bnxt_init_one_tx_ring(struct bnxt_tx_queue *txq);\n int bnxt_init_tx_ring_struct(struct bnxt_tx_queue *txq, unsigned int socket_id);\n", "prefixes": [ "v4", "2/8" ] }{ "id": 53815, "url": "