OpenCloudOS-Kernel/drivers/net/phy/mscc
Hangbin Liu 9c9211a3fc net_tstamp: add new flag HWTSTAMP_FLAG_BONDED_PHC_INDEX
Since commit 94dd016ae5 ("bond: pass get_ts_info and SIOC[SG]HWTSTAMP
ioctl to active device") the user could get bond active interface's
PHC index directly. But when there is a failover, the bond active
interface will change, thus the PHC index is also changed. This may
break the user's program if they did not update the PHC timely.

This patch adds a new hwtstamp_config flag HWTSTAMP_FLAG_BONDED_PHC_INDEX.
When the user wants to get the bond active interface's PHC, they need to
add this flag and be aware the PHC index may be changed.

With the new flag. All flag checks in current drivers are removed. Only
the checking in net_hwtstamp_validate() is kept.

Suggested-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-12-14 12:28:24 +00:00
..
Makefile net: phy: mscc: improved serdes calibration applied to VSC8514 2021-02-16 14:06:18 -08:00
mscc.h net: phy: mscc: coma mode disabled for VSC8514 2021-02-16 14:06:19 -08:00
mscc_fc_buffer.h net: phy: mscc: fix copyright and author information in MACsec 2020-06-24 14:33:16 -07:00
mscc_mac.h net: phy: mscc: fix copyright and author information in MACsec 2020-06-24 14:33:16 -07:00
mscc_macsec.c net: phy: mscc: fix macsec key length 2021-06-24 12:41:12 -07:00
mscc_macsec.h net: phy: mscc: fix macsec key length 2021-06-24 12:41:12 -07:00
mscc_main.c ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
mscc_ptp.c net_tstamp: add new flag HWTSTAMP_FLAG_BONDED_PHC_INDEX 2021-12-14 12:28:24 +00:00
mscc_ptp.h net: phy: mscc: use new PTP_MSGTYPE_* defines 2020-11-25 12:23:21 -08:00
mscc_serdes.c net: phy: mscc: improved serdes calibration applied to VSC8514 2021-02-16 14:06:18 -08:00
mscc_serdes.h net: phy: mscc: improved serdes calibration applied to VSC8514 2021-02-16 14:06:18 -08:00