Show a patch.

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

{
    "id": 73477,
    "url": "https://patches.dpdk.org/api/patches/73477/",
    "web_url": "https://patches.dpdk.org/patch/73477/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/",
        "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"
    },
    "msgid": "<20200707222225.33446-3-ajit.khaparde@broadcom.com>",
    "date": "2020-07-07T22:22:24",
    "name": "[v5,2/3] net/bnxt: support Rx/Tx burst mode info",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "183b321b812ec2d6d0cad06ab95a1855f298cac6",
    "submitter": {
        "id": 501,
        "url": "https://patches.dpdk.org/api/people/501/",
        "name": "Ajit Khaparde",
        "email": "ajit.khaparde@broadcom.com"
    },
    "delegate": {
        "id": 1766,
        "url": "https://patches.dpdk.org/api/users/1766/",
        "username": "ajitkhaparde",
        "first_name": "Ajit",
        "last_name": "Khaparde",
        "email": "ajit.khaparde@broadcom.com"
    },
    "mbox": "https://patches.dpdk.org/patch/73477/mbox/",
    "series": [
        {
            "id": 10866,
            "url": "https://patches.dpdk.org/api/series/10866/",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=10866",
            "date": "2020-07-07T22:22:22",
            "name": "net/bnxt: vector mode enhancements",
            "version": 5,
            "mbox": "https://patches.dpdk.org/series/10866/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/73477/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/73477/checks/",
    "tags": {},
    "headers": {
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com;\n s=google;\n h=from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding;\n bh=vPpYiujbeup8kh85sY/ZydL37H4jrJgHBLsxGa2Up3E=;\n b=hyZBNCSSXZvnL3HjwyAzZDdU71fa++dnaFqV0FjcvjDqxjozQirq3iY9gbMb6OllQe\n G8YszCwwNfItQW6bLzkHSeO+Rf3drxGRroWfp+zbz+Lj2emlMxPhTmM4o16CS0sP3lhD\n Rp0DgsuI4fbxGNo09VMwN3DeeED+TrXo2l8p4=",
        "X-Google-Smtp-Source": "\n ABdhPJwjRWEss7VC6GjHZfAKzQku6ywTINwxohxfXNQ0e6jkCXFCUbH+A9eH0vDwUHWmMIS2K0zSvuxXlivb",
        "Message-Id": "<20200707222225.33446-3-ajit.khaparde@broadcom.com>",
        "X-Mailer": "git-send-email 2.21.1 (Apple Git-122.3)",
        "X-Gm-Message-State": "AOAM532P8eRo7IvloZIOgeKy5yw+MCYKY/rLukF849kkgufx3dfxwKMl\n XLzHuq25w+nd2MkP2XKqaF/N82S8ap//fASp5wuxBqB8oUNtRufGu7hqdTRSk63FknzB2Rsjkd5\n ih6sdJMcN0p7s+d6nVB5Dz/VTkDadPgWvLdacCbTSgQI6ipatnrGg8nhS3pFWw/vbqyTlbvTRkk\n DE2Q==",
        "To": "dev@dpdk.org",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "X-Relaying-Domain": "broadcom.com",
        "X-BeenThere": "dev@dpdk.org",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 8CA2FA00BE;\n\tWed,  8 Jul 2020 00:22:51 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id B252F1DEE6;\n\tWed,  8 Jul 2020 00:22:39 +0200 (CEST)",
            "from mail-ej1-f97.google.com (mail-ej1-f97.google.com\n [209.85.218.97]) by dpdk.org (Postfix) with ESMTP id E1FFA1DED9\n for <dev@dpdk.org>; Wed,  8 Jul 2020 00:22:34 +0200 (CEST)",
            "by mail-ej1-f97.google.com with SMTP id dp18so48357363ejc.8\n for <dev@dpdk.org>; Tue, 07 Jul 2020 15:22:34 -0700 (PDT)",
            "from C02VPB22HTD6.wifi.broadcom.net ([192.19.223.252])\n by smtp-relay.gmail.com with ESMTPS id gj18sm12603ejb.18.2020.07.07.15.22.33\n (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);\n Tue, 07 Jul 2020 15:22:34 -0700 (PDT)"
        ],
        "Subject": "[dpdk-dev] [PATCH v5 2/3] net/bnxt: support Rx/Tx burst mode info",
        "In-Reply-To": "<20200707222225.33446-1-ajit.khaparde@broadcom.com>",
        "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-Post": "<mailto:dev@dpdk.org>",
        "Cc": "Lance Richardson <lance.richardson@broadcom.com>,\n Somnath Kotur <somnath.kotur@broadcom.com>",
        "Precedence": "list",
        "From": "Ajit Khaparde <ajit.khaparde@broadcom.com>",
        "X-Received": "by 2002:a17:906:1491:: with SMTP id\n x17mr50576942ejc.416.1594160554435;\n Tue, 07 Jul 2020 15:22:34 -0700 (PDT)",
        "Content-Transfer-Encoding": "8bit",
        "MIME-Version": "1.0",
        "References": "\n <CACZ4nhuiiPoX=h-9xUYk+STPhespH86MJz94pnWoUxe9aburZQ@mail.gmail.com>\n <20200707222225.33446-1-ajit.khaparde@broadcom.com>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "Errors-To": "dev-bounces@dpdk.org",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Date": "Tue,  7 Jul 2020 15:22:24 -0700",
        "X-Mailman-Version": "2.1.15",
        "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:mime-version:content-transfer-encoding;\n bh=vPpYiujbeup8kh85sY/ZydL37H4jrJgHBLsxGa2Up3E=;\n b=nQ9uEH/4CVxOuSejEnUuy8s1t55sb55GKuTkSdM/AolZRBxBHlzdtQbXpMWahUI+7H\n 3GZPn0CCcYpTqflPfDka2Iu7LYO3ctQAN0s/N8bXlztDQAvfKHfMUJU7xXTgyUETB0ig\n Y2dOTU+Sh7dP5w114fNTTE6ikgFU8XwBV8VhJ3Sbwq4QUiTCAf3SzrCLdXeu7gPzTee4\n ewRtzpiGxSmmmADOisN09KAXkscaxspUxucuuEV2dpUq2zEJ9ynyIQaBJ39B8cu6E96+\n BunITLORRzxHWkahvlD5MyMFB+uKdIOhjktgwLaZvKdDk5ERv9yVWB9MTLDk5i32NtNy\n RmZQ=="
    },
    "content": "From: Lance Richardson <lance.richardson@broadcom.com>\n\nRetrieve burst mode options according to the selected Rx/Tx burst\nfunction name.\nUpdate 20.08 release notes with this information.\n\nSigned-off-by: Lance Richardson <lance.richardson@broadcom.com>\nReviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>\nReviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>\n---\n doc/guides/nics/features/bnxt.ini      |  1 +\n doc/guides/rel_notes/release_20_08.rst |  1 +\n drivers/net/bnxt/bnxt_ethdev.c         | 46 ++++++++++++++++++++++++++\n 3 files changed, 48 insertions(+)",
    "diff": "diff --git a/doc/guides/nics/features/bnxt.ini b/doc/guides/nics/features/bnxt.ini\nindex 37a99e336..f1f300c8b 100644\n--- a/doc/guides/nics/features/bnxt.ini\n+++ b/doc/guides/nics/features/bnxt.ini\n@@ -9,6 +9,7 @@ Link status          = Y\n Link status event    = Y\n Rx interrupt         = Y\n Queue start/stop     = Y\n+Burst mode info      = Y\n MTU update           = Y\n Jumbo frame          = Y\n Scattered Rx         = Y\ndiff --git a/doc/guides/rel_notes/release_20_08.rst b/doc/guides/rel_notes/release_20_08.rst\nindex 02fa2235a..e84258a13 100644\n--- a/doc/guides/rel_notes/release_20_08.rst\n+++ b/doc/guides/rel_notes/release_20_08.rst\n@@ -101,6 +101,7 @@ New Features\n   * Added support for new resource manager API.\n   * Added support for VXLAN encap/decap.\n   * Added support for rte_flow_query for COUNT action.\n+  * Added support for rx_burst_mode_get and tx_burst_mode_get.\n \n * **Added support for BPF_ABS/BPF_IND load instructions.**\n \ndiff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c\nindex e447b74dd..1dc85e6df 100644\n--- a/drivers/net/bnxt/bnxt_ethdev.c\n+++ b/drivers/net/bnxt/bnxt_ethdev.c\n@@ -2668,6 +2668,50 @@ bnxt_txq_info_get_op(struct rte_eth_dev *dev, uint16_t queue_id,\n \tqinfo->conf.tx_deferred_start = txq->tx_deferred_start;\n }\n \n+static int\n+bnxt_rx_burst_mode_get(struct rte_eth_dev *dev, __rte_unused uint16_t queue_id,\n+\t\t       struct rte_eth_burst_mode *mode)\n+{\n+\teth_rx_burst_t pkt_burst = dev->rx_pkt_burst;\n+\n+\tif (pkt_burst == bnxt_recv_pkts) {\n+\t\tsnprintf(mode->info, sizeof(mode->info), \"%s\",\n+\t\t\t \"Scalar\");\n+\t\treturn 0;\n+\t}\n+#ifdef RTE_ARCH_X86\n+\tif (pkt_burst == bnxt_recv_pkts_vec) {\n+\t\tsnprintf(mode->info, sizeof(mode->info), \"%s\",\n+\t\t\t \"Vector SSE\");\n+\t\treturn 0;\n+\t}\n+#endif\n+\n+\treturn -EINVAL;\n+}\n+\n+static int\n+bnxt_tx_burst_mode_get(struct rte_eth_dev *dev, __rte_unused uint16_t queue_id,\n+\t\t       struct rte_eth_burst_mode *mode)\n+{\n+\teth_tx_burst_t pkt_burst = dev->tx_pkt_burst;\n+\n+\tif (pkt_burst == bnxt_xmit_pkts) {\n+\t\tsnprintf(mode->info, sizeof(mode->info), \"%s\",\n+\t\t\t \"Scalar\");\n+\t\treturn 0;\n+\t}\n+#ifdef RTE_ARCH_X86\n+\tif (pkt_burst == bnxt_xmit_pkts_vec) {\n+\t\tsnprintf(mode->info, sizeof(mode->info), \"%s\",\n+\t\t\t \"Vector SSE\");\n+\t\treturn 0;\n+\t}\n+#endif\n+\n+\treturn -EINVAL;\n+}\n+\n int bnxt_mtu_set_op(struct rte_eth_dev *eth_dev, uint16_t new_mtu)\n {\n \tstruct bnxt *bp = eth_dev->data->dev_private;\n@@ -4244,6 +4288,8 @@ static const struct eth_dev_ops bnxt_dev_ops = {\n \t.set_mc_addr_list = bnxt_dev_set_mc_addr_list_op,\n \t.rxq_info_get = bnxt_rxq_info_get_op,\n \t.txq_info_get = bnxt_txq_info_get_op,\n+\t.rx_burst_mode_get = bnxt_rx_burst_mode_get,\n+\t.tx_burst_mode_get = bnxt_tx_burst_mode_get,\n \t.dev_led_on = bnxt_dev_led_on_op,\n \t.dev_led_off = bnxt_dev_led_off_op,\n \t.xstats_get_by_id = bnxt_dev_xstats_get_by_id_op,\n",
    "prefixes": [
        "v5",
        "2/3"
    ]
}