Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4176217pxy; Mon, 26 Apr 2021 21:13:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgISyLdG5g+cuEAR9F+FAeGV3+kpViGARvQl6Y25BMoniSAO3raewOsuJbFvlVGqoKwWtp X-Received: by 2002:a62:7d46:0:b029:247:baa2:d95c with SMTP id y67-20020a627d460000b0290247baa2d95cmr20930888pfc.15.1619496799021; Mon, 26 Apr 2021 21:13:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619496799; cv=none; d=google.com; s=arc-20160816; b=zJBuTvcm+sFJDrnkap9sFAUd6D7AuTkmNshrgkUSLK6hT7sxuL/b6QX0ydr4jNCFZW gTDzwchMQOAxBaNjksd0fDPvhwP3Ewq2UlG6GfOZ1zz/QWy/sf8lcS8D6qW2SELfHtoU Bv1Fseb898hK/M7Ms0c+nj0NRli6IjgdkJH7wY/BlZaCv6K2dV6PSWZnP90cDLtRzdPu Gy5GWJqEvQz8XB6X93XfE0cVEwZ17jcXje1yf5ojfsktnJWfwKKX6Q3rHrvo1arqaD2C zFYmNAVVDLMLhF1zzqYu3Ad195WXupb8cMf9SI6XLDDjMuZh4+Tnyd8VaI5FkpU4f5qa HpuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=XeseM5q7e/MPCG/ZIcSsE+UjUrNFXvGHX6vTkWxplJ8=; b=ai38LIiw4I+Y9rOy3HxrGHLaGvw0kw1L43Z14L+eK8BUyI8uUub3xtCAd0e9NGP6C2 /3pP6fGkPpQ7qOgknAClJB04Ca8rQp5ScDKgiL0FGhh6hAtHE9biqpzSOqI47USM9J52 Fmnoy9rcbzKaxu3rplKQTL4VpZtewBoxLCVKAljZooR8P8guXDvnqwWDhOnPykudklh+ gbvVx7CeGEC0tKPYeme5fCsqaRa1gR21a1F1jrqexxftsWNoEdwGGtUo7HWqa0ezL4Ri VHGiTewbJQAMH16d4bzWD+cLPxANH4McejxkYJaXPd0aTLQ7UpVHVRS7EGRgkexUVmKU diTg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j5si20257106pgb.340.2021.04.26.21.12.53; Mon, 26 Apr 2021 21:13:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229613AbhD0EMY (ORCPT + 99 others); Tue, 27 Apr 2021 00:12:24 -0400 Received: from inva021.nxp.com ([92.121.34.21]:45128 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229501AbhD0EMX (ORCPT ); Tue, 27 Apr 2021 00:12:23 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id C1D1220187C; Tue, 27 Apr 2021 06:11:39 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id AC6C6201879; Tue, 27 Apr 2021 06:11:33 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 34E984029D; Tue, 27 Apr 2021 06:11:26 +0200 (CEST) From: Yangbo Lu To: netdev@vger.kernel.org Cc: Yangbo Lu , Richard Cochran , Vladimir Oltean , "David S . Miller" , Jakub Kicinski , Jonathan Corbet , Kurt Kanzenbach , Andrew Lunn , Vivien Didelot , Florian Fainelli , Claudiu Manoil , Alexandre Belloni , UNGLinuxDriver@microchip.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [net-next, v3, 0/7] Support Ocelot PTP Sync one-step timestamping Date: Tue, 27 Apr 2021 12:21:56 +0800 Message-Id: <20210427042203.26258-1-yangbo.lu@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch-set is to support Ocelot PTP Sync one-step timestamping. Actually before that, this patch-set cleans up and optimizes the DSA slave tx timestamp request handling process. Changes for v2: - Split tx timestamp optimization patch. - Updated doc patch. - Freed skb->cb usage in dsa core driver, and moved to device drivers. - Other minor fixes. Changes for v3: - Switched sequence of patch #3 and #4 with rebasing to fix build. - Replaced hard coded 48 of memset(skb->cb, 0, 48) with sizeof(). Yangbo Lu (7): net: dsa: check tx timestamp request in core driver net: dsa: no longer identify PTP packet in core driver net: dsa: no longer clone skb in core driver net: dsa: free skb->cb usage in core driver docs: networking: timestamping: update for DSA switches net: mscc: ocelot: convert to ocelot_port_txtstamp_request() net: mscc: ocelot: support PTP Sync one-step timestamping Documentation/networking/timestamping.rst | 63 ++++++++------ .../net/dsa/hirschmann/hellcreek_hwtstamp.c | 28 ++++--- .../net/dsa/hirschmann/hellcreek_hwtstamp.h | 4 +- drivers/net/dsa/mv88e6xxx/hwtstamp.c | 26 ++++-- drivers/net/dsa/mv88e6xxx/hwtstamp.h | 10 +-- drivers/net/dsa/ocelot/felix.c | 19 +++-- drivers/net/dsa/sja1105/sja1105_main.c | 2 +- drivers/net/dsa/sja1105/sja1105_ptp.c | 16 ++-- drivers/net/dsa/sja1105/sja1105_ptp.h | 4 +- drivers/net/ethernet/mscc/ocelot.c | 83 +++++++++++++++++-- drivers/net/ethernet/mscc/ocelot_net.c | 20 ++--- include/linux/dsa/sja1105.h | 3 +- include/net/dsa.h | 18 +--- include/soc/mscc/ocelot.h | 21 ++++- net/dsa/Kconfig | 2 + net/dsa/slave.c | 23 +---- net/dsa/tag_ocelot.c | 27 +----- net/dsa/tag_ocelot_8021q.c | 41 +++------ 18 files changed, 230 insertions(+), 180 deletions(-) base-commit: 6d72e7c767acbbdd44ebc7d89c6690b405b32b57 -- 2.25.1