Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1238714/?format=api
{ "id": 1238714, "url": "http://patchwork.ozlabs.org/api/patches/1238714/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20200216094703.17867-1-sasha.neftin@intel.com/", "project": { "id": 46, "url": "http://patchwork.ozlabs.org/api/projects/46/?format=api", "name": "Intel Wired Ethernet development", "link_name": "intel-wired-lan", "list_id": "intel-wired-lan.osuosl.org", "list_email": "intel-wired-lan@osuosl.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20200216094703.17867-1-sasha.neftin@intel.com>", "list_archive_url": null, "date": "2020-02-16T09:47:03", "name": "[v2,1/1] igc: Complete to commit Add support for TSO", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "81db78b8f947eec9e01d6cd79e6cc1d0aa9aaa0d", "submitter": { "id": 69860, "url": "http://patchwork.ozlabs.org/api/people/69860/?format=api", "name": "Sasha Neftin", "email": "sasha.neftin@intel.com" }, "delegate": { "id": 68, "url": "http://patchwork.ozlabs.org/api/users/68/?format=api", "username": "jtkirshe", "first_name": "Jeff", "last_name": "Kirsher", "email": "jeffrey.t.kirsher@intel.com" }, "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20200216094703.17867-1-sasha.neftin@intel.com/mbox/", "series": [ { "id": 158792, "url": "http://patchwork.ozlabs.org/api/series/158792/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=158792", "date": "2020-02-16T09:47:03", "name": "[v2,1/1] igc: Complete to commit Add support for TSO", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/158792/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1238714/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1238714/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<intel-wired-lan-bounces@osuosl.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "intel-wired-lan@lists.osuosl.org" ], "Delivered-To": [ "patchwork-incoming@bilbo.ozlabs.org", "intel-wired-lan@lists.osuosl.org" ], "Authentication-Results": [ "ozlabs.org; spf=pass (sender SPF authorized)\n\tsmtp.mailfrom=osuosl.org (client-ip=140.211.166.138;\n\thelo=whitealder.osuosl.org;\n\tenvelope-from=intel-wired-lan-bounces@osuosl.org;\n\treceiver=<UNKNOWN>)", "ozlabs.org;\n\tdmarc=fail (p=none dis=none) header.from=intel.com" ], "Received": [ "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 48L2Mk1WFHz9sP7\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSun, 16 Feb 2020 20:47:11 +1100 (AEDT)", "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id B9049867F2;\n\tSun, 16 Feb 2020 09:47:09 +0000 (UTC)", "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 7TaiAXIZ+Jb4; Sun, 16 Feb 2020 09:47:07 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id B72288628E;\n\tSun, 16 Feb 2020 09:47:07 +0000 (UTC)", "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id 73DD01BF83B\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tSun, 16 Feb 2020 09:47:06 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 63B0A85DF7\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tSun, 16 Feb 2020 09:47:06 +0000 (UTC)", "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id XCsarlHEtc2Q for <intel-wired-lan@lists.osuosl.org>;\n\tSun, 16 Feb 2020 09:47:05 +0000 (UTC)", "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n\tby fraxinus.osuosl.org (Postfix) with ESMTPS id C64A285D3A\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tSun, 16 Feb 2020 09:47:05 +0000 (UTC)", "from fmsmga002.fm.intel.com ([10.253.24.26])\n\tby orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t16 Feb 2020 01:47:04 -0800", "from ccdlinuxdev09.iil.intel.com ([143.185.163.21])\n\tby fmsmga002.fm.intel.com with ESMTP; 16 Feb 2020 01:47:03 -0800" ], "X-Virus-Scanned": [ "amavisd-new at osuosl.org", "amavisd-new at osuosl.org" ], "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6", "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.70,448,1574150400\"; d=\"scan'208\";a=\"268072057\"", "From": "Sasha Neftin <sasha.neftin@intel.com>", "To": "intel-wired-lan@lists.osuosl.org", "Date": "Sun, 16 Feb 2020 11:47:03 +0200", "Message-Id": "<20200216094703.17867-1-sasha.neftin@intel.com>", "X-Mailer": "git-send-email 2.11.0", "Subject": "[Intel-wired-lan] [PATCH v2 1/1] igc: Complete to commit Add\n\tsupport for TSO", "X-BeenThere": "intel-wired-lan@osuosl.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.osuosl.org>", "List-Unsubscribe": "<https://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=unsubscribe>", "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>", "List-Post": "<mailto:intel-wired-lan@osuosl.org>", "List-Help": "<mailto:intel-wired-lan-request@osuosl.org?subject=help>", "List-Subscribe": "<https://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "intel-wired-lan-bounces@osuosl.org", "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@osuosl.org>" }, "content": "commit f38b782dccab (\"igc: Add support for TSO\")\nAdd option to setting transmit command (TUCMD) of the context\ndescriptor based on skb_shinfo gso_type and SKB_GSO_UDP_L4 flag.\n\nv1 -> v2: add SKB_GSO_UDP_L4 to features check and probe\n\nSigned-off-by: Sasha Neftin <sasha.neftin@intel.com>\n---\n drivers/net/ethernet/intel/igc/igc_defines.h | 1 +\n drivers/net/ethernet/intel/igc/igc_main.c | 6 +++++-\n 2 files changed, 6 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/net/ethernet/intel/igc/igc_defines.h b/drivers/net/ethernet/intel/igc/igc_defines.h\nindex 4ddccccf42cc..044c0f8d4c16 100644\n--- a/drivers/net/ethernet/intel/igc/igc_defines.h\n+++ b/drivers/net/ethernet/intel/igc/igc_defines.h\n@@ -509,6 +509,7 @@\n #define IGC_VLAPQF_QUEUE_MASK\t0x03\n \n #define IGC_ADVTXD_MACLEN_SHIFT\t\t9 /* Adv ctxt desc mac len shift */\n+#define IGC_ADVTXD_TUCMD_L4T_UDP\t0x00000000 /* L4 Packet TYPE of UDP */\n #define IGC_ADVTXD_TUCMD_IPV4\t\t0x00000400 /* IP Packet Type:1=IPv4 */\n #define IGC_ADVTXD_TUCMD_L4T_TCP\t0x00000800 /* L4 Packet Type of TCP */\n #define IGC_ADVTXD_TUCMD_L4T_SCTP\t0x00001000 /* L4 packet TYPE of SCTP */\ndiff --git a/drivers/net/ethernet/intel/igc/igc_main.c b/drivers/net/ethernet/intel/igc/igc_main.c\nindex 771148e57941..f1f6a5230dda 100644\n--- a/drivers/net/ethernet/intel/igc/igc_main.c\n+++ b/drivers/net/ethernet/intel/igc/igc_main.c\n@@ -1208,7 +1208,8 @@ static int igc_tso(struct igc_ring *tx_ring,\n \tl4.hdr = skb_checksum_start(skb);\n \n \t/* ADV DTYP TUCMD MKRLOC/ISCSIHEDLEN */\n-\ttype_tucmd = IGC_ADVTXD_TUCMD_L4T_TCP;\n+\ttype_tucmd = (skb_shinfo(skb)->gso_type & SKB_GSO_UDP_L4) ?\n+\t\t IGC_ADVTXD_TUCMD_L4T_UDP : IGC_ADVTXD_TUCMD_L4T_TCP;\n \n \t/* initialize outer IP header fields */\n \tif (ip.v4->version == 4) {\n@@ -3669,6 +3670,7 @@ igc_features_check(struct sk_buff *skb, struct net_device *dev,\n \tif (unlikely(mac_hdr_len > IGC_MAX_MAC_HDR_LEN))\n \t\treturn features & ~(NETIF_F_HW_CSUM |\n \t\t\t\t NETIF_F_SCTP_CRC |\n+\t\t\t\t NETIF_F_GSO_UDP_L4 |\n \t\t\t\t NETIF_F_HW_VLAN_CTAG_TX |\n \t\t\t\t NETIF_F_TSO |\n \t\t\t\t NETIF_F_TSO6);\n@@ -3677,6 +3679,7 @@ igc_features_check(struct sk_buff *skb, struct net_device *dev,\n \tif (unlikely(network_hdr_len > IGC_MAX_NETWORK_HDR_LEN))\n \t\treturn features & ~(NETIF_F_HW_CSUM |\n \t\t\t\t NETIF_F_SCTP_CRC |\n+\t\t\t\t NETIF_F_GSO_UDP_L4 |\n \t\t\t\t NETIF_F_TSO |\n \t\t\t\t NETIF_F_TSO6);\n \n@@ -4726,6 +4729,7 @@ static int igc_probe(struct pci_dev *pdev,\n \tnetdev->features |= NETIF_F_RXCSUM;\n \tnetdev->features |= NETIF_F_HW_CSUM;\n \tnetdev->features |= NETIF_F_SCTP_CRC;\n+\tnetdev->features |= NETIF_F_GSO_UDP_L4;\n \n \t/* setup the private structure */\n \terr = igc_sw_init(adapter);\n", "prefixes": [ "v2", "1/1" ] }