Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3471716pxy; Mon, 26 Apr 2021 02:33:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwC9lpVZwDy5g+yD81GaiQdJGACVpZBBcDy1McoBXMNAlYCXjzCwfCAWyH8ntIjUECRb/rn X-Received: by 2002:a50:9feb:: with SMTP id c98mr20390732edf.104.1619429621419; Mon, 26 Apr 2021 02:33:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619429621; cv=none; d=google.com; s=arc-20160816; b=tLpR/l+id+q9wvEe9a9Y6UwEMd+pqP0RorpcVkA9HFfiowGbUElNF3QrB1yvx3vDVi P6Ofpco32vJ14mS0FewKUnKuQeE7BacitkxhkM8uz6KPJX5d4pYsLGD6VMXbFDIAwdWl nRhZdxdQZHAKe+17t7FU7HrIcZgg4jEpfk7b/4HmGowMupg12LJRep1MoD6yoM7vJk51 oD42CmBP6lO0Tr3UgehVGQIEm1CxQzmTVTpcNFPxhZbtT8iPj0Gz9UjuzOs9/umNTQZI 8g4EnORrsTuq6bScL6CVulTzzydbsNaLbO8qCYHdrrWXouvtEBArlK/TjoraY6vGKIMb dLOw== 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=2MwDZAdkCiH7HkAYMXB0nWleiTpN17veHrM43+SYTDc=; b=xZZqcRlsNwGO2Q+h9sKyx1KdHZyPhNPAzHLRX83DpYgcmDO0excvpmSb5PJMirL7Lx jIraKhv257aOtQ7qikw1wRXRHsEPPxwlgnNg2sgSXZTdQ10V0S/RKDa+NUpzsEWRrgiR TJVZPUoCBXwJbctqO0lGT2tB5wGYFy36uHEfyB/urbJ8dOgQPr2ZossnfMm/y7ApAlCZ 4/iXIMYpSxNG3zuKnzd+g4NgWHms80Ny5IM+jplD/ZtBlBP+isZsImTFyz894F0IQ94t Cgpemh5stsTr3qBcTWAGlosElY5ZvwLcMcI5A+BSC8LImM2BsGSD6+ut5aJdexzSoP9w EfKQ== 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 lj7si305652ejb.700.2021.04.26.02.33.17; Mon, 26 Apr 2021 02:33:41 -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 S232679AbhDZJdH (ORCPT + 99 others); Mon, 26 Apr 2021 05:33:07 -0400 Received: from inva020.nxp.com ([92.121.34.13]:42476 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232592AbhDZJc7 (ORCPT ); Mon, 26 Apr 2021 05:32:59 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 4AC1D1A3502; Mon, 26 Apr 2021 11:32:05 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 32DBD1A34EF; Mon, 26 Apr 2021 11:31:59 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 5B0D5402F3; Mon, 26 Apr 2021 11:31:51 +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, v2, 0/7] Support Ocelot PTP Sync one-step timestamping Date: Mon, 26 Apr 2021 17:37:55 +0800 Message-Id: <20210426093802.38652-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. Yangbo Lu (7): net: dsa: check tx timestamp request in core driver net: dsa: no longer identify PTP packet in core driver net: dsa: free skb->cb usage in core driver net: dsa: no longer clone skb 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: 0ea1041bfa3aa2971f858edd9e05477c2d3d54a0 -- 2.25.1