mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
bonding: add software tx timestamping support
Currently, bonding only obtain the timestamp (ts) information of the active slave, which is available only for modes 1, 5, and 6. For other modes, bonding only has software rx timestamping support. However, some users who use modes such as LACP also want tx timestamp support. To address this issue, let's check the ts information of each slave. If all slaves support tx timestamping, we can enable tx timestamping support for the bond. Add a note that the get_ts_info may be called with RCU, or rtnl or reference on the device in ethtool.h> Suggested-by: Miroslav Lichvar <mlichvar@redhat.com> Signed-off-by: Hangbin Liu <liuhangbin@gmail.com> Acked-by: Jay Vosburgh <jay.vosburgh@canonical.com> Link: https://lore.kernel.org/r/20230418034841.2566262-1-liuhangbin@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
dce46f1b0c
commit
980f0799a1
@@ -711,6 +711,7 @@ struct ethtool_mm_stats {
|
||||
* @get_dump_data: Get dump data.
|
||||
* @set_dump: Set dump specific flags to the device.
|
||||
* @get_ts_info: Get the time stamping and PTP hardware clock capabilities.
|
||||
* It may be called with RCU, or rtnl or reference on the device.
|
||||
* Drivers supporting transmit time stamps in software should set this to
|
||||
* ethtool_op_get_ts_info().
|
||||
* @get_module_info: Get the size and type of the eeprom contained within
|
||||
|
Reference in New Issue
Block a user