get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 560304,
    "url": "http://patchwork.ozlabs.org/api/patches/560304/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1450823114-29514-6-git-send-email-deepthi.kavalur@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": "<1450823114-29514-6-git-send-email-deepthi.kavalur@intel.com>",
    "list_archive_url": null,
    "date": "2015-12-22T22:25:07",
    "name": "[next,S24,05/12] i40evf: add new write-back mode",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "5ea898563dc0683f50a1f05fcf3846018f60ac80",
    "submitter": {
        "id": 67654,
        "url": "http://patchwork.ozlabs.org/api/people/67654/?format=api",
        "name": "Deepthi Kavalur",
        "email": "deepthi.kavalur@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/1450823114-29514-6-git-send-email-deepthi.kavalur@intel.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/560304/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/560304/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 11F28140320\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 23 Dec 2015 09:25:21 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 5C83E95908;\n\tTue, 22 Dec 2015 22:25:20 +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 K343HjVeCH9v; Tue, 22 Dec 2015 22:25:18 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id C94EA95902;\n\tTue, 22 Dec 2015 22:25:18 +0000 (UTC)",
            "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\tby ash.osuosl.org (Postfix) with ESMTP id BE3A81C161D\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 22 Dec 2015 22:25:15 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id BC37B90E1E\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 22 Dec 2015 22:25:15 +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 CqxE6PfEydwO for <intel-wired-lan@lists.osuosl.org>;\n\tTue, 22 Dec 2015 22:25:14 +0000 (UTC)",
            "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id AEAC7925BA\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 22 Dec 2015 22:25:13 +0000 (UTC)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby orsmga103.jf.intel.com with ESMTP; 22 Dec 2015 14:25:13 -0800",
            "from dkavalur-mobl.amr.corp.intel.com (HELO\n\tlocalhost.localdomain.localdomain) ([134.134.176.61])\n\tby orsmga002.jf.intel.com with ESMTP; 22 Dec 2015 14:25:13 -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-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.20,466,1444719600\"; d=\"scan'208\";a=\"877072055\"",
        "From": "Deepthi Kavalur <deepthi.kavalur@intel.com>",
        "To": "intel-wired-lan@lists.osuosl.org",
        "Date": "Tue, 22 Dec 2015 14:25:07 -0800",
        "Message-Id": "<1450823114-29514-6-git-send-email-deepthi.kavalur@intel.com>",
        "X-Mailer": "git-send-email 2.1.0",
        "In-Reply-To": "<1450823114-29514-1-git-send-email-deepthi.kavalur@intel.com>",
        "References": "<1450823114-29514-1-git-send-email-deepthi.kavalur@intel.com>",
        "Subject": "[Intel-wired-lan] [next PATCH S24 05/12] i40evf: add new write-back\n\tmode",
        "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\nAdd write-back on interrupt throttle rate timer expiration support\nfor the i40evf driver, when running on X722 devices.\n\nSigned-off-by: Anjali Singhai Jain <anjali.singhai@intel.com>\n---\n drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c |  6 ++++++\n drivers/net/ethernet/intel/i40evf/i40e_txrx.c      | 16 ++++++++++++++++\n drivers/net/ethernet/intel/i40evf/i40evf_main.c    |  5 +++++\n 3 files changed, 27 insertions(+)",
    "diff": "diff --git a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c\nindex 3cc98b0..8c02fa9 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c\n@@ -1222,6 +1222,12 @@ static int i40e_vc_get_vf_resources_msg(struct i40e_vf *vf, u8 *msg)\n \tif (vf->driver_caps & I40E_VIRTCHNL_VF_OFFLOAD_RX_POLLING)\n \t\tvfres->vf_offload_flags |= I40E_VIRTCHNL_VF_OFFLOAD_RX_POLLING;\n \n+\tif (pf->flags & I40E_FLAG_WB_ON_ITR_CAPABLE) {\n+\t\tif (vf->driver_caps & I40E_VIRTCHNL_VF_OFFLOAD_WB_ON_ITR)\n+\t\t\tvfres->vf_offload_flags |=\n+\t\t\t\t\tI40E_VIRTCHNL_VF_OFFLOAD_WB_ON_ITR;\n+\t}\n+\n \tvfres->num_vsis = num_vsis;\n \tvfres->num_queue_pairs = vf->num_queue_pairs;\n \tvfres->max_vectors = pf->hw.func_caps.num_msix_vectors_vf;\ndiff --git a/drivers/net/ethernet/intel/i40evf/i40e_txrx.c b/drivers/net/ethernet/intel/i40evf/i40e_txrx.c\nindex ed4934a..0e2c627 100644\n--- a/drivers/net/ethernet/intel/i40evf/i40e_txrx.c\n+++ b/drivers/net/ethernet/intel/i40evf/i40e_txrx.c\n@@ -252,6 +252,22 @@ static bool i40e_clean_tx_irq(struct i40e_ring *tx_ring, int budget)\n \ttx_ring->q_vector->tx.total_bytes += total_bytes;\n \ttx_ring->q_vector->tx.total_packets += total_packets;\n \n+\tif (tx_ring->flags & I40E_TXR_FLAGS_WB_ON_ITR) {\n+\t\tunsigned int j = 0;\n+\t\t/* check to see if there are < 4 descriptors\n+\t\t * waiting to be written back, then kick the hardware to force\n+\t\t * them to be written back in case we stay in NAPI.\n+\t\t * In this mode on X722 we do not enable Interrupt.\n+\t\t */\n+\t\tj = i40evf_get_tx_pending(tx_ring);\n+\n+\t\tif (budget &&\n+\t\t    ((j / (WB_STRIDE + 1)) == 0) && (j > 0) &&\n+\t\t    !test_bit(__I40E_DOWN, &tx_ring->vsi->state) &&\n+\t\t    (I40E_DESC_UNUSED(tx_ring) != tx_ring->count))\n+\t\t\ttx_ring->arm_wb = true;\n+\t}\n+\n \tnetdev_tx_completed_queue(netdev_get_tx_queue(tx_ring->netdev,\n \t\t\t\t\t\t      tx_ring->queue_index),\n \t\t\t\t  total_packets, total_bytes);\ndiff --git a/drivers/net/ethernet/intel/i40evf/i40evf_main.c b/drivers/net/ethernet/intel/i40evf/i40evf_main.c\nindex 7bdb9f9..ab77e20 100644\n--- a/drivers/net/ethernet/intel/i40evf/i40evf_main.c\n+++ b/drivers/net/ethernet/intel/i40evf/i40evf_main.c\n@@ -2511,6 +2511,11 @@ static void i40evf_init_task(struct work_struct *work)\n \tif (adapter->vf_res->vf_offload_flags &\n \t\t    I40E_VIRTCHNL_VF_OFFLOAD_WB_ON_ITR)\n \t\tadapter->flags |= I40EVF_FLAG_WB_ON_ITR_CAPABLE;\n+\n+\tif (adapter->vf_res->vf_offload_flags &\n+\t    I40E_VIRTCHNL_VF_OFFLOAD_WB_ON_ITR)\n+\t\tadapter->flags |= I40EVF_FLAG_WB_ON_ITR_CAPABLE;\n+\n \terr = i40evf_request_misc_irq(adapter);\n \tif (err)\n \t\tgoto err_sw_init;\n",
    "prefixes": [
        "next",
        "S24",
        "05/12"
    ]
}