get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 20941,
    "url": "https://patches.dpdk.org/api/patches/20941/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1488297228-45713-3-git-send-email-shahafs@mellanox.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<1488297228-45713-3-git-send-email-shahafs@mellanox.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1488297228-45713-3-git-send-email-shahafs@mellanox.com",
    "date": "2017-02-28T15:53:48",
    "name": "[dpdk-dev,2/2] net/mlx5: add hardware TSO support for VXLAN and GRE",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "5ec0d9ffd124e7954862ff127408f2049535d943",
    "submitter": {
        "id": 634,
        "url": "https://patches.dpdk.org/api/people/634/?format=api",
        "name": "Shahaf Shuler",
        "email": "shahafs@mellanox.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1488297228-45713-3-git-send-email-shahafs@mellanox.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/20941/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/20941/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 4211B2BB1;\n\tTue, 28 Feb 2017 16:54:23 +0100 (CET)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n\tby dpdk.org (Postfix) with ESMTP id 2A49E2BB1\n\tfor <dev@dpdk.org>; Tue, 28 Feb 2017 16:54:20 +0100 (CET)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n\tshahafs@mellanox.com)\n\twith ESMTPS (AES256-SHA encrypted); 28 Feb 2017 17:54:15 +0200",
            "from arch010.mtl.labs.mlnx (arch010.mtl.labs.mlnx [10.7.12.210])\n\tby labmailer.mlnx (8.13.8/8.13.8) with ESMTP id v1SFsFi2000552;\n\tTue, 28 Feb 2017 17:54:15 +0200",
            "from arch010.mtl.labs.mlnx (localhost [127.0.0.1])\n\tby arch010.mtl.labs.mlnx (8.14.7/8.14.7) with ESMTP id v1SFsFqM045817;\n\tTue, 28 Feb 2017 17:54:15 +0200",
            "(from root@localhost)\n\tby arch010.mtl.labs.mlnx (8.14.7/8.14.7/Submit) id v1SFsFJS045816;\n\tTue, 28 Feb 2017 17:54:15 +0200"
        ],
        "From": "Shahaf Shuler <shahafs@mellanox.com>",
        "To": "adrien.mazarguil@6wind.com, nelio.laranjeiro@6wind.com",
        "Cc": "dev@dpdk.org",
        "Date": "Tue, 28 Feb 2017 17:53:48 +0200",
        "Message-Id": "<1488297228-45713-3-git-send-email-shahafs@mellanox.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1488297228-45713-1-git-send-email-shahafs@mellanox.com>",
        "References": "<1488297228-45713-1-git-send-email-shahafs@mellanox.com>",
        "Subject": "[dpdk-dev] [PATCH 2/2] net/mlx5: add hardware TSO support for VXLAN\n\tand GRE",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/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 commit adds support for hardware TSO for tunneled packets.\n\nSigned-off-by: Shahaf Shuler <shahafs@mellanox.com>\n---\n drivers/net/mlx5/mlx5_ethdev.c | 4 +++-\n drivers/net/mlx5/mlx5_rxtx.c   | 9 +++++++++\n 2 files changed, 12 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/mlx5/mlx5_ethdev.c b/drivers/net/mlx5/mlx5_ethdev.c\nindex 3edfd49..4de3595 100644\n--- a/drivers/net/mlx5/mlx5_ethdev.c\n+++ b/drivers/net/mlx5/mlx5_ethdev.c\n@@ -696,7 +696,9 @@ struct priv *\n \tif (priv->tso)\n \t\tinfo->tx_offload_capa |= DEV_TX_OFFLOAD_TCP_TSO;\n \tif (priv->tunnel_en)\n-\t\tinfo->tx_offload_capa |= DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM;\n+\t\tinfo->tx_offload_capa |= (DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM |\n+\t\t\t\t\t  DEV_TX_OFFLOAD_VXLAN_TNL_TSO |\n+\t\t\t\t\t  DEV_TX_OFFLOAD_GRE_TNL_TSO);\n \tif (priv_get_ifname(priv, &ifname) == 0)\n \t\tinfo->if_index = if_nametoindex(ifname);\n \t/* FIXME: RETA update/query API expects the callee to know the size of\ndiff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c\nindex 145daa0..98e7205 100644\n--- a/drivers/net/mlx5/mlx5_rxtx.c\n+++ b/drivers/net/mlx5/mlx5_rxtx.c\n@@ -488,9 +488,18 @@\n \t\t\t\t\t\t(1 << txq->wqe_n) *\n \t\t\t\t\t\tMLX5_WQE_SIZE);\n \t\t\t\tunsigned int copy_b;\n+\t\t\t\tconst uint64_t is_tunneled =\n+\t\t\t\t\t\t\tbuf->ol_flags &\n+\t\t\t\t\t\t\t(PKT_TX_TUNNEL_GRE |\n+\t\t\t\t\t\t\t PKT_TX_TUNNEL_VXLAN);\n \n \t\t\t\ttso_header_sz = buf->l2_len + buf->l3_len +\n \t\t\t\t\t\tbuf->l4_len;\n+\n+\t\t\t\tif (is_tunneled\t&& txq->tunnel_en) {\n+\t\t\t\t\ttso_header_sz += buf->outer_l2_len +\n+\t\t\t\t\t\t\t buf->outer_l3_len;\n+\t\t\t\t}\n \t\t\t\tif (unlikely(tso_header_sz >\n \t\t\t\t\t     MLX5_MAX_TSO_HEADER))\n \t\t\t\t\tbreak;\n",
    "prefixes": [
        "dpdk-dev",
        "2/2"
    ]
}