Go to file
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
Documentation dt-bindings: net: Add ICSSG Ethernet 2023-08-02 10:38:11 +01:00
LICENSES
arch riscv: dts: allwinner: d1: Add CAN controller nodes 2023-07-28 08:47:18 +02:00
block block-6.5-2023-07-21 2023-07-22 11:05:15 -07:00
certs
crypto
drivers net: remove phy_has_hwtstamp() -> phy_mii_ioctl() decision from converted drivers 2023-08-02 19:11:06 -07:00
fs Networking fixes for 6.5-rc4, including fixes from can, netfilter 2023-07-27 12:27:37 -07:00
include net: remove phy_has_hwtstamp() -> phy_mii_ioctl() decision from converted drivers 2023-08-02 19:11:06 -07:00
init
io_uring io_uring-6.5-2023-07-21 2023-07-22 10:46:30 -07:00
ipc
kernel tcx: Fix splat during dev unregister 2023-07-31 14:44:02 -07:00
lib netfilter net-next pull request 2023-07-27 2023-07-27 20:25:43 -07:00
mm memblock: reset memblock.reserved to system init state to prevent UAF 2023-07-27 11:37:34 -07:00
net net: remove phy_has_hwtstamp() -> phy_mii_ioctl() decision from converted drivers 2023-08-02 19:11:06 -07:00
rust
samples
scripts Kbuild fixes for v6.5 2023-07-23 14:55:41 -07:00
security Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-07-20 15:52:55 -07:00
sound ASoC: Fixes for v6.5 2023-07-20 15:16:11 +02:00
tools selftests/net: report rcv_mss in tcp_mmap 2023-08-02 11:40:49 +01:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap Including fixes from BPF, netfilter, bluetooth and CAN. 2023-07-20 14:46:39 -07:00
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS net: phy: provide phylib stubs for hardware timestamping operations 2023-08-02 19:11:06 -07:00
Makefile Linux 6.5-rc3 2023-07-23 15:24:10 -07:00
README

README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.