get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 56811,
    "url": "http://patches.dpdk.org/api/patches/56811/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1563719100-368-9-git-send-email-viacheslavo@mellanox.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": "<1563719100-368-9-git-send-email-viacheslavo@mellanox.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1563719100-368-9-git-send-email-viacheslavo@mellanox.com",
    "date": "2019-07-21T14:25:00",
    "name": "[v4,8/8] net/mlx5: report supported max number of mbuf segments",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "2a993ae9211deef5ccf0ab41a86c62a9d869f3e9",
    "submitter": {
        "id": 1102,
        "url": "http://patches.dpdk.org/api/people/1102/?format=api",
        "name": "Slava Ovsiienko",
        "email": "viacheslavo@mellanox.com"
    },
    "delegate": {
        "id": 3268,
        "url": "http://patches.dpdk.org/api/users/3268/?format=api",
        "username": "rasland",
        "first_name": "Raslan",
        "last_name": "Darawsheh",
        "email": "rasland@nvidia.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1563719100-368-9-git-send-email-viacheslavo@mellanox.com/mbox/",
    "series": [
        {
            "id": 5631,
            "url": "http://patches.dpdk.org/api/series/5631/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=5631",
            "date": "2019-07-21T14:24:52",
            "name": "net/mlx5: consolidate Tx datapath",
            "version": 4,
            "mbox": "http://patches.dpdk.org/series/5631/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/56811/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/56811/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 840CF1B974;\n\tSun, 21 Jul 2019 16:26:09 +0200 (CEST)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n\tby dpdk.org (Postfix) with ESMTP id 372691B99B\n\tfor <dev@dpdk.org>; Sun, 21 Jul 2019 16:25:55 +0200 (CEST)",
            "from Internal Mail-Server by MTLPINE2 (envelope-from\n\tviacheslavo@mellanox.com)\n\twith ESMTPS (AES256-SHA encrypted); 21 Jul 2019 17:25:51 +0300",
            "from pegasus12.mtr.labs.mlnx (pegasus12.mtr.labs.mlnx\n\t[10.210.17.40])\n\tby labmailer.mlnx (8.13.8/8.13.8) with ESMTP id x6LEPpSe007241;\n\tSun, 21 Jul 2019 17:25:51 +0300",
            "from pegasus12.mtr.labs.mlnx (localhost [127.0.0.1])\n\tby pegasus12.mtr.labs.mlnx (8.14.7/8.14.7) with ESMTP id\n\tx6LEPpKO000774; Sun, 21 Jul 2019 14:25:51 GMT",
            "(from viacheslavo@localhost)\n\tby pegasus12.mtr.labs.mlnx (8.14.7/8.14.7/Submit) id x6LEPpNf000773; \n\tSun, 21 Jul 2019 14:25:51 GMT"
        ],
        "X-Authentication-Warning": "pegasus12.mtr.labs.mlnx: viacheslavo set sender to\n\tviacheslavo@mellanox.com using -f",
        "From": "Viacheslav Ovsiienko <viacheslavo@mellanox.com>",
        "To": "dev@dpdk.org",
        "Cc": "yskoh@mellanox.com",
        "Date": "Sun, 21 Jul 2019 14:25:00 +0000",
        "Message-Id": "<1563719100-368-9-git-send-email-viacheslavo@mellanox.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1563719100-368-1-git-send-email-viacheslavo@mellanox.com>",
        "References": "<1563346400-1762-1-git-send-email-viacheslavo@mellanox.com>\n\t<1563719100-368-1-git-send-email-viacheslavo@mellanox.com>",
        "Subject": "[dpdk-dev] [PATCH v4 8/8] net/mlx5: report supported max number of\n\tmbuf segments",
        "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": "This patch fills the tx_desc_lim.nb_seg_max and\ntx_desc_lim.nb_mtu_seg_max fields of rte_eth_dev_info\nstructure to report thee maximal number of packet\nsegments, requested inline data configuration is\ntaken into account in conservative way.\n\nSigned-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>\n---\n drivers/net/mlx5/mlx5_ethdev.c | 37 +++++++++++++++++++++++++++++++++++++\n 1 file changed, 37 insertions(+)",
    "diff": "diff --git a/drivers/net/mlx5/mlx5_ethdev.c b/drivers/net/mlx5/mlx5_ethdev.c\nindex 738d540..6c9bcf1 100644\n--- a/drivers/net/mlx5/mlx5_ethdev.c\n+++ b/drivers/net/mlx5/mlx5_ethdev.c\n@@ -592,6 +592,42 @@ struct ethtool_link_settings {\n }\n \n /**\n+ * Sets tx mbuf limiting parameters.\n+ *\n+ * @param dev\n+ *   Pointer to Ethernet device.\n+ * @param[out] info\n+ *   Info structure output buffer.\n+ */\n+static void\n+mlx5_set_txlimit_params(struct rte_eth_dev *dev, struct rte_eth_dev_info *info)\n+{\n+\tstruct mlx5_priv *priv = dev->data->dev_private;\n+\tstruct mlx5_dev_config *config = &priv->config;\n+\tunsigned int inlen;\n+\tuint16_t nb_max;\n+\n+\tinlen = (config->txq_inline_max == MLX5_ARG_UNSET) ?\n+\t\tMLX5_SEND_DEF_INLINE_LEN :\n+\t\t(unsigned int)config->txq_inline_max;\n+\tassert(config->txq_inline_min >= 0);\n+\tinlen = RTE_MAX(inlen, (unsigned int)config->txq_inline_min);\n+\tinlen = RTE_MIN(inlen, MLX5_WQE_SIZE_MAX +\n+\t\t\t       MLX5_ESEG_MIN_INLINE_SIZE -\n+\t\t\t       MLX5_WQE_CSEG_SIZE -\n+\t\t\t       MLX5_WQE_ESEG_SIZE -\n+\t\t\t       MLX5_WQE_DSEG_SIZE * 2);\n+\tnb_max = (MLX5_WQE_SIZE_MAX +\n+\t\t  MLX5_ESEG_MIN_INLINE_SIZE -\n+\t\t  MLX5_WQE_CSEG_SIZE -\n+\t\t  MLX5_WQE_ESEG_SIZE -\n+\t\t  MLX5_WQE_DSEG_SIZE -\n+\t\t  inlen) / MLX5_WSEG_SIZE;\n+\tinfo->tx_desc_lim.nb_seg_max = nb_max;\n+\tinfo->tx_desc_lim.nb_mtu_seg_max = nb_max;\n+}\n+\n+/**\n  * DPDK callback to get information about the device.\n  *\n  * @param dev\n@@ -634,6 +670,7 @@ struct ethtool_link_settings {\n \tinfo->speed_capa = priv->link_speed_capa;\n \tinfo->flow_type_rss_offloads = ~MLX5_RSS_HF_MASK;\n \tmlx5_set_default_params(dev, info);\n+\tmlx5_set_txlimit_params(dev, info);\n \tinfo->switch_info.name = dev->data->name;\n \tinfo->switch_info.domain_id = priv->domain_id;\n \tinfo->switch_info.port_id = priv->representor_id;\n",
    "prefixes": [
        "v4",
        "8/8"
    ]
}