Support one PTP device per hardware clock
Status from this message: This series was applied to netdev/net-next.git (main)
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 All 15 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/15 | net/mlx5: Add helper functions for PTP callbacksdrivers/ | +22 | 2 replies | Applied |
| 2/15 | net/mlx5: Change parameters for PTP internal functionsdrivers/ | +8 | 2 replies | Applied |
| 3/15 | net/mlx5: Add init and destruction functions for a single HW clockdrivers/ | +31 | 0 replies | Applied |
| 4/15 | net/mlx5: Add API to get mlx5_core_dev from mlx5_clockdrivers/ | +18 | 0 replies | Applied |
| 5/15 | net/mlx5: Change clock in mlx5_core_dev to mlx5_clock pointerdrivers/ drivers/ drivers/ +6 more | +116 | 0 replies | Applied |
| 6/15 | net/mlx5: Add devcom component for the clock shared by functionsdrivers/ drivers/ include/ | +61 | 0 replies | Applied |
| 7/15 | net/mlx5: Move PPS notifier and out_work to clock_statedrivers/ drivers/ | +18 | 0 replies | Applied |
| 8/15 | net/mlx5: Support one PTP device per hardware clockdrivers/ drivers/ | +203 | 0 replies | Applied |
| 9/15 | net/mlx5: Generate PPS IN event on new function for shared clockdrivers/ drivers/ drivers/ | +99 | 0 replies | Applied |
| 10/15 | ethtool: Add support for 200Gbps per lane link modesdrivers/ include/ net/ | +79 | 0 replies | Applied |
| 11/15 | net/mlx5: Add support for 200Gbps per lane link modesdrivers/ drivers/ include/ | +27 | 0 replies | Applied |
| 12/15 | net/mlx5e: Support FEC settings for 200G per lane link modesdrivers/ drivers/ drivers/ | +56 | 0 replies | Applied |
| 13/15 | net/mlx5: Remove stray semicolon in LAG port selection table creationdrivers/ | +1 | 1 reply | Applied |
| 14/15 | net/mlx5e: Remove unused mlx5e_tc_flow_action structdrivers/ | +0 | 1 reply | Applied |
| 15/15 | net/mlx5e: Avoid WARN_ON when configuring MQPRIO with HTB offload enableddrivers/ | +5 | 1 reply | Applied |
Reviews trailers per patch
All 15 patches have a Reviewed-by or Acked-by.
| Patch | Carolina Jubran | Dragos Tatulea | Shahar Shitrit | Cosmin Ratiu | Yael Chemla | Kalesh AP | Mateusz Polchlopek |
|---|---|---|---|---|---|---|---|
| 1/15 | R-b | R-b | R-b | ||||
| 2/15 | R-b | R-b | |||||
| 3/15 | R-b | R-b | |||||
| 4/15 | R-b | R-b | |||||
| 5/15 | R-b | R-b | |||||
| 6/15 | R-b | R-b | |||||
| 7/15 | R-b | R-b | |||||
| 8/15 | R-b | R-b | |||||
| 9/15 | R-b | R-b | |||||
| 10/15 | R-b | ||||||
| 11/15 | R-b | ||||||
| 12/15 | R-b | ||||||
| 13/15 | R-b | ||||||
| 14/15 | R-b | R-b | |||||
| 15/15 | R-b | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 7 reviewers.
Cover letter [PATCH net-next 00/15] Support one PTP device per hardware clock
Hi,
This series contains two features from Jianbo, followed by simple cleanups.
Patches 1-9 by Jianbo add support for one PTP device per hardware clock, described below [1].
Patches 10-12 by Jianbo add support for 200Gbps per-lane link modes in kernel and mlx5 driver.
Patches 13-15 are simple cleanups by Gal and Carolina.
Regards,
Tariq
[1]
PHC (PTP hardware clock) is normally shared by multiple functions (PF/VF/SF). mlx5 driver currently creates a separate PTP device for each network interface that shares one PHC.
PHC can be configured to work as free running mode or real time mode. In this series, only one PTP device is created for the shared PHC when it is running in real time mode.
To support this feature,
* Firmware needs to support clock identity. When functions share a PHC, the clock identities they query are same.
* Driver dynamically allocates mlx5_clock to represent a PHC.
* New devcom component is added for hardware clock. Functions are grouped by the identity, and one mlx5_clock is allocated and shared by the functions with the same identity.
* When PTP device accesses PHC by its callbacks, the first function in the clock devcom list is selected to send commands to firmware.
* PPS IN event is armed on one function. It should be re-armed on the other one when current is unloaded.
Carolina Jubran (1):
net/mlx5e: Avoid WARN_ON when configuring MQPRIO with HTB offload
enabled
Gal Pressman (2):
net/mlx5: Remove stray semicolon in LAG port selection table creation net/mlx5e: Remove unused mlx5e_tc_flow_action struct
Jianbo Liu (12):
net/mlx5: Add helper functions for PTP callbacks net/mlx5: Change parameters for PTP internal functions net/mlx5: Add init and destruction functions for a single HW clock net/mlx5: Add API to get mlx5_core_dev from mlx5_clock net/mlx5: Change clock in mlx5_core_dev to mlx5_clock pointer net/mlx5: Add devcom component for the clock shared by functions net/mlx5: Move PPS notifier and out_work to clock_state net/mlx5: Support one PTP device per hardware clock net/mlx5: Generate PPS IN event on new function for shared clock
ethtool: Add support for 200Gbps per lane link modes net/mlx5: Add support for 200Gbps per lane link modes net/mlx5e: Support FEC settings for 200G per lane link modes
.../net/ethernet/mellanox/mlx5/core/en/port.c | 64 +- .../net/ethernet/mellanox/mlx5/core/en/port.h | 1 + .../net/ethernet/mellanox/mlx5/core/en/ptp.c | 4 +- .../mellanox/mlx5/core/en/tc/act/act.h | 5 - .../net/ethernet/mellanox/mlx5/core/en/trap.c | 2 +- .../net/ethernet/mellanox/mlx5/core/en/xdp.c | 4 +- .../mellanox/mlx5/core/en/xsk/setup.c | 2 +- .../ethernet/mellanox/mlx5/core/en_ethtool.c | 22 + .../net/ethernet/mellanox/mlx5/core/en_main.c | 11 +- .../mellanox/mlx5/core/lag/port_sel.c | 2 +- .../ethernet/mellanox/mlx5/core/lib/clock.c | 582 ++++++++++++++---- .../ethernet/mellanox/mlx5/core/lib/clock.h | 39 +- .../ethernet/mellanox/mlx5/core/lib/devcom.h | 1 + .../net/ethernet/mellanox/mlx5/core/main.c | 15 +- .../net/ethernet/mellanox/mlx5/core/port.c | 3 + drivers/net/phy/phy-core.c | 20 +- include/linux/mlx5/driver.h | 33 +- include/linux/mlx5/port.h | 3 + include/uapi/linux/ethtool.h | 18 + net/ethtool/common.c | 42 ++ 20 files changed, 701 insertions(+), 172 deletions(-)
base-commit: 2014c95afecee3e76ca4a56956a936e23283f05b
Signature · 1 line
2.45.0