]> git.itanic.dy.fi Git - linux-stable/commit
bonding: add software tx timestamping support
authorHangbin Liu <liuhangbin@gmail.com>
Tue, 18 Apr 2023 03:48:41 +0000 (11:48 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 19 Apr 2023 03:48:59 +0000 (20:48 -0700)
commit980f0799a15c75403f1f9284a32b6056b9660144
treea5885d266365df31a7d546988cf67271e5014d89
parentdce46f1b0cab9f31c6b57c40ea06236b001ae323
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>
drivers/net/bonding/bond_main.c
include/linux/ethtool.h