RX software timestamp for all - round 2
Subsystems (11)
cover RX software timestamp for all - round 2
Round 1 of drivers conversion was merged [1], this is round 2, more drivers to follow.
[1] https://lore.kernel.org/netdev/[email protected]/
Thanks,
Gal
Gal Pressman (15):
lan743x: Remove setting of RX software timestamp
net: lan966x: Remove setting of RX software timestamp
net: sparx5: Remove setting of RX software timestamp
mlxsw: spectrum: Remove setting of RX software timestamp
net: ethernet: ti: am65-cpsw-ethtool: Remove setting of RX software
timestamp
net: ethernet: ti: cpsw_ethtool: Remove setting of RX software
timestamp
net: ti: icssg-prueth: Remove setting of RX software timestamp
net: netcp: Remove setting of RX software timestamp
i40e: Remove setting of RX software timestamp
ice: Remove setting of RX software timestamp
igb: Remove setting of RX software timestamp
igc: Remove setting of RX software timestamp
ixgbe: Remove setting of RX software timestamp
cxgb4: Remove setting of RX software timestamp
bnx2x: Remove setting of RX software timestamp
.../ethernet/broadcom/bnx2x/bnx2x_ethtool.c | 4 ---- .../ethernet/chelsio/cxgb4/cxgb4_ethtool.c | 11 +++------- .../net/ethernet/intel/i40e/i40e_ethtool.c | 4 ---- drivers/net/ethernet/intel/ice/ice_ethtool.c | 2 -- drivers/net/ethernet/intel/igb/igb_ethtool.c | 8 +------- drivers/net/ethernet/intel/igc/igc_ethtool.c | 4 ---- .../net/ethernet/intel/ixgbe/ixgbe_ethtool.c | 4 ---- .../net/ethernet/mellanox/mlxsw/spectrum.c | 6 ++++++ .../ethernet/mellanox/mlxsw/spectrum_ptp.h | 20 ------------------- .../net/ethernet/microchip/lan743x_ethtool.c | 4 ---- .../microchip/lan966x/lan966x_ethtool.c | 11 ++++------ .../microchip/sparx5/sparx5_ethtool.c | 11 ++++------ drivers/net/ethernet/ti/am65-cpsw-ethtool.c | 2 -- drivers/net/ethernet/ti/cpsw_ethtool.c | 7 +------ drivers/net/ethernet/ti/icssg/icssg_ethtool.c | 2 -- drivers/net/ethernet/ti/netcp_ethss.c | 7 +------ 16 files changed, 20 insertions(+), 87 deletions(-)
Signature · 1 line
2.40.1
PATCH 1/15 lan743x: Remove setting of RX software timestamp
The responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.
--- drivers/net/ethernet/microchip/lan743x_ethtool.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/net/ethernet/microchip/lan743x_ethtool.c +0 -4
@@ -1034,16 +1034,12 @@ static int lan743x_ethtool_get_ts_info(struct net_device *netdev,struct lan743x_adapter *adapter =netdev_priv (netdev); ts_info->so_timestamping =SOF_TIMESTAMPING_TX_SOFTWARE | -SOF_TIMESTAMPING_RX_SOFTWARE | -SOF_TIMESTAMPING_SOFTWARE |SOF_TIMESTAMPING_TX_HARDWARE |SOF_TIMESTAMPING_RX_HARDWARE |SOF_TIMESTAMPING_RAW_HARDWARE ;if (adapter->ptp.ptp_clock) ts_info->phc_index =ptp_clock_index (adapter->ptp.ptp_clock); -else - ts_info->phc_index =-1 ; ts_info->tx_types =BIT (HWTSTAMP_TX_OFF ) | BIT(HWTSTAMP_TX_ON) |
Signature · 1 line
2.40.1
PATCH 2/15 net: lan966x: Remove setting of RX software timestamp
In reply to Gal PressmanThe responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.
--- .../net/ethernet/microchip/lan966x/lan966x_ethtool.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-)
drivers/net/ethernet/microchip/lan966x/lan966x_ethtool.c +4 -7
@@ -549,16 +549,13 @@ static int lan966x_get_ts_info(struct net_device *dev, phc = &lan966x->phc[LAN966X_PHC_PORT ]; - info->phc_index = phc->clock ?ptp_clock_index (phc->clock) :-1 ; -if (info->phc_index ==-1 ) { - info->so_timestamping |=SOF_TIMESTAMPING_TX_SOFTWARE | -SOF_TIMESTAMPING_RX_SOFTWARE | -SOF_TIMESTAMPING_SOFTWARE ; +if (phc->clock) { + info->phc_index =ptp_clock_index (phc->clock); + }else { + info->so_timestamping |=SOF_TIMESTAMPING_TX_SOFTWARE ;return 0 ; } info->so_timestamping |=SOF_TIMESTAMPING_TX_SOFTWARE | -SOF_TIMESTAMPING_RX_SOFTWARE | -SOF_TIMESTAMPING_SOFTWARE |SOF_TIMESTAMPING_TX_HARDWARE |SOF_TIMESTAMPING_RX_HARDWARE |SOF_TIMESTAMPING_RAW_HARDWARE ;
Signature · 1 line
2.40.1
PATCH 3/15 net: sparx5: Remove setting of RX software timestamp
In reply to Gal PressmanThe responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.
--- .../net/ethernet/microchip/sparx5/sparx5_ethtool.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-)
drivers/net/ethernet/microchip/sparx5/sparx5_ethtool.c +4 -7
@@ -1194,16 +1194,13 @@ static int sparx5_get_ts_info(struct net_device *dev, phc = &sparx5->phc[SPARX5_PHC_PORT ]; - info->phc_index = phc->clock ?ptp_clock_index (phc->clock) :-1 ; -if (info->phc_index ==-1 ) { - info->so_timestamping |=SOF_TIMESTAMPING_TX_SOFTWARE | -SOF_TIMESTAMPING_RX_SOFTWARE | -SOF_TIMESTAMPING_SOFTWARE ; +if (phc->clock) { + info->phc_index =ptp_clock_index (phc->clock); + }else { + info->so_timestamping |=SOF_TIMESTAMPING_TX_SOFTWARE ;return 0 ; } info->so_timestamping |=SOF_TIMESTAMPING_TX_SOFTWARE | -SOF_TIMESTAMPING_RX_SOFTWARE | -SOF_TIMESTAMPING_SOFTWARE |SOF_TIMESTAMPING_TX_HARDWARE |SOF_TIMESTAMPING_RX_HARDWARE |SOF_TIMESTAMPING_RAW_HARDWARE ;
Signature · 1 line
2.40.1
PATCH 4/15 mlxsw: spectrum: Remove setting of RX software timestamp
In reply to Gal PressmanThe responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.
--- .../net/ethernet/mellanox/mlxsw/spectrum.c | 6 ++++++ .../ethernet/mellanox/mlxsw/spectrum_ptp.h | 20 ------------------- 2 files changed, 6 insertions(+), 20 deletions(-)
drivers/net/ethernet/mellanox/mlxsw/spectrum.c +6 -0
@@ -2784,7 +2784,9 @@ static const struct mlxsw_sp_ptp_ops mlxsw_sp1_ptp_ops = { .hwtstamp_get = mlxsw_sp1_ptp_hwtstamp_get, .hwtstamp_set = mlxsw_sp1_ptp_hwtstamp_set, .shaper_work = mlxsw_sp1_ptp_shaper_work, +#if IS_REACHABLE(CONFIG_PTP_1588_CLOCK) .get_ts_info = mlxsw_sp1_ptp_get_ts_info, +#endif .get_stats_count = mlxsw_sp1_get_stats_count, .get_stats_strings = mlxsw_sp1_get_stats_strings, .get_stats = mlxsw_sp1_get_stats,
@@ -2801,7 +2803,9 @@ static const struct mlxsw_sp_ptp_ops mlxsw_sp2_ptp_ops = { .hwtstamp_get = mlxsw_sp2_ptp_hwtstamp_get, .hwtstamp_set = mlxsw_sp2_ptp_hwtstamp_set, .shaper_work = mlxsw_sp2_ptp_shaper_work, +#if IS_REACHABLE(CONFIG_PTP_1588_CLOCK) .get_ts_info = mlxsw_sp2_ptp_get_ts_info, +#endif .get_stats_count = mlxsw_sp2_get_stats_count, .get_stats_strings = mlxsw_sp2_get_stats_strings, .get_stats = mlxsw_sp2_get_stats,
@@ -2818,7 +2822,9 @@ static const struct mlxsw_sp_ptp_ops mlxsw_sp4_ptp_ops = { .hwtstamp_get = mlxsw_sp2_ptp_hwtstamp_get, .hwtstamp_set = mlxsw_sp2_ptp_hwtstamp_set, .shaper_work = mlxsw_sp2_ptp_shaper_work, +#if IS_REACHABLE(CONFIG_PTP_1588_CLOCK) .get_ts_info = mlxsw_sp2_ptp_get_ts_info, +#endif .get_stats_count = mlxsw_sp2_get_stats_count, .get_stats_strings = mlxsw_sp2_get_stats_strings, .get_stats = mlxsw_sp2_get_stats,
drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.h +0 -20
@@ -11,14 +11,6 @@ struct mlxsw_sp;struct mlxsw_sp_port ;struct mlxsw_sp_ptp_clock ; -static inline int mlxsw_sp_ptp_get_ts_info_noptp (struct kernel_ethtool_ts_info *info) -{ - info->so_timestamping =SOF_TIMESTAMPING_RX_SOFTWARE | -SOF_TIMESTAMPING_SOFTWARE ; - info->phc_index =-1 ; -return 0 ; -} -#if IS_REACHABLE (CONFIG_PTP_1588_CLOCK ) struct mlxsw_sp_ptp_clock *
@@ -151,12 +143,6 @@ static inline void mlxsw_sp1_ptp_shaper_work(struct work_struct *work) { } -static inline int mlxsw_sp1_ptp_get_ts_info (struct mlxsw_sp *mlxsw_sp, -struct kernel_ethtool_ts_info *info) -{ -return mlxsw_sp_ptp_get_ts_info_noptp (info); -} -static inline int mlxsw_sp1_get_stats_count (void ) {return 0 ;
@@ -226,12 +212,6 @@ mlxsw_sp2_ptp_hwtstamp_set(struct mlxsw_sp_port *mlxsw_sp_port,return -EOPNOTSUPP ; } -static inline int mlxsw_sp2_ptp_get_ts_info (struct mlxsw_sp *mlxsw_sp, -struct kernel_ethtool_ts_info *info) -{ -return mlxsw_sp_ptp_get_ts_info_noptp (info); -} - static inline int mlxsw_sp2_ptp_txhdr_construct(struct mlxsw_core *mlxsw_core, struct mlxsw_sp_port *mlxsw_sp_port,
Signature · 1 line
2.40.1
PATCH 5/15 net: ethernet: ti: am65-cpsw-ethtool: Remove setting of RX software timestamp
In reply to Gal PressmanThe responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.
--- drivers/net/ethernet/ti/am65-cpsw-ethtool.c | 2 -- 1 file changed, 2 deletions(-)
drivers/net/ethernet/ti/am65-cpsw-ethtool.c +0 -2
@@ -714,8 +714,6 @@ static int am65_cpsw_get_ethtool_ts_info(struct net_device *ndev,SOF_TIMESTAMPING_TX_HARDWARE |SOF_TIMESTAMPING_TX_SOFTWARE |SOF_TIMESTAMPING_RX_HARDWARE | -SOF_TIMESTAMPING_RX_SOFTWARE | -SOF_TIMESTAMPING_SOFTWARE |SOF_TIMESTAMPING_RAW_HARDWARE ; info->phc_index =am65_cpts_phc_index (common->cpts); info->tx_types =BIT (HWTSTAMP_TX_OFF ) |BIT (HWTSTAMP_TX_ON );
Signature · 1 line
2.40.1
PATCH 6/15 net: ethernet: ti: cpsw_ethtool: Remove setting of RX software timestamp
In reply to Gal PressmanThe responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.
--- drivers/net/ethernet/ti/cpsw_ethtool.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/net/ethernet/ti/cpsw_ethtool.c +1 -6
@@ -725,8 +725,6 @@ int cpsw_get_ts_info(struct net_device *ndev, struct kernel_ethtool_ts_info *infSOF_TIMESTAMPING_TX_HARDWARE |SOF_TIMESTAMPING_TX_SOFTWARE |SOF_TIMESTAMPING_RX_HARDWARE | -SOF_TIMESTAMPING_RX_SOFTWARE | -SOF_TIMESTAMPING_SOFTWARE |SOF_TIMESTAMPING_RAW_HARDWARE ; info->phc_index = cpsw->cpts->phc_index; info->tx_types =
@@ -741,10 +739,7 @@ int cpsw_get_ts_info(struct net_device *ndev, struct kernel_ethtool_ts_info *infint cpsw_get_ts_info (struct net_device *ndev,struct kernel_ethtool_ts_info *info) { info->so_timestamping = -SOF_TIMESTAMPING_TX_SOFTWARE | -SOF_TIMESTAMPING_RX_SOFTWARE | -SOF_TIMESTAMPING_SOFTWARE ; - info->phc_index =-1 ; +SOF_TIMESTAMPING_TX_SOFTWARE ; info->tx_types =0 ; info->rx_filters =0 ;return 0 ;
Signature · 1 line
2.40.1
PATCH 7/15 net: ti: icssg-prueth: Remove setting of RX software timestamp
In reply to Gal PressmanThe responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.
--- drivers/net/ethernet/ti/icssg/icssg_ethtool.c | 2 -- 1 file changed, 2 deletions(-)
drivers/net/ethernet/ti/icssg/icssg_ethtool.c +0 -2
@@ -118,8 +118,6 @@ static int emac_get_ts_info(struct net_device *ndev,SOF_TIMESTAMPING_TX_HARDWARE |SOF_TIMESTAMPING_TX_SOFTWARE |SOF_TIMESTAMPING_RX_HARDWARE | -SOF_TIMESTAMPING_RX_SOFTWARE | -SOF_TIMESTAMPING_SOFTWARE |SOF_TIMESTAMPING_RAW_HARDWARE ; info->phc_index =icss_iep_get_ptp_clock_idx (emac->iep);
Signature · 1 line
2.40.1
PATCH 8/15 net: netcp: Remove setting of RX software timestamp
In reply to Gal PressmanThe responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.
--- drivers/net/ethernet/ti/netcp_ethss.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/net/ethernet/ti/netcp_ethss.c +1 -6
@@ -2012,8 +2012,6 @@ static int keystone_get_ts_info(struct net_device *ndev,SOF_TIMESTAMPING_TX_HARDWARE |SOF_TIMESTAMPING_TX_SOFTWARE |SOF_TIMESTAMPING_RX_HARDWARE | -SOF_TIMESTAMPING_RX_SOFTWARE | -SOF_TIMESTAMPING_SOFTWARE |SOF_TIMESTAMPING_RAW_HARDWARE ; info->phc_index = gbe_intf->gbe_dev->cpts->phc_index; info->tx_types =
@@ -2030,10 +2028,7 @@ static int keystone_get_ts_info(struct net_device *ndev, struct kernel_ethtool_ts_info *info) { info->so_timestamping = -SOF_TIMESTAMPING_TX_SOFTWARE | -SOF_TIMESTAMPING_RX_SOFTWARE | -SOF_TIMESTAMPING_SOFTWARE ; - info->phc_index =-1 ; +SOF_TIMESTAMPING_TX_SOFTWARE ; info->tx_types =0 ; info->rx_filters =0 ;return 0 ;
Signature · 1 line
2.40.1
PATCH 9/15 i40e: Remove setting of RX software timestamp
In reply to Gal PressmanThe responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.
--- drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/net/ethernet/intel/i40e/i40e_ethtool.c +0 -4
@@ -2555,16 +2555,12 @@ static int i40e_get_ts_info(struct net_device *dev,return ethtool_op_get_ts_info (dev, info); info->so_timestamping =SOF_TIMESTAMPING_TX_SOFTWARE | -SOF_TIMESTAMPING_RX_SOFTWARE | -SOF_TIMESTAMPING_SOFTWARE |SOF_TIMESTAMPING_TX_HARDWARE |SOF_TIMESTAMPING_RX_HARDWARE |SOF_TIMESTAMPING_RAW_HARDWARE ;if (pf->ptp_clock) info->phc_index =ptp_clock_index (pf->ptp_clock); -else - info->phc_index =-1 ; info->tx_types =BIT (HWTSTAMP_TX_OFF ) |BIT (HWTSTAMP_TX_ON );
Signature · 1 line
2.40.1
PATCH 10/15 ice: Remove setting of RX software timestamp
In reply to Gal PressmanThe responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.
--- drivers/net/ethernet/intel/ice/ice_ethtool.c | 2 -- 1 file changed, 2 deletions(-)
drivers/net/ethernet/intel/ice/ice_ethtool.c +0 -2
@@ -3792,8 +3792,6 @@ ice_get_ts_info(struct net_device *dev, struct kernel_ethtool_ts_info *info)return ethtool_op_get_ts_info (dev, info); info->so_timestamping =SOF_TIMESTAMPING_TX_SOFTWARE | -SOF_TIMESTAMPING_RX_SOFTWARE | -SOF_TIMESTAMPING_SOFTWARE |SOF_TIMESTAMPING_TX_HARDWARE |SOF_TIMESTAMPING_RX_HARDWARE |SOF_TIMESTAMPING_RAW_HARDWARE ;
Signature · 1 line
2.40.1
PATCH 11/15 igb: Remove setting of RX software timestamp
In reply to Gal PressmanThe responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.
--- drivers/net/ethernet/intel/igb/igb_ethtool.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)
drivers/net/ethernet/intel/igb/igb_ethtool.c +1 -7
@@ -2387,15 +2387,11 @@ static int igb_get_ts_info(struct net_device *dev,if (adapter->ptp_clock) info->phc_index =ptp_clock_index (adapter->ptp_clock); -else - info->phc_index =-1 ;switch (adapter->hw.mac.type) {case e1000_82575: info->so_timestamping = -SOF_TIMESTAMPING_TX_SOFTWARE | -SOF_TIMESTAMPING_RX_SOFTWARE | -SOF_TIMESTAMPING_SOFTWARE ; +SOF_TIMESTAMPING_TX_SOFTWARE ;return 0 ;case e1000_82576:case e1000_82580:
@@ -2405,8 +2401,6 @@ static int igb_get_ts_info(struct net_device *dev,case e1000_i211: info->so_timestamping =SOF_TIMESTAMPING_TX_SOFTWARE | -SOF_TIMESTAMPING_RX_SOFTWARE | -SOF_TIMESTAMPING_SOFTWARE |SOF_TIMESTAMPING_TX_HARDWARE |SOF_TIMESTAMPING_RX_HARDWARE |SOF_TIMESTAMPING_RAW_HARDWARE ;
Signature · 1 line
2.40.1
PATCH 12/15 igc: Remove setting of RX software timestamp
In reply to Gal PressmanThe responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.
--- drivers/net/ethernet/intel/igc/igc_ethtool.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/net/ethernet/intel/igc/igc_ethtool.c +0 -4
@@ -1565,15 +1565,11 @@ static int igc_ethtool_get_ts_info(struct net_device *dev,if (adapter->ptp_clock) info->phc_index =ptp_clock_index (adapter->ptp_clock); -else - info->phc_index =-1 ;switch (adapter->hw.mac.type) {case igc_i225: info->so_timestamping =SOF_TIMESTAMPING_TX_SOFTWARE | -SOF_TIMESTAMPING_RX_SOFTWARE | -SOF_TIMESTAMPING_SOFTWARE |SOF_TIMESTAMPING_TX_HARDWARE |SOF_TIMESTAMPING_RX_HARDWARE |SOF_TIMESTAMPING_RAW_HARDWARE ;
Signature · 1 line
2.40.1
PATCH 13/15 ixgbe: Remove setting of RX software timestamp
In reply to Gal PressmanThe responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.
--- drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c +0 -4
@@ -3196,16 +3196,12 @@ static int ixgbe_get_ts_info(struct net_device *dev, info->so_timestamping =SOF_TIMESTAMPING_TX_SOFTWARE | -SOF_TIMESTAMPING_RX_SOFTWARE | -SOF_TIMESTAMPING_SOFTWARE |SOF_TIMESTAMPING_TX_HARDWARE |SOF_TIMESTAMPING_RX_HARDWARE |SOF_TIMESTAMPING_RAW_HARDWARE ;if (adapter->ptp_clock) info->phc_index =ptp_clock_index (adapter->ptp_clock); -else - info->phc_index =-1 ; info->tx_types = BIT(HWTSTAMP_TX_OFF) |
Signature · 1 line
2.40.1
PATCH 14/15 cxgb4: Remove setting of RX software timestamp
In reply to Gal PressmanThe responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.
--- drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-)
drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c +3 -8
@@ -1556,12 +1556,9 @@ static int get_ts_info(struct net_device *dev, struct kernel_ethtool_ts_info *tsstruct adapter *adapter = pi->adapter; ts_info->so_timestamping =SOF_TIMESTAMPING_TX_SOFTWARE | -SOF_TIMESTAMPING_RX_SOFTWARE | -SOF_TIMESTAMPING_SOFTWARE ; - - ts_info->so_timestamping |=SOF_TIMESTAMPING_RX_HARDWARE | -SOF_TIMESTAMPING_TX_HARDWARE | -SOF_TIMESTAMPING_RAW_HARDWARE ; +SOF_TIMESTAMPING_RX_HARDWARE | +SOF_TIMESTAMPING_TX_HARDWARE | +SOF_TIMESTAMPING_RAW_HARDWARE ; ts_info->tx_types = (1 <<HWTSTAMP_TX_OFF ) | (1 <<HWTSTAMP_TX_ON );
@@ -1575,8 +1572,6 @@ static int get_ts_info(struct net_device *dev, struct kernel_ethtool_ts_info *tsif (adapter->ptp_clock) ts_info->phc_index =ptp_clock_index (adapter->ptp_clock); -else - ts_info->phc_index =-1 ;return 0 ; }
Signature · 1 line
2.40.1
PATCH 15/15 bnx2x: Remove setting of RX software timestamp
In reply to Gal PressmanThe responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.
--- drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c +0 -4
@@ -3640,16 +3640,12 @@ static int bnx2x_get_ts_info(struct net_device *dev,if (bp->flags &PTP_SUPPORTED ) { info->so_timestamping =SOF_TIMESTAMPING_TX_SOFTWARE | -SOF_TIMESTAMPING_RX_SOFTWARE | -SOF_TIMESTAMPING_SOFTWARE |SOF_TIMESTAMPING_TX_HARDWARE |SOF_TIMESTAMPING_RX_HARDWARE |SOF_TIMESTAMPING_RAW_HARDWARE ;if (bp->ptp_clock) info->phc_index =ptp_clock_index (bp->ptp_clock); -else - info->phc_index =-1 ; info->rx_filters = (1 <<HWTSTAMP_FILTER_NONE ) | (1 << HWTSTAMP_FILTER_PTP_V1_L4_EVENT) |
Signature · 1 line
2.40.1
Re: [PATCH net-next 07/15] net: ti: icssg-prueth: Remove setting of RX software timestamp
In reply to Gal PressmanQuoted 8 lines · Gal Pressman
The responsibility for reporting of RX software timestamp has moved to the core layer (see
__ethtool_get_ts_info()), remove usage from the device drivers.Reviewed-by Carolina Jubran <[email protected]>Reviewed-by Rahul Rameshbabu <[email protected]>Signed-off-by Gal Pressman <[email protected]>Reviewed-by Roger Quadros <[email protected]>
For TI ICSSG driver
Signature · 2 lines
Thanks and Regards, Danish
This series was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:
Hello:
This series was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:
Quoted 9 lines · On Wed, 4 Sep 2024 10:49:07 +0300 you wrote:
Round 1 of drivers conversion was merged [1], this is round 2, more drivers to follow.
[1] https://lore.kernel.org/netdev/[email protected]/
Thanks,
Gal[...]
Here is the summary with links:
- [net-next,01/15] lan743x: Remove setting of RX software timestamp
https://git.kernel.org/netdev/net-next/c/b9c4d16e2a47 - [net-next,02/15] net: lan966x: Remove setting of RX software timestamp https://git.kernel.org/netdev/net-next/c/f592435d132c - [net-next,03/15] net: sparx5: Remove setting of RX software timestamp https://git.kernel.org/netdev/net-next/c/35461b6d5802 - [net-next,04/15] mlxsw: spectrum: Remove setting of RX software timestamp https://git.kernel.org/netdev/net-next/c/8a26d9471766 - [net-next,05/15] net: ethernet: ti: am65-cpsw-ethtool: Remove setting of RX software timestamp https://git.kernel.org/netdev/net-next/c/f40a3712ef1b - [net-next,06/15] net: ethernet: ti: cpsw_ethtool: Remove setting of RX software timestamp https://git.kernel.org/netdev/net-next/c/c76e2f40b7d9 - [net-next,07/15] net: ti: icssg-prueth: Remove setting of RX software timestamp https://git.kernel.org/netdev/net-next/c/c5dbb6aeefbd - [net-next,08/15] net: netcp: Remove setting of RX software timestamp https://git.kernel.org/netdev/net-next/c/f9b74d602ee3 - [net-next,09/15] i40e: Remove setting of RX software timestamp https://git.kernel.org/netdev/net-next/c/5df20ce03ef4 - [net-next,10/15] ice: Remove setting of RX software timestamp https://git.kernel.org/netdev/net-next/c/6aebd824f45a - [net-next,11/15] igb: Remove setting of RX software timestamp https://git.kernel.org/netdev/net-next/c/638effa35d68 - [net-next,12/15] igc: Remove setting of RX software timestamp https://git.kernel.org/netdev/net-next/c/29d2e49a62c1 - [net-next,13/15] ixgbe: Remove setting of RX software timestamp https://git.kernel.org/netdev/net-next/c/12283fad6d2e - [net-next,14/15] cxgb4: Remove setting of RX software timestamp https://git.kernel.org/netdev/net-next/c/4c6d910e0254 - [net-next,15/15] bnx2x: Remove setting of RX software timestamp https://git.kernel.org/netdev/net-next/c/26f74155df44
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html