get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 73764,
    "url": "http://patchwork.dpdk.org/api/patches/73764/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20200710162137.22973-4-hemant.agrawal@nxp.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<20200710162137.22973-4-hemant.agrawal@nxp.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200710162137.22973-4-hemant.agrawal@nxp.com",
    "date": "2020-07-10T16:21:32",
    "name": "[4/9] net/dpaa2: add Tx/Rx burst mode info",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "fcb9aa757aad8f1ed09d880c76e5cdea2e76dd3b",
    "submitter": {
        "id": 477,
        "url": "http://patchwork.dpdk.org/api/people/477/?format=api",
        "name": "Hemant Agrawal",
        "email": "hemant.agrawal@nxp.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patchwork.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20200710162137.22973-4-hemant.agrawal@nxp.com/mbox/",
    "series": [
        {
            "id": 10956,
            "url": "http://patchwork.dpdk.org/api/series/10956/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=10956",
            "date": "2020-07-10T16:21:29",
            "name": "[1/9] net/dpaa2: remove Rx timestamp enable PMD API",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/10956/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/73764/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/73764/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 2135FA052A;\n\tFri, 10 Jul 2020 18:26:21 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 8FD691DA16;\n\tFri, 10 Jul 2020 18:26:02 +0200 (CEST)",
            "from inva021.nxp.com (inva021.nxp.com [92.121.34.21])\n by dpdk.org (Postfix) with ESMTP id 85D401D9E1\n for <dev@dpdk.org>; Fri, 10 Jul 2020 18:25:58 +0200 (CEST)",
            "from inva021.nxp.com (localhost [127.0.0.1])\n by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 68BEC20130B;\n Fri, 10 Jul 2020 18:25:58 +0200 (CEST)",
            "from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com\n [165.114.16.14])\n by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 847AC2003D1;\n Fri, 10 Jul 2020 18:25:56 +0200 (CEST)",
            "from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net\n [10.232.133.63])\n by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id CEA17402D7;\n Sat, 11 Jul 2020 00:25:53 +0800 (SGT)"
        ],
        "From": "Hemant Agrawal <hemant.agrawal@nxp.com>",
        "To": "dev@dpdk.org",
        "Cc": "ferruh.yigit@intel.com,\n\tApeksha Gupta <apeksha.gupta@nxp.com>",
        "Date": "Fri, 10 Jul 2020 21:51:32 +0530",
        "Message-Id": "<20200710162137.22973-4-hemant.agrawal@nxp.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20200710162137.22973-1-hemant.agrawal@nxp.com>",
        "References": "<20200710162137.22973-1-hemant.agrawal@nxp.com>",
        "X-Virus-Scanned": "ClamAV using ClamSMTP",
        "Subject": "[dpdk-dev] [PATCH 4/9] net/dpaa2: add Tx/Rx burst mode info",
        "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": "From: Apeksha Gupta <apeksha.gupta@nxp.com>\n\nRetrieve burst mode information according to the selected Tx/Rx mode and\noffloads.\n\nSigned-off-by: Apeksha Gupta <apeksha.gupta@nxp.com>\n---\n doc/guides/nics/features/dpaa2.ini |  2 +\n drivers/net/dpaa2/dpaa2_ethdev.c   | 73 ++++++++++++++++++++++++++++++\n 2 files changed, 75 insertions(+)",
    "diff": "diff --git a/doc/guides/nics/features/dpaa2.ini b/doc/guides/nics/features/dpaa2.ini\nindex 831883d21..878f03d40 100644\n--- a/doc/guides/nics/features/dpaa2.ini\n+++ b/doc/guides/nics/features/dpaa2.ini\n@@ -7,8 +7,10 @@\n Speed capabilities   = Y\n Link status          = Y\n Link status event    = Y\n+Burst mode info      = Y\n Queue start/stop     = Y\n Jumbo frame          = Y\n+Scattered Rx         = Y\n MTU update           = Y\n Promiscuous mode     = Y\n Allmulticast mode    = Y\ndiff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c\nindex 3e5502de5..a7195f6c1 100644\n--- a/drivers/net/dpaa2/dpaa2_ethdev.c\n+++ b/drivers/net/dpaa2/dpaa2_ethdev.c\n@@ -286,6 +286,77 @@ dpaa2_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)\n \treturn 0;\n }\n \n+static int\n+dpaa2_dev_rx_burst_mode_get(struct rte_eth_dev *dev,\n+\t\t\t__rte_unused uint16_t queue_id,\n+\t\t\tstruct rte_eth_burst_mode *mode)\n+{\n+\tstruct rte_eth_conf *eth_conf = &dev->data->dev_conf;\n+\tint ret = -EINVAL;\n+\tunsigned int i;\n+\tconst struct burst_info {\n+\t\tuint64_t flags;\n+\t\tconst char *output;\n+\t} rx_offload_map[] = {\n+\t\t\t{DEV_RX_OFFLOAD_CHECKSUM, \" Checksum,\"},\n+\t\t\t{DEV_RX_OFFLOAD_SCTP_CKSUM, \" SCTP csum,\"},\n+\t\t\t{DEV_RX_OFFLOAD_OUTER_IPV4_CKSUM, \" Outer IPV4 csum,\"},\n+\t\t\t{DEV_RX_OFFLOAD_OUTER_UDP_CKSUM, \" Outer UDP csum,\"},\n+\t\t\t{DEV_RX_OFFLOAD_VLAN_STRIP, \" VLAN strip,\"},\n+\t\t\t{DEV_RX_OFFLOAD_VLAN_FILTER, \" VLAN filter,\"},\n+\t\t\t{DEV_RX_OFFLOAD_JUMBO_FRAME, \" Jumbo frame,\"},\n+\t\t\t{DEV_RX_OFFLOAD_TIMESTAMP, \" Timestamp,\"},\n+\t\t\t{DEV_RX_OFFLOAD_RSS_HASH, \" RSS,\"},\n+\t\t\t{DEV_RX_OFFLOAD_SCATTER, \" Scattered,\"}\n+\t};\n+\n+\t/* Update Rx offload info */\n+\tfor (i = 0; i < RTE_DIM(rx_offload_map); i++) {\n+\t\tif (eth_conf->rxmode.offloads & rx_offload_map[i].flags) {\n+\t\t\tsnprintf(mode->info, sizeof(mode->info), \"%s\",\n+\t\t\t\trx_offload_map[i].output);\n+\t\t\tret = 0;\n+\t\t\tbreak;\n+\t\t}\n+\t}\n+\treturn ret;\n+}\n+\n+static int\n+dpaa2_dev_tx_burst_mode_get(struct rte_eth_dev *dev,\n+\t\t\t__rte_unused uint16_t queue_id,\n+\t\t\tstruct rte_eth_burst_mode *mode)\n+{\n+\tstruct rte_eth_conf *eth_conf = &dev->data->dev_conf;\n+\tint ret = -EINVAL;\n+\tunsigned int i;\n+\tconst struct burst_info {\n+\t\tuint64_t flags;\n+\t\tconst char *output;\n+\t} tx_offload_map[] = {\n+\t\t\t{DEV_TX_OFFLOAD_VLAN_INSERT, \" VLAN Insert,\"},\n+\t\t\t{DEV_TX_OFFLOAD_IPV4_CKSUM, \" IPV4 csum,\"},\n+\t\t\t{DEV_TX_OFFLOAD_UDP_CKSUM, \" UDP csum,\"},\n+\t\t\t{DEV_TX_OFFLOAD_TCP_CKSUM, \" TCP csum,\"},\n+\t\t\t{DEV_TX_OFFLOAD_SCTP_CKSUM, \" SCTP csum,\"},\n+\t\t\t{DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM, \" Outer IPV4 csum,\"},\n+\t\t\t{DEV_TX_OFFLOAD_MT_LOCKFREE, \" MT lockfree,\"},\n+\t\t\t{DEV_TX_OFFLOAD_MBUF_FAST_FREE, \" MBUF free disable,\"},\n+\t\t\t{DEV_TX_OFFLOAD_MULTI_SEGS, \" Scattered,\"}\n+\t};\n+\n+\t/* Update Tx offload info */\n+\tfor (i = 0; i < RTE_DIM(tx_offload_map); i++) {\n+\t\tif (eth_conf->txmode.offloads & tx_offload_map[i].flags) {\n+\t\t\tsnprintf(mode->info, sizeof(mode->info), \"%s\",\n+\t\t\t\ttx_offload_map[i].output);\n+\t\t\tret = 0;\n+\t\t\tbreak;\n+\t\t}\n+\t}\n+\treturn ret;\n+}\n+\n static int\n dpaa2_alloc_rx_tx_queues(struct rte_eth_dev *dev)\n {\n@@ -2206,6 +2277,8 @@ static struct eth_dev_ops dpaa2_ethdev_ops = {\n \t.rx_queue_release  = dpaa2_dev_rx_queue_release,\n \t.tx_queue_setup    = dpaa2_dev_tx_queue_setup,\n \t.tx_queue_release  = dpaa2_dev_tx_queue_release,\n+\t.rx_burst_mode_get = dpaa2_dev_rx_burst_mode_get,\n+\t.tx_burst_mode_get = dpaa2_dev_tx_burst_mode_get,\n \t.rx_queue_count       = dpaa2_dev_rx_queue_count,\n \t.flow_ctrl_get\t      = dpaa2_flow_ctrl_get,\n \t.flow_ctrl_set\t      = dpaa2_flow_ctrl_set,\n",
    "prefixes": [
        "4/9"
    ]
}