get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1303256,
    "url": "http://patchwork.ozlabs.org/api/patches/1303256/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20200604000105.15059-4-andre.guedes@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": "<20200604000105.15059-4-andre.guedes@intel.com>",
    "list_archive_url": null,
    "date": "2020-06-04T00:01:02",
    "name": "[3/6] igc: Check __IGC_PTP_TX_IN_PROGRESS instead of ptp_tx_skb",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "a276c2ed673e29a0839098bf0fe1113420c78042",
    "submitter": {
        "id": 72323,
        "url": "http://patchwork.ozlabs.org/api/people/72323/?format=api",
        "name": "Andre Guedes",
        "email": "andre.guedes@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/20200604000105.15059-4-andre.guedes@intel.com/mbox/",
    "series": [
        {
            "id": 181182,
            "url": "http://patchwork.ozlabs.org/api/series/181182/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=181182",
            "date": "2020-06-04T00:01:02",
            "name": "igc: PTP timestamping fixes",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/181182/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1303256/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1303256/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 spf=pass (sender SPF authorized) smtp.mailfrom=osuosl.org\n (client-ip=140.211.166.137; helo=fraxinus.osuosl.org;\n envelope-from=intel-wired-lan-bounces@osuosl.org; receiver=<UNKNOWN>)",
            "ozlabs.org;\n dmarc=fail (p=none dis=none) header.from=intel.com"
        ],
        "Received": [
            "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 49cmCY4vDBz9sSf\n\tfor <incoming@patchwork.ozlabs.org>; Thu,  4 Jun 2020 10:01:28 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 4981B86DC9;\n\tThu,  4 Jun 2020 00:01:26 +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 ZaYE4kB2tprm; Thu,  4 Jun 2020 00:01:25 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id E931E86DC0;\n\tThu,  4 Jun 2020 00:01:24 +0000 (UTC)",
            "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n by ash.osuosl.org (Postfix) with ESMTP id 54A4F1BF9B4\n for <intel-wired-lan@lists.osuosl.org>; Thu,  4 Jun 2020 00:01:23 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n by silver.osuosl.org (Postfix) with ESMTP id 4DFC3203F2\n for <intel-wired-lan@lists.osuosl.org>; Thu,  4 Jun 2020 00:01:23 +0000 (UTC)",
            "from silver.osuosl.org ([127.0.0.1])\n by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n with ESMTP id XvslphEvoCKP for <intel-wired-lan@lists.osuosl.org>;\n Thu,  4 Jun 2020 00:01:22 +0000 (UTC)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n by silver.osuosl.org (Postfix) with ESMTPS id 4258D221B1\n for <intel-wired-lan@lists.osuosl.org>; Thu,  4 Jun 2020 00:01:22 +0000 (UTC)",
            "from orsmga006.jf.intel.com ([10.7.209.51])\n by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 03 Jun 2020 17:01:21 -0700",
            "from mrief-mobl1.amr.corp.intel.com ([10.209.62.192])\n by orsmga006.jf.intel.com with ESMTP; 03 Jun 2020 17:01:21 -0700"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "IronPort-SDR": [
            "\n rE7Bwp/TMn6HD2JUGmVUeVYuFs8cB8P6pg0n8IgQj729J+zZdcp6rkj/pj+QaC2pqqk+DOdONt\n PFR+95xhaNHw==",
            "\n A0WHN41mQckfdY10yx8cyQh6BUQxsGZcSQ5eT/TpyWomnbR59+NenEL/lzy4cJQa8L0Pycizkv\n 4UIlwEcs2QIA=="
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.73,470,1583222400\"; d=\"scan'208\";a=\"272932800\"",
        "From": "Andre Guedes <andre.guedes@intel.com>",
        "To": "intel-wired-lan@lists.osuosl.org",
        "Date": "Wed,  3 Jun 2020 17:01:02 -0700",
        "Message-Id": "<20200604000105.15059-4-andre.guedes@intel.com>",
        "X-Mailer": "git-send-email 2.26.2",
        "In-Reply-To": "<20200604000105.15059-1-andre.guedes@intel.com>",
        "References": "<20200604000105.15059-1-andre.guedes@intel.com>",
        "MIME-Version": "1.0",
        "Subject": "[Intel-wired-lan] [PATCH 3/6] igc: Check __IGC_PTP_TX_IN_PROGRESS\n instead of ptp_tx_skb",
        "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 <intel-wired-lan.osuosl.org>",
        "List-Unsubscribe": "<https://lists.osuosl.org/mailman/options/intel-wired-lan>,\n <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 <mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>",
        "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": "The __IGC_PTP_TX_IN_PROGRESS flag indicates we have a pending tx\ntimestamp. In some places, instead of checking that flag, we check\nadapter->ptp_tx_skb. This patch fixes those places to use the flag.\n\nQuick note about igc_ptp_tx_hwtstamp() change: when that function is\ncalled, adapter->ptp_tx_skb is expected to be valid always so we\nWARN_ON_ONCE() in case it is not.\n\nQuick note about igc_ptp_suspend() change: when suspending, we don't\nreally need to check if there is a pending timestamp. We can simply\nclear it unconditionally.\n\nSigned-off-by: Andre Guedes <andre.guedes@intel.com>\n---\n drivers/net/ethernet/intel/igc/igc_ptp.c | 16 +++++++---------\n 1 file changed, 7 insertions(+), 9 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/igc/igc_ptp.c b/drivers/net/ethernet/intel/igc/igc_ptp.c\nindex b1b23c6bf689..e65fdcf966b2 100644\n--- a/drivers/net/ethernet/intel/igc/igc_ptp.c\n+++ b/drivers/net/ethernet/intel/igc/igc_ptp.c\n@@ -404,9 +404,6 @@ void igc_ptp_tx_hang(struct igc_adapter *adapter)\n \tbool timeout = time_is_before_jiffies(adapter->ptp_tx_start +\n \t\t\t\t\t      IGC_PTP_TX_TIMEOUT);\n \n-\tif (!adapter->ptp_tx_skb)\n-\t\treturn;\n-\n \tif (!test_bit(__IGC_PTP_TX_IN_PROGRESS, &adapter->state))\n \t\treturn;\n \n@@ -435,6 +432,9 @@ static void igc_ptp_tx_hwtstamp(struct igc_adapter *adapter)\n \tstruct igc_hw *hw = &adapter->hw;\n \tu64 regval;\n \n+\tif (WARN_ON_ONCE(!skb))\n+\t\treturn;\n+\n \tregval = rd32(IGC_TXSTMPL);\n \tregval |= (u64)rd32(IGC_TXSTMPH) << 32;\n \tigc_ptp_systim_to_hwtstamp(adapter, &shhwtstamps, regval);\n@@ -466,7 +466,7 @@ static void igc_ptp_tx_work(struct work_struct *work)\n \tstruct igc_hw *hw = &adapter->hw;\n \tu32 tsynctxctl;\n \n-\tif (!adapter->ptp_tx_skb)\n+\tif (!test_bit(__IGC_PTP_TX_IN_PROGRESS, &adapter->state))\n \t\treturn;\n \n \tif (time_is_before_jiffies(adapter->ptp_tx_start +\n@@ -588,11 +588,9 @@ void igc_ptp_suspend(struct igc_adapter *adapter)\n \t\treturn;\n \n \tcancel_work_sync(&adapter->ptp_tx_work);\n-\tif (adapter->ptp_tx_skb) {\n-\t\tdev_kfree_skb_any(adapter->ptp_tx_skb);\n-\t\tadapter->ptp_tx_skb = NULL;\n-\t\tclear_bit_unlock(__IGC_PTP_TX_IN_PROGRESS, &adapter->state);\n-\t}\n+\tdev_kfree_skb_any(adapter->ptp_tx_skb);\n+\tadapter->ptp_tx_skb = NULL;\n+\tclear_bit_unlock(__IGC_PTP_TX_IN_PROGRESS, &adapter->state);\n }\n \n /**\n",
    "prefixes": [
        "3/6"
    ]
}