get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 883391,
    "url": "http://patchwork.ozlabs.org/api/patches/883391/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20180308225211.12254-7-jeffrey.t.kirsher@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": "<20180308225211.12254-7-jeffrey.t.kirsher@intel.com>",
    "list_archive_url": null,
    "date": "2018-03-08T22:52:11",
    "name": "[S87,v5,7/7] i40e: restore TCPv4 input set when re-enabling ATR",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "a444c315b5b9d142bdc647152ccd435789687d30",
    "submitter": {
        "id": 473,
        "url": "http://patchwork.ozlabs.org/api/people/473/?format=api",
        "name": "Kirsher, Jeffrey T",
        "email": "jeffrey.t.kirsher@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/20180308225211.12254-7-jeffrey.t.kirsher@intel.com/mbox/",
    "series": [
        {
            "id": 32763,
            "url": "http://patchwork.ozlabs.org/api/series/32763/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=32763",
            "date": "2018-03-08T22:52:05",
            "name": "[S87,v5,1/7] i40e: Fix attach VF to VM issue",
            "version": 5,
            "mbox": "http://patchwork.ozlabs.org/series/32763/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/883391/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/883391/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;\n\tspf=pass (mailfrom) smtp.mailfrom=osuosl.org\n\t(client-ip=140.211.166.138; helo=whitealder.osuosl.org;\n\tenvelope-from=intel-wired-lan-bounces@osuosl.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdmarc=none (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 AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3zy5P04FWCz9scY\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri,  9 Mar 2018 09:52:04 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 2C13B89375;\n\tThu,  8 Mar 2018 22:52:03 +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 XKKNN7sBBRjm; Thu,  8 Mar 2018 22:52:02 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 431AD891C5;\n\tThu,  8 Mar 2018 22:52:02 +0000 (UTC)",
            "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\tby ash.osuosl.org (Postfix) with ESMTP id A2F971CF0CE\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu,  8 Mar 2018 22:51:52 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id 9F8332290C\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu,  8 Mar 2018 22:51:52 +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 5Qp21Lmvj6H1 for <intel-wired-lan@lists.osuosl.org>;\n\tThu,  8 Mar 2018 22:51:47 +0000 (UTC)",
            "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby silver.osuosl.org (Postfix) with ESMTPS id 0A33322744\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu,  8 Mar 2018 22:51:47 +0000 (UTC)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t08 Mar 2018 14:51:46 -0800",
            "from jtkirshe-nuc.jf.intel.com ([134.134.177.59])\n\tby orsmga001.jf.intel.com with ESMTP; 08 Mar 2018 14:51:46 -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.47,442,1515484800\"; d=\"scan'208\";a=\"37164048\"",
        "From": "Jeff Kirsher <jeffrey.t.kirsher@intel.com>",
        "To": "intel-wired-lan@lists.osuosl.org",
        "Date": "Thu,  8 Mar 2018 14:52:11 -0800",
        "Message-Id": "<20180308225211.12254-7-jeffrey.t.kirsher@intel.com>",
        "X-Mailer": "git-send-email 2.14.3",
        "In-Reply-To": "<20180308225211.12254-1-jeffrey.t.kirsher@intel.com>",
        "References": "<20180308225211.12254-1-jeffrey.t.kirsher@intel.com>",
        "Subject": "[Intel-wired-lan] [S87 v5 7/7] i40e: restore TCPv4 input set when\n\tre-enabling ATR",
        "X-BeenThere": "intel-wired-lan@osuosl.org",
        "X-Mailman-Version": "2.1.24",
        "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": "From: Jacob Keller <jacob.e.keller@intel.com>\n\nWhen we re-enable ATR we need to restore the input set for TCPv4\nfilters, in order for ATR to function correctly. We already do this for\nthe normal case of re-enabling ATR when disabling ntuple support.\nHowever, when re-enabling ATR after the last tcp4 filter is removed (but\nwhen ntuple support is still active), we did not restore the TCPv4\nfilter input set.\n\nThis can cause problems if the TCPv4 filters from FDir had changed the\ninput set, as ATR will no longer behave as expected.\n\nWhen clearing the ATR auto-disable flag, make sure we restore the TCPv4\ninput set to avoid this.\n\nSigned-off-by: Jacob Keller <jacob.e.keller@intel.com>\n---\n drivers/net/ethernet/intel/i40e/i40e_main.c | 9 +++++++++\n 1 file changed, 9 insertions(+)",
    "diff": "diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c\nindex 89bcfd1c3213..0df21e4f2a0f 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_main.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c\n@@ -8157,6 +8157,15 @@ static void i40e_reenable_fdir_sb(struct i40e_pf *pf)\n static void i40e_reenable_fdir_atr(struct i40e_pf *pf)\n {\n \tif (pf->flags & I40E_FLAG_FD_ATR_AUTO_DISABLED) {\n+\t\t/* ATR uses the same filtering logic as SB rules. It only\n+\t\t * functions properly if the input set mask is at the default\n+\t\t * settings. It is safe to restore the default input set\n+\t\t * because there are no active TCPv4 filter rules.\n+\t\t */\n+\t\ti40e_write_fd_input_set(pf, I40E_FILTER_PCTYPE_NONF_IPV4_TCP,\n+\t\t\t\t\tI40E_L3_SRC_MASK | I40E_L3_DST_MASK |\n+\t\t\t\t\tI40E_L4_SRC_MASK | I40E_L4_DST_MASK);\n+\n \t\tpf->flags &= ~I40E_FLAG_FD_ATR_AUTO_DISABLED;\n \t\tif ((pf->flags & I40E_FLAG_FD_ATR_ENABLED) &&\n \t\t    (I40E_DEBUG_FD & pf->hw.debug_mask))\n",
    "prefixes": [
        "S87",
        "v5",
        "7/7"
    ]
}