Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/125988/?format=api
http://patchwork.dpdk.org/api/patches/125988/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230413061650.796940-9-junfeng.guo@intel.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": "<20230413061650.796940-9-junfeng.guo@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230413061650.796940-9-junfeng.guo@intel.com", "date": "2023-04-13T06:16:48", "name": "[08/10] net/gve: enable Tx checksum offload for DQO", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "908d9941e2ff8f27d280ec7cb860ecf8f1b33490", "submitter": { "id": 1785, "url": "http://patchwork.dpdk.org/api/people/1785/?format=api", "name": "Junfeng Guo", "email": "junfeng.guo@intel.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/20230413061650.796940-9-junfeng.guo@intel.com/mbox/", "series": [ { "id": 27687, "url": "http://patchwork.dpdk.org/api/series/27687/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=27687", "date": "2023-04-13T06:16:40", "name": "gve PMD enhancement", "version": 1, "mbox": "http://patchwork.dpdk.org/series/27687/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/125988/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/125988/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 3014C4292F;\n\tThu, 13 Apr 2023 08:18:02 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id BE8CE42D36;\n\tThu, 13 Apr 2023 08:17:34 +0200 (CEST)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n by mails.dpdk.org (Postfix) with ESMTP id 5676042D39\n for <dev@dpdk.org>; Thu, 13 Apr 2023 08:17:33 +0200 (CEST)", "from fmsmga007.fm.intel.com ([10.253.24.52])\n by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 12 Apr 2023 23:17:32 -0700", "from dpdk-jf-ntb-one.sh.intel.com ([10.67.111.104])\n by fmsmga007.fm.intel.com with ESMTP; 12 Apr 2023 23:17:30 -0700" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1681366653; x=1712902653;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=Ka50OVYICO3H0ccRSyg3wHWWdaW7/2rj1nTiKpIzHtA=;\n b=JT/uY4fWKWV3pM9PPXo4CKnb2smvLZ38YFCPJVsMRDFaZ6niCUTCUuLk\n Im6JpkhPLNFZWGIyShCWKpWUgjEZxm5F0nLV2P9JMAO796ExThS8qnZOX\n A6PBefpZVf9N5uoel/4IewRmWUjg1/s03SVjU2yUbKuMAn7UyLLH7E8Yv\n lwdA8+SoO7q8HQQGLLptNslnV42NthETEFNLuE7RxYuc4vp6BfBS8gbZr\n eJltjFsUIwrgL1vWCh4QHRWJVcRrk5Zz/jtdz1DPGCTr8IGAx7tYy5wuT\n K/idDn933+RSkRp6k4Ez9zF1BoPEyRqbhd2s6Ma3FLdjoxC8m47iIVG6b Q==;", "X-IronPort-AV": [ "E=McAfee;i=\"6600,9927,10678\"; a=\"341595392\"", "E=Sophos;i=\"5.98,339,1673942400\"; d=\"scan'208\";a=\"341595392\"", "E=McAfee;i=\"6600,9927,10678\"; a=\"691824309\"", "E=Sophos;i=\"5.98,339,1673942400\"; d=\"scan'208\";a=\"691824309\"" ], "X-ExtLoop1": "1", "From": "Junfeng Guo <junfeng.guo@intel.com>", "To": "qi.z.zhang@intel.com, jingjing.wu@intel.com, ferruh.yigit@amd.com,\n beilei.xing@intel.com", "Cc": "dev@dpdk.org, Junfeng Guo <junfeng.guo@intel.com>,\n Rushil Gupta <rushilg@google.com>, Joshua Washington <joshwash@google.com>,\n Jeroen de Borst <jeroendb@google.com>", "Subject": "[PATCH 08/10] net/gve: enable Tx checksum offload for DQO", "Date": "Thu, 13 Apr 2023 14:16:48 +0800", "Message-Id": "<20230413061650.796940-9-junfeng.guo@intel.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20230413061650.796940-1-junfeng.guo@intel.com>", "References": "<20230413061650.796940-1-junfeng.guo@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "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" }, "content": "Enable Tx checksum offload once any flag of L4 checksum is set.\n\nSigned-off-by: Junfeng Guo <junfeng.guo@intel.com>\nSigned-off-by: Rushil Gupta <rushilg@google.com>\nSigned-off-by: Joshua Washington <joshwash@google.com>\nSigned-off-by: Jeroen de Borst <jeroendb@google.com>\n---\n drivers/net/gve/gve_ethdev.h | 4 ++++\n drivers/net/gve/gve_tx_dqo.c | 5 +++++\n 2 files changed, 9 insertions(+)", "diff": "diff --git a/drivers/net/gve/gve_ethdev.h b/drivers/net/gve/gve_ethdev.h\nindex 617bb55a85..4a0e860afa 100644\n--- a/drivers/net/gve/gve_ethdev.h\n+++ b/drivers/net/gve/gve_ethdev.h\n@@ -38,6 +38,10 @@\n #define GVE_MAX_MTU\tRTE_ETHER_MTU\n #define GVE_MIN_MTU\tRTE_ETHER_MIN_MTU\n \n+#define GVE_TX_CKSUM_OFFLOAD_MASK (\t\t\\\n+\t\tRTE_MBUF_F_TX_L4_MASK |\t\\\n+\t\tRTE_MBUF_F_TX_TCP_SEG)\n+\n /* A list of pages registered with the device during setup and used by a queue\n * as buffers\n */\ndiff --git a/drivers/net/gve/gve_tx_dqo.c b/drivers/net/gve/gve_tx_dqo.c\nindex 578a409616..b38eeaea4b 100644\n--- a/drivers/net/gve/gve_tx_dqo.c\n+++ b/drivers/net/gve/gve_tx_dqo.c\n@@ -78,6 +78,7 @@ gve_tx_burst_dqo(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_pkts)\n \tuint16_t mask, sw_mask;\n \tuint16_t nb_to_clean;\n \tuint16_t nb_tx = 0;\n+\tuint64_t ol_flags;\n \tuint16_t nb_used;\n \tuint16_t tx_id;\n \tuint16_t sw_id;\n@@ -104,6 +105,7 @@ gve_tx_burst_dqo(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_pkts)\n \t\tif (txq->nb_free < tx_pkt->nb_segs)\n \t\t\tbreak;\n \n+\t\tol_flags = tx_pkt->ol_flags;\n \t\tnb_used = tx_pkt->nb_segs;\n \n \t\tdo {\n@@ -128,6 +130,9 @@ gve_tx_burst_dqo(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_pkts)\n \t\t/* fill the last descriptor with End of Packet (EOP) bit */\n \t\ttxd->pkt.end_of_packet = 1;\n \n+\t\tif (ol_flags & GVE_TX_CKSUM_OFFLOAD_MASK)\n+\t\t\ttxd->pkt.checksum_offload_enable = 1;\n+\n \t\ttxq->nb_free -= nb_used;\n \t\ttxq->nb_used += nb_used;\n \t}\n", "prefixes": [ "08/10" ] }{ "id": 125988, "url": "