linux-stable/drivers/net/ethernet/microchip/sparx5
Vladimir Oltean fd770e856e net: remove phy_has_hwtstamp() -> phy_mii_ioctl() decision from converted drivers
It is desirable that the new .ndo_hwtstamp_set() API gives more
uniformity, less overhead and future flexibility w.r.t. the PHY
timestamping behavior.

Currently there are some drivers which allow PHY timestamping through
the procedure mentioned in Documentation/networking/timestamping.rst.
They don't do anything locally if phy_has_hwtstamp() is set, except for
lan966x which installs PTP packet traps.

Centralize that behavior in a new dev_set_hwtstamp_phylib() code
function, which calls either phy_mii_ioctl() for the phylib PHY,
or .ndo_hwtstamp_set() of the netdev, based on a single policy
(currently simplistic: phy_has_hwtstamp()).

Any driver converted to .ndo_hwtstamp_set() will automatically opt into
the centralized phylib timestamping policy. Unconverted drivers still
get to choose whether they let the PHY handle timestamping or not.

Netdev drivers with integrated PHY drivers that don't use phylib
presumably don't set dev->phydev, and those will always see
HWTSTAMP_SOURCE_NETDEV requests even when converted. The timestamping
policy will remain 100% up to them.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Link: https://lore.kernel.org/r/20230801142824.1772134-13-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-08-02 19:11:06 -07:00
..
Kconfig net: microchip: sparx5: add support for offloading pcp table 2022-11-03 15:16:50 +01:00
Makefile net: microchip: sparx5: add support for PSFP flow-meters 2023-02-06 08:26:25 +00:00
sparx5_calendar.c
sparx5_dcb.c net: microchip: sparx5: fix deletion of existing DSCP mappings 2023-03-08 13:07:59 +00:00
sparx5_ethtool.c net: microchip: sparx5: Fix potential null-ptr-deref in sparx_stats_init() and sparx5_start() 2022-11-16 09:10:29 +00:00
sparx5_fdma.c net: microchip: sparx5: correctly free skb in xmit 2022-12-05 11:33:09 +00:00
sparx5_mactable.c net: sparx5: fix function return type to match actual type 2022-09-08 15:00:56 +02:00
sparx5_main.c net: sparx5: update PCS driver to use neg_mode 2023-06-22 19:41:02 -07:00
sparx5_main.h net: sparx5: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set() 2023-08-02 19:11:06 -07:00
sparx5_main_regs.h net: microchip: sparx5: Updated register interface with VCAP ES0 access 2023-02-16 08:59:48 +01:00
sparx5_netdev.c net: remove phy_has_hwtstamp() -> phy_mii_ioctl() decision from converted drivers 2023-08-02 19:11:06 -07:00
sparx5_packet.c net: microchip: sparx5: correctly free skb in xmit 2022-12-05 11:33:09 +00:00
sparx5_pgid.c net: sparx5: Refactor mdb handling according to feedback 2022-03-25 15:45:14 -07:00
sparx5_phylink.c net: sparx5: update PCS driver to use neg_mode 2023-06-22 19:41:02 -07:00
sparx5_police.c net: microchip: sparx5: add support for service policers 2023-02-06 08:26:25 +00:00
sparx5_pool.c net: microchip: sparx5: add resource pools 2023-02-06 08:26:25 +00:00
sparx5_port.c net: microchip: sparx5: Discard frames with SMAC multicast addresses 2023-02-16 08:59:48 +01:00
sparx5_port.h net: microchip: sparx5: add support for DSCP rewrite 2023-01-20 09:33:22 +00:00
sparx5_psfp.c net: microchip: sparx5: initialize PSFP 2023-02-06 08:26:26 +00:00
sparx5_ptp.c net: sparx5: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set() 2023-08-02 19:11:06 -07:00
sparx5_qos.c net: microchip: sparx5: initialize PSFP 2023-02-06 08:26:26 +00:00
sparx5_qos.h net: microchip: sparx5: add support for offloading ets qdisc 2022-09-23 09:53:10 +01:00
sparx5_sdlb.c net: microchip: sparx5: add support for Service Dual Leacky Buckets 2023-02-06 08:26:25 +00:00
sparx5_switchdev.c net: sparx5: add support for mrouter ports 2022-08-29 12:57:38 +01:00
sparx5_tc.c net/sched: move struct tc_mqprio_qopt_offload from pkt_cls.h to pkt_sched.h 2023-02-06 10:06:43 +00:00
sparx5_tc.h net: microchip: sparx5: Add TC vlan action support for the ES0 VCAP 2023-02-16 08:59:49 +01:00
sparx5_tc_flower.c net: flow_dissector: Use 64bits for used_keys 2023-07-31 09:11:24 +01:00
sparx5_tc_matchall.c net: microchip: vcap api: Use src and dst chain id to chain VCAP lookups 2023-01-16 13:45:17 +00:00
sparx5_vcap_ag_api.c net: microchip: sparx5: Add ES0 VCAP model and updated KUNIT VCAP model 2023-02-16 08:59:48 +01:00
sparx5_vcap_ag_api.h net: microchip: sparx5: Adding IS2 VCAP model to VCAP API 2022-10-24 10:37:42 +01:00
sparx5_vcap_debugfs.c net: microchip: sparx5: Correct the spelling of the keysets in debugfs 2023-03-08 13:19:43 +00:00
sparx5_vcap_debugfs.h net: microchip: sparx5: Add VCAP debugFS support 2022-11-21 11:33:02 +00:00
sparx5_vcap_impl.c net: microchip: sparx5: Add port keyset changing functionality 2023-03-08 13:19:43 +00:00
sparx5_vcap_impl.h net: microchip: sparx5: Add port keyset changing functionality 2023-03-08 13:19:43 +00:00
sparx5_vlan.c net: microchip: sparx5: Egress VLAN TPID configuration follows IFH 2023-02-16 08:59:48 +01:00