get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1199188,
    "url": "http://patchwork.ozlabs.org/api/patches/1199188/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20191122020224.1102649-5-vinicius.gomes@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": "<20191122020224.1102649-5-vinicius.gomes@intel.com>",
    "list_archive_url": null,
    "date": "2019-11-22T02:02:24",
    "name": "[next-queue,v1,4/4] igc: Add support for ethtool GET_TS_INFO command",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "74fce920fd69003b54958dded63a1ddac8573834",
    "submitter": {
        "id": 72272,
        "url": "http://patchwork.ozlabs.org/api/people/72272/?format=api",
        "name": "Vinicius Costa Gomes",
        "email": "vinicius.gomes@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/20191122020224.1102649-5-vinicius.gomes@intel.com/mbox/",
    "series": [
        {
            "id": 144449,
            "url": "http://patchwork.ozlabs.org/api/series/144449/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=144449",
            "date": "2019-11-22T02:02:20",
            "name": "igc: Add basic support for Timestamping/PTP",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/144449/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1199188/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1199188/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; spf=pass (sender SPF authorized)\n\tsmtp.mailfrom=osuosl.org (client-ip=140.211.166.138;\n\thelo=whitealder.osuosl.org;\n\tenvelope-from=intel-wired-lan-bounces@osuosl.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdmarc=fail (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 ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 47K07J598pz9sPc\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 22 Nov 2019 13:02:36 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id EFDEA84016;\n\tFri, 22 Nov 2019 02:02:33 +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 vSOLhXOzkweA; Fri, 22 Nov 2019 02:02:32 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id DC5E2811DF;\n\tFri, 22 Nov 2019 02:02:32 +0000 (UTC)",
            "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id EE08F1BF33D\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri, 22 Nov 2019 02:02:31 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id E8FB88723E\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri, 22 Nov 2019 02:02:31 +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 7durTzRWCaZR for <intel-wired-lan@lists.osuosl.org>;\n\tFri, 22 Nov 2019 02:02:31 +0000 (UTC)",
            "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n\tby fraxinus.osuosl.org (Postfix) with ESMTPS id 731078724A\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri, 22 Nov 2019 02:02:31 +0000 (UTC)",
            "from fmsmga008.fm.intel.com ([10.253.24.58])\n\tby fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t21 Nov 2019 18:02:30 -0800",
            "from vcostago-desk1.jf.intel.com ([10.54.70.26])\n\tby fmsmga008.fm.intel.com with ESMTP; 21 Nov 2019 18:02:30 -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.69,228,1571727600\"; d=\"scan'208\";a=\"205264943\"",
        "From": "Vinicius Costa Gomes <vinicius.gomes@intel.com>",
        "To": "intel-wired-lan@lists.osuosl.org",
        "Date": "Thu, 21 Nov 2019 18:02:24 -0800",
        "Message-Id": "<20191122020224.1102649-5-vinicius.gomes@intel.com>",
        "X-Mailer": "git-send-email 2.24.0",
        "In-Reply-To": "<20191122020224.1102649-1-vinicius.gomes@intel.com>",
        "References": "<20191122020224.1102649-1-vinicius.gomes@intel.com>",
        "MIME-Version": "1.0",
        "Subject": "[Intel-wired-lan] [next-queue PATCH v1 4/4] igc: Add support for\n\tethtool GET_TS_INFO command",
        "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\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>",
        "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": "This command allows igc to report what types of timestamping are\nsupported. ptp4l uses this to detect if the hardware supports\ntimestamping.\n\nSigned-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>\n---\n drivers/net/ethernet/intel/igc/igc_ethtool.c | 34 ++++++++++++++++++++\n 1 file changed, 34 insertions(+)",
    "diff": "diff --git a/drivers/net/ethernet/intel/igc/igc_ethtool.c b/drivers/net/ethernet/intel/igc/igc_ethtool.c\nindex ac98f1d96892..8f8a702b3dd4 100644\n--- a/drivers/net/ethernet/intel/igc/igc_ethtool.c\n+++ b/drivers/net/ethernet/intel/igc/igc_ethtool.c\n@@ -1600,6 +1600,39 @@ static int igc_set_channels(struct net_device *netdev,\n \treturn 0;\n }\n \n+static int igc_get_ts_info(struct net_device *dev,\n+\t\t\t   struct ethtool_ts_info *info)\n+{\n+\tstruct igc_adapter *adapter = netdev_priv(dev);\n+\n+\tif (adapter->ptp_clock)\n+\t\tinfo->phc_index = ptp_clock_index(adapter->ptp_clock);\n+\telse\n+\t\tinfo->phc_index = -1;\n+\n+\tswitch (adapter->hw.mac.type) {\n+\tcase igc_i225:\n+\t\tinfo->so_timestamping =\n+\t\t\tSOF_TIMESTAMPING_TX_SOFTWARE |\n+\t\t\tSOF_TIMESTAMPING_RX_SOFTWARE |\n+\t\t\tSOF_TIMESTAMPING_SOFTWARE |\n+\t\t\tSOF_TIMESTAMPING_TX_HARDWARE |\n+\t\t\tSOF_TIMESTAMPING_RX_HARDWARE |\n+\t\t\tSOF_TIMESTAMPING_RAW_HARDWARE;\n+\n+\t\tinfo->tx_types =\n+\t\t\tBIT(HWTSTAMP_TX_OFF) |\n+\t\t\tBIT(HWTSTAMP_TX_ON);\n+\n+\t\tinfo->rx_filters = BIT(HWTSTAMP_FILTER_NONE);\n+\t\tinfo->rx_filters |= BIT(HWTSTAMP_FILTER_ALL);\n+\n+\t\treturn 0;\n+\tdefault:\n+\t\treturn -EOPNOTSUPP;\n+\t}\n+}\n+\n static u32 igc_get_priv_flags(struct net_device *netdev)\n {\n \tstruct igc_adapter *adapter = netdev_priv(netdev);\n@@ -1847,6 +1880,7 @@ static const struct ethtool_ops igc_ethtool_ops = {\n \t.get_rxfh_indir_size\t= igc_get_rxfh_indir_size,\n \t.get_rxfh\t\t= igc_get_rxfh,\n \t.set_rxfh\t\t= igc_set_rxfh,\n+\t.get_ts_info            = igc_get_ts_info,\n \t.get_channels\t\t= igc_get_channels,\n \t.set_channels\t\t= igc_set_channels,\n \t.get_priv_flags\t\t= igc_get_priv_flags,\n",
    "prefixes": [
        "next-queue",
        "v1",
        "4/4"
    ]
}