Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/21064/?format=api
http://patches.dpdk.org/api/patches/21064/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1488445545-24905-2-git-send-email-shahafs@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": "<1488445545-24905-2-git-send-email-shahafs@mellanox.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1488445545-24905-2-git-send-email-shahafs@mellanox.com", "date": "2017-03-02T09:05:45", "name": "[dpdk-dev,v2,2/2] net/mlx5: add hardware TSO support for VXLAN and GRE", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "5ec0d9ffd124e7954862ff127408f2049535d943", "submitter": { "id": 634, "url": "http://patches.dpdk.org/api/people/634/?format=api", "name": "Shahaf Shuler", "email": "shahafs@mellanox.com" }, "delegate": { "id": 319, "url": "http://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1488445545-24905-2-git-send-email-shahafs@mellanox.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/21064/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/21064/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 AB97C2BA1;\n\tThu, 2 Mar 2017 10:05:47 +0100 (CET)", "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n\tby dpdk.org (Postfix) with ESMTP id ACB422B86\n\tfor <dev@dpdk.org>; Thu, 2 Mar 2017 10:05:46 +0100 (CET)", "from Internal Mail-Server by MTLPINE1 (envelope-from\n\tshahafs@mellanox.com)\n\twith ESMTPS (AES256-SHA encrypted); 2 Mar 2017 11:05:45 +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 v2295j9n009181;\n\tThu, 2 Mar 2017 11:05:45 +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 v2295jpe024944;\n\tThu, 2 Mar 2017 11:05:45 +0200", "(from root@localhost)\n\tby arch010.mtl.labs.mlnx (8.14.7/8.14.7/Submit) id v2295jHb024943;\n\tThu, 2 Mar 2017 11:05:45 +0200" ], "From": "Shahaf Shuler <shahafs@mellanox.com>", "To": "nelio.laranjeiro@6wind.com, adrien.mazarguil@6wind.com", "Cc": "dev@dpdk.org", "Date": "Thu, 2 Mar 2017 11:05:45 +0200", "Message-Id": "<1488445545-24905-2-git-send-email-shahafs@mellanox.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1488445545-24905-1-git-send-email-shahafs@mellanox.com>", "References": "<AM4PR05MB1505B893E5E327C9782C7FA6C3290@AM4PR05MB1505.eurprd05.prod.outlook.com>\n\t<1488445545-24905-1-git-send-email-shahafs@mellanox.com>", "Subject": "[dpdk-dev] [PATCH v2 2/2] net/mlx5: add hardware TSO support for\n\tVXLAN and 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>\nAcked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.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 8be9e77..5deb6e8 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 cba9dc9..112709a 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", "v2", "2/2" ] }{ "id": 21064, "url": "