Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1203360/?format=api
{ "id": 1203360, "url": "http://patchwork.ozlabs.org/api/patches/1203360/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20191202231953.2203397-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": "<20191202231953.2203397-5-vinicius.gomes@intel.com>", "list_archive_url": null, "date": "2019-12-02T23:19:52", "name": "[next-queue,v3,4/5] igc: Add support for ethtool GET_TS_INFO command", "commit_ref": null, "pull_url": null, "state": "accepted", "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/20191202231953.2203397-5-vinicius.gomes@intel.com/mbox/", "series": [ { "id": 146115, "url": "http://patchwork.ozlabs.org/api/series/146115/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=146115", "date": "2019-12-02T23:19:53", "name": "igc: Add basic support for Timestamping/PTP", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/146115/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1203360/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1203360/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.133;\n\thelo=hemlock.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 hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\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 47Rh0y5RTyz9sRV\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 3 Dec 2019 10:20:18 +1100 (AEDT)", "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 275548822B;\n\tMon, 2 Dec 2019 23:20:17 +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 PnkAIxEPNIYz; Mon, 2 Dec 2019 23:20:15 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id EA31888221;\n\tMon, 2 Dec 2019 23:20:15 +0000 (UTC)", "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id 7BC921BF391\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 2 Dec 2019 23:20:13 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 78F3386031\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 2 Dec 2019 23:20:13 +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 E3BfDKALnNzn for <intel-wired-lan@lists.osuosl.org>;\n\tMon, 2 Dec 2019 23:20:12 +0000 (UTC)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby fraxinus.osuosl.org (Postfix) with ESMTPS id E41C386329\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 2 Dec 2019 23:20:07 +0000 (UTC)", "from orsmga006.jf.intel.com ([10.7.209.51])\n\tby orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t02 Dec 2019 15:19:53 -0800", "from vcostago-desk1.jf.intel.com ([10.54.70.26])\n\tby orsmga006.jf.intel.com with ESMTP; 02 Dec 2019 15:19:55 -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,270,1571727600\"; d=\"scan'208\";a=\"213201673\"", "From": "Vinicius Costa Gomes <vinicius.gomes@intel.com>", "To": "intel-wired-lan@lists.osuosl.org", "Date": "Mon, 2 Dec 2019 15:19:52 -0800", "Message-Id": "<20191202231953.2203397-5-vinicius.gomes@intel.com>", "X-Mailer": "git-send-email 2.24.0", "In-Reply-To": "<20191202231953.2203397-1-vinicius.gomes@intel.com>", "References": "<20191202231953.2203397-1-vinicius.gomes@intel.com>", "MIME-Version": "1.0", "Subject": "[Intel-wired-lan] [next-queue PATCH v3 4/5] 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", "v3", "4/5" ] }