get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 514270,
    "url": "http://patchwork.ozlabs.org/api/patches/514270/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1441315142-173025-7-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": "<1441315142-173025-7-git-send-email-catherine.sullivan@intel.com>",
    "list_archive_url": null,
    "date": "2015-09-03T21:18:53",
    "name": "[next,S15,06/15] i40e/i40evf: Add WB_ON_ITR offload support",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "de5ac8ef88b43bcb95a3ce066ddc84826112ef6b",
    "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/1441315142-173025-7-git-send-email-catherine.sullivan@intel.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/514270/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/514270/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 209DB140771\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri,  4 Sep 2015 07:18:45 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 748A5952D8;\n\tThu,  3 Sep 2015 21:18:44 +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 iu5nEFvJHatP; Thu,  3 Sep 2015 21:18:38 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id B424795168;\n\tThu,  3 Sep 2015 21:18:37 +0000 (UTC)",
            "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\tby ash.osuosl.org (Postfix) with ESMTP id CBD401C1777\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu,  3 Sep 2015 21:18:36 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id C754C2C857\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu,  3 Sep 2015 21:18:36 +0000 (UTC)",
            "from silver.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 7wYH+xPMgXal for <intel-wired-lan@lists.osuosl.org>;\n\tThu,  3 Sep 2015 21:18:36 +0000 (UTC)",
            "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby silver.osuosl.org (Postfix) with ESMTP id 769B52E705\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu,  3 Sep 2015 21:18:36 +0000 (UTC)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby orsmga103.jf.intel.com with ESMTP; 03 Sep 2015 14:18:17 -0700",
            "from catheri1-tigger.jf.intel.com ([134.134.176.92])\n\tby orsmga002.jf.intel.com with ESMTP; 03 Sep 2015 14:18:17 -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,464,1437462000\"; d=\"scan'208\";a=\"797335992\"",
        "From": "Catherine Sullivan <catherine.sullivan@intel.com>",
        "To": "intel-wired-lan@lists.osuosl.org",
        "Date": "Thu,  3 Sep 2015 17:18:53 -0400",
        "Message-Id": "<1441315142-173025-7-git-send-email-catherine.sullivan@intel.com>",
        "X-Mailer": "git-send-email 1.9.3",
        "In-Reply-To": "<1441315142-173025-1-git-send-email-catherine.sullivan@intel.com>",
        "References": "<1441315142-173025-1-git-send-email-catherine.sullivan@intel.com>",
        "Subject": "[Intel-wired-lan] [next PATCH S15 06/15] i40e/i40evf: Add WB_ON_ITR\n\toffload support",
        "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\nX722 has a way to work around the descriptor WB issue,\nthis offload helps turn that feature on.\n\nSigned-off-by: Anjali Singhai Jain <anjali.singhai@intel.com>\nChange-ID: I7ffa67622426bfca5a651417b63e3afcfeb60412\n---\n drivers/net/ethernet/intel/i40e/i40e_virtchnl.h     | 1 +\n drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c  | 4 ++++\n drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h   | 1 +\n drivers/net/ethernet/intel/i40evf/i40evf_main.c     | 5 +++++\n drivers/net/ethernet/intel/i40evf/i40evf_virtchnl.c | 3 ++-\n 5 files changed, 13 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/i40e/i40e_virtchnl.h b/drivers/net/ethernet/intel/i40e/i40e_virtchnl.h\nindex 95d0f8c..ae87982 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_virtchnl.h\n+++ b/drivers/net/ethernet/intel/i40e/i40e_virtchnl.h\n@@ -150,6 +150,7 @@ struct i40e_virtchnl_vsi_resource {\n #define I40E_VIRTCHNL_VF_OFFLOAD_FCOE\t\t0x00000004\n #define I40E_VIRTCHNL_VF_OFFLOAD_RSS_AQ\t\t0x00000008\n #define I40E_VIRTCHNL_VF_OFFLOAD_RSS_REG\t0x00000010\n+#define I40E_VIRTCHNL_VF_OFFLOAD_WB_ON_ITR\t0x00000020\n #define I40E_VIRTCHNL_VF_OFFLOAD_VLAN\t\t0x00010000\n #define I40E_VIRTCHNL_VF_OFFLOAD_RX_POLLING\t0x00020000\n \ndiff --git a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c\nindex 4e383f9..465b1e9 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c\n@@ -1206,6 +1206,10 @@ static int i40e_vc_get_vf_resources_msg(struct i40e_vf *vf, u8 *msg)\n \t} else {\n \t\tvfres->vf_offload_flags |= I40E_VIRTCHNL_VF_OFFLOAD_RSS_REG;\n \t}\n+\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 \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_virtchnl.h b/drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h\nindex cadda64..9f7b279 100644\n--- a/drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h\n+++ b/drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h\n@@ -150,6 +150,7 @@ struct i40e_virtchnl_vsi_resource {\n #define I40E_VIRTCHNL_VF_OFFLOAD_FCOE\t\t0x00000004\n #define I40E_VIRTCHNL_VF_OFFLOAD_RSS_AQ\t\t0x00000008\n #define I40E_VIRTCHNL_VF_OFFLOAD_RSS_REG\t0x00000010\n+#define I40E_VIRTCHNL_VF_OFFLOAD_WB_ON_ITR\t0x00000020\n #define I40E_VIRTCHNL_VF_OFFLOAD_VLAN\t\t0x00010000\n #define I40E_VIRTCHNL_VF_OFFLOAD_RX_POLLING\t0x00020000\n \ndiff --git a/drivers/net/ethernet/intel/i40evf/i40evf_main.c b/drivers/net/ethernet/intel/i40evf/i40evf_main.c\nindex 69767c0..feb9ad5 100644\n--- a/drivers/net/ethernet/intel/i40evf/i40evf_main.c\n+++ b/drivers/net/ethernet/intel/i40evf/i40evf_main.c\n@@ -1123,6 +1123,8 @@ static int i40evf_alloc_queues(struct i40evf_adapter *adapter)\n \t\ttx_ring->netdev = adapter->netdev;\n \t\ttx_ring->dev = &adapter->pdev->dev;\n \t\ttx_ring->count = adapter->tx_desc_count;\n+\t\tif (adapter->flags & I40E_FLAG_WB_ON_ITR_CAPABLE)\n+\t\t\ttx_ring->flags |= I40E_TXR_FLAGS_WB_ON_ITR;\n \t\tadapter->tx_rings[i] = tx_ring;\n \n \t\trx_ring = &tx_ring[1];\n@@ -2275,6 +2277,9 @@ static void i40evf_init_task(struct work_struct *work)\n \tif (err)\n \t\tgoto err_sw_init;\n \ti40evf_map_rings_to_vectors(adapter);\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 \tif (!RSS_AQ(adapter))\n \t\ti40evf_configure_rss(adapter);\n \terr = i40evf_request_misc_irq(adapter);\ndiff --git a/drivers/net/ethernet/intel/i40evf/i40evf_virtchnl.c b/drivers/net/ethernet/intel/i40evf/i40evf_virtchnl.c\nindex 4f056ef..32e620e 100644\n--- a/drivers/net/ethernet/intel/i40evf/i40evf_virtchnl.c\n+++ b/drivers/net/ethernet/intel/i40evf/i40evf_virtchnl.c\n@@ -156,7 +156,8 @@ int i40evf_send_vf_config_msg(struct i40evf_adapter *adapter)\n \tcaps = I40E_VIRTCHNL_VF_OFFLOAD_L2 |\n \t       I40E_VIRTCHNL_VF_OFFLOAD_RSS_AQ |\n \t       I40E_VIRTCHNL_VF_OFFLOAD_RSS_REG |\n-\t       I40E_VIRTCHNL_VF_OFFLOAD_VLAN;\n+\t       I40E_VIRTCHNL_VF_OFFLOAD_VLAN |\n+\t       I40E_VIRTCHNL_VF_OFFLOAD_WB_ON_ITR;\n \tadapter->current_op = I40E_VIRTCHNL_OP_GET_VF_RESOURCES;\n \tadapter->aq_required &= ~I40EVF_FLAG_AQ_GET_CONFIG;\n \tif (PF_IS_V11(adapter))\n",
    "prefixes": [
        "next",
        "S15",
        "06/15"
    ]
}