get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 41433,
    "url": "http://patchwork.dpdk.org/api/patches/41433/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20180624062226.11507-1-shahafs@mellanox.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": "<20180624062226.11507-1-shahafs@mellanox.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180624062226.11507-1-shahafs@mellanox.com",
    "date": "2018-06-24T06:22:26",
    "name": "net/mlx5: separate generic tunnel TSO from the standard one",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "b41665274cba8223db3d77c37ce11b9014d18435",
    "submitter": {
        "id": 634,
        "url": "http://patchwork.dpdk.org/api/people/634/?format=api",
        "name": "Shahaf Shuler",
        "email": "shahafs@mellanox.com"
    },
    "delegate": {
        "id": 6624,
        "url": "http://patchwork.dpdk.org/api/users/6624/?format=api",
        "username": "shahafs",
        "first_name": "Shahaf",
        "last_name": "Shuler",
        "email": "shahafs@mellanox.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20180624062226.11507-1-shahafs@mellanox.com/mbox/",
    "series": [
        {
            "id": 216,
            "url": "http://patchwork.dpdk.org/api/series/216/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=216",
            "date": "2018-06-24T06:22:26",
            "name": "net/mlx5: separate generic tunnel TSO from the standard one",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/216/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/41433/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/41433/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 376AD1B446;\n\tSun, 24 Jun 2018 08:23:29 +0200 (CEST)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n\tby dpdk.org (Postfix) with ESMTP id 4B42C7CCA\n\tfor <dev@dpdk.org>; Sun, 24 Jun 2018 08:23:28 +0200 (CEST)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n\tshahafs@mellanox.com)\n\twith ESMTPS (AES256-SHA encrypted); 24 Jun 2018 09:25:04 +0300",
            "from unicorn01.mtl.labs.mlnx. (unicorn01.mtl.labs.mlnx\n\t[10.7.12.62])\n\tby labmailer.mlnx (8.13.8/8.13.8) with ESMTP id w5O6MSdP020712;\n\tSun, 24 Jun 2018 09:22:28 +0300"
        ],
        "From": "Shahaf Shuler <shahafs@mellanox.com>",
        "To": "nelio.laranjeiro@6wind.com, adrien.mazarguil@6wind.com,\n\tyskoh@mellanox.com",
        "Cc": "dev@dpdk.org, stable@dpdk.org",
        "Date": "Sun, 24 Jun 2018 09:22:26 +0300",
        "Message-Id": "<20180624062226.11507-1-shahafs@mellanox.com>",
        "X-Mailer": "git-send-email 2.12.0",
        "Subject": "[dpdk-dev] [PATCH] net/mlx5: separate generic tunnel TSO from the\n\tstandard one",
        "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": "The generic tunnel TSO was depended in the regular one capabilities to\nbe enabled.\n\nCc: stable@dpdk.org\n\nSigned-off-by: Shahaf Shuler <shahafs@mellanox.com>\nAcked-by: Yongseok Koh <yskoh@mellanox.com>\n---\n drivers/net/mlx5/mlx5_txq.c | 13 +++++++++----\n 1 file changed, 9 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/drivers/net/mlx5/mlx5_txq.c b/drivers/net/mlx5/mlx5_txq.c\nindex 068f36d99d..669b91319f 100644\n--- a/drivers/net/mlx5/mlx5_txq.c\n+++ b/drivers/net/mlx5/mlx5_txq.c\n@@ -113,15 +113,20 @@ mlx5_get_tx_port_offloads(struct rte_eth_dev *dev)\n \t\t\t     DEV_TX_OFFLOAD_TCP_CKSUM);\n \tif (config->tso)\n \t\toffloads |= DEV_TX_OFFLOAD_TCP_TSO;\n+\tif (config->swp) {\n+\t\tif (config->hw_csum)\n+\t\t\toffloads |= DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM;\n+\t\tif (config->tso)\n+\t\t\toffloads |= (DEV_TX_OFFLOAD_IP_TNL_TSO |\n+\t\t\t\t     DEV_TX_OFFLOAD_UDP_TNL_TSO);\n+\t}\n+\n \tif (config->tunnel_en) {\n \t\tif (config->hw_csum)\n \t\t\toffloads |= DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM;\n \t\tif (config->tso)\n \t\t\toffloads |= (DEV_TX_OFFLOAD_VXLAN_TNL_TSO |\n \t\t\t\t     DEV_TX_OFFLOAD_GRE_TNL_TSO);\n-\t\tif (config->swp)\n-\t\t\toffloads |= (DEV_TX_OFFLOAD_IP_TNL_TSO |\n-\t\t\t\t     DEV_TX_OFFLOAD_UDP_TNL_TSO);\n \t}\n \treturn offloads;\n }\n@@ -707,7 +712,7 @@ txq_set_params(struct mlx5_txq_ctrl *txq_ctrl)\n \t\t\t\t\t\t   max_tso_inline);\n \t\ttxq_ctrl->txq.tso_en = 1;\n \t}\n-\ttxq_ctrl->txq.tunnel_en = config->tunnel_en;\n+\ttxq_ctrl->txq.tunnel_en = config->tunnel_en | config->swp;\n \ttxq_ctrl->txq.swp_en = ((DEV_TX_OFFLOAD_IP_TNL_TSO |\n \t\t\t\t DEV_TX_OFFLOAD_UDP_TNL_TSO |\n \t\t\t\t DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM) &\n",
    "prefixes": []
}