get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 511337,
    "url": "http://patchwork.ozlabs.org/api/patches/511337/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1440690163-128213-2-git-send-email-catherine.sullivan@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": "<1440690163-128213-2-git-send-email-catherine.sullivan@intel.com>",
    "list_archive_url": null,
    "date": "2015-08-27T15:42:29",
    "name": "[next,S12,01/15] i40e/i40evf: Add a stat to keep track of linearization count",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "0e56f2b57189032948a502ca2107465350d1e021",
    "submitter": {
        "id": 13931,
        "url": "http://patchwork.ozlabs.org/api/people/13931/?format=api",
        "name": "Catherine Sullivan",
        "email": "catherine.sullivan@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/1440690163-128213-2-git-send-email-catherine.sullivan@intel.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/511337/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/511337/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<intel-wired-lan-bounces@lists.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"
        ],
        "Received": [
            "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\tby ozlabs.org (Postfix) with ESMTP id 1935B1401DA\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 28 Aug 2015 01:41:46 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 6654095140;\n\tThu, 27 Aug 2015 15:41:45 +0000 (UTC)",
            "from hemlock.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id TCCvvW-lRW1N; Thu, 27 Aug 2015 15:41:44 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id C315894FF7;\n\tThu, 27 Aug 2015 15:41:44 +0000 (UTC)",
            "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id BFEDB1C11E9\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu, 27 Aug 2015 15:41:42 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id BC53AA3C8B\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu, 27 Aug 2015 15:41:42 +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 yfzB9YSj7LPw for <intel-wired-lan@lists.osuosl.org>;\n\tThu, 27 Aug 2015 15:41:42 +0000 (UTC)",
            "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 2EEDAA3C89\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu, 27 Aug 2015 15:41:42 +0000 (UTC)",
            "from orsmga003.jf.intel.com ([10.7.209.27])\n\tby fmsmga102.fm.intel.com with ESMTP; 27 Aug 2015 08:41:41 -0700",
            "from catheri1-tigger.jf.intel.com ([134.134.176.92])\n\tby orsmga003.jf.intel.com with ESMTP; 27 Aug 2015 08:41:42 -0700"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.17,422,1437462000\"; d=\"scan'208\";a=\"633370180\"",
        "From": "Catherine Sullivan <catherine.sullivan@intel.com>",
        "To": "intel-wired-lan@lists.osuosl.org",
        "Date": "Thu, 27 Aug 2015 11:42:29 -0400",
        "Message-Id": "<1440690163-128213-2-git-send-email-catherine.sullivan@intel.com>",
        "X-Mailer": "git-send-email 1.9.3",
        "In-Reply-To": "<1440690163-128213-1-git-send-email-catherine.sullivan@intel.com>",
        "References": "<1440690163-128213-1-git-send-email-catherine.sullivan@intel.com>",
        "Subject": "[Intel-wired-lan] [next PATCH S12 01/15] i40e/i40evf: Add a stat to\n\tkeep track of linearization count",
        "X-BeenThere": "intel-wired-lan@lists.osuosl.org",
        "X-Mailman-Version": "2.1.18-1",
        "Precedence": "list",
        "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.lists.osuosl.org>",
        "List-Unsubscribe": "<http://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>",
        "List-Post": "<mailto:intel-wired-lan@lists.osuosl.org>",
        "List-Help": "<mailto:intel-wired-lan-request@lists.osuosl.org?subject=help>",
        "List-Subscribe": "<http://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.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@lists.osuosl.org",
        "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@lists.osuosl.org>"
    },
    "content": "From: Anjali Singhai Jain <anjali.singhai@intel.com>\n\nKeep track of how many times we ask the stack to linearize the\nskb because the HW cannot handle skbs with more than 8 frags per\nsegment/single packet.\n\nSigned-off-by: Anjali Singhai Jain <anjali.singhai@intel.com>\nChange-ID: If455452060963a769bbe6112cba952e79e944b52\n---\n drivers/net/ethernet/intel/i40e/i40e.h         | 1 +\n drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 1 +\n drivers/net/ethernet/intel/i40e/i40e_main.c    | 5 ++++-\n drivers/net/ethernet/intel/i40e/i40e_txrx.c    | 5 +++--\n drivers/net/ethernet/intel/i40e/i40e_txrx.h    | 1 +\n drivers/net/ethernet/intel/i40evf/i40e_txrx.c  | 5 +++--\n drivers/net/ethernet/intel/i40evf/i40e_txrx.h  | 1 +\n 7 files changed, 14 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/i40e/i40e.h b/drivers/net/ethernet/intel/i40e/i40e.h\nindex 3d4f2e4..73d2e86 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e.h\n+++ b/drivers/net/ethernet/intel/i40e/i40e.h\n@@ -477,6 +477,7 @@ struct i40e_vsi {\n #endif\n \tu32 tx_restart;\n \tu32 tx_busy;\n+\tu64 tx_linearize;\n \tu32 rx_buf_failed;\n \tu32 rx_page_failed;\n \ndiff --git a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c\nindex 1fa38f6..ffa9431 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c\n@@ -87,6 +87,7 @@ static const struct i40e_stats i40e_gstrings_misc_stats[] = {\n \tI40E_VSI_STAT(\"rx_broadcast\", eth_stats.rx_broadcast),\n \tI40E_VSI_STAT(\"tx_broadcast\", eth_stats.tx_broadcast),\n \tI40E_VSI_STAT(\"rx_unknown_protocol\", eth_stats.rx_unknown_protocol),\n+\tI40E_VSI_STAT(\"tx_linearize\", tx_linearize),\n };\n \n static int i40e_add_fdir_ethtool(struct i40e_vsi *vsi,\ndiff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c\nindex d6ba5f6..b3328ca 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_main.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c\n@@ -796,6 +796,7 @@ static void i40e_update_vsi_stats(struct i40e_vsi *vsi)\n \tu32 rx_page, rx_buf;\n \tu64 bytes, packets;\n \tunsigned int start;\n+\tu64 tx_linearize;\n \tu64 rx_p, rx_b;\n \tu64 tx_p, tx_b;\n \tu16 q;\n@@ -814,7 +815,7 @@ static void i40e_update_vsi_stats(struct i40e_vsi *vsi)\n \t */\n \trx_b = rx_p = 0;\n \ttx_b = tx_p = 0;\n-\ttx_restart = tx_busy = 0;\n+\ttx_restart = tx_busy = tx_linearize = 0;\n \trx_page = 0;\n \trx_buf = 0;\n \trcu_read_lock();\n@@ -831,6 +832,7 @@ static void i40e_update_vsi_stats(struct i40e_vsi *vsi)\n \t\ttx_p += packets;\n \t\ttx_restart += p->tx_stats.restart_queue;\n \t\ttx_busy += p->tx_stats.tx_busy;\n+\t\ttx_linearize += p->tx_stats.tx_linearize;\n \n \t\t/* Rx queue is part of the same block as Tx queue */\n \t\tp = &p[1];\n@@ -847,6 +849,7 @@ static void i40e_update_vsi_stats(struct i40e_vsi *vsi)\n \trcu_read_unlock();\n \tvsi->tx_restart = tx_restart;\n \tvsi->tx_busy = tx_busy;\n+\tvsi->tx_linearize = tx_linearize;\n \tvsi->rx_page_failed = rx_page;\n \tvsi->rx_buf_failed = rx_buf;\n \ndiff --git a/drivers/net/ethernet/intel/i40e/i40e_txrx.c b/drivers/net/ethernet/intel/i40e/i40e_txrx.c\nindex b93c2dc..79c8f71 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_txrx.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_txrx.c\n@@ -2809,10 +2809,11 @@ static netdev_tx_t i40e_xmit_frame_ring(struct sk_buff *skb,\n \tif (tsyn)\n \t\ttx_flags |= I40E_TX_FLAGS_TSYN;\n \n-\tif (i40e_chk_linearize(skb, tx_flags))\n+\tif (i40e_chk_linearize(skb, tx_flags)) {\n \t\tif (skb_linearize(skb))\n \t\t\tgoto out_drop;\n-\n+\t\ttx_ring->tx_stats.tx_linearize++;\n+\t}\n \tskb_tx_timestamp(skb);\n \n \t/* always enable CRC insertion offload */\ndiff --git a/drivers/net/ethernet/intel/i40e/i40e_txrx.h b/drivers/net/ethernet/intel/i40e/i40e_txrx.h\nindex db2130f..c6d2995 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_txrx.h\n+++ b/drivers/net/ethernet/intel/i40e/i40e_txrx.h\n@@ -188,6 +188,7 @@ struct i40e_tx_queue_stats {\n \tu64 restart_queue;\n \tu64 tx_busy;\n \tu64 tx_done_old;\n+\tu64 tx_linearize;\n };\n \n struct i40e_rx_queue_stats {\ndiff --git a/drivers/net/ethernet/intel/i40evf/i40e_txrx.c b/drivers/net/ethernet/intel/i40evf/i40e_txrx.c\nindex 37e2b05..1d0e38f 100644\n--- a/drivers/net/ethernet/intel/i40evf/i40e_txrx.c\n+++ b/drivers/net/ethernet/intel/i40evf/i40e_txrx.c\n@@ -2005,10 +2005,11 @@ static netdev_tx_t i40e_xmit_frame_ring(struct sk_buff *skb,\n \telse if (tso)\n \t\ttx_flags |= I40E_TX_FLAGS_TSO;\n \n-\tif (i40e_chk_linearize(skb, tx_flags))\n+\tif (i40e_chk_linearize(skb, tx_flags)) {\n \t\tif (skb_linearize(skb))\n \t\t\tgoto out_drop;\n-\n+\t\ttx_ring->tx_stats.tx_linearize++;\n+\t}\n \tskb_tx_timestamp(skb);\n \n \t/* always enable CRC insertion offload */\ndiff --git a/drivers/net/ethernet/intel/i40evf/i40e_txrx.h b/drivers/net/ethernet/intel/i40evf/i40e_txrx.h\nindex 9a30f5d..e8dd651 100644\n--- a/drivers/net/ethernet/intel/i40evf/i40e_txrx.h\n+++ b/drivers/net/ethernet/intel/i40evf/i40e_txrx.h\n@@ -187,6 +187,7 @@ struct i40e_tx_queue_stats {\n \tu64 restart_queue;\n \tu64 tx_busy;\n \tu64 tx_done_old;\n+\tu64 tx_linearize;\n };\n \n struct i40e_rx_queue_stats {\n",
    "prefixes": [
        "next",
        "S12",
        "01/15"
    ]
}