summaryrefslogtreecommitdiffstats
path: root/.cocciconfig
diff options
context:
space:
mode:
authorHangbin Liu <liuhangbin@gmail.com>2024-06-20 10:56:26 +0200
committerDavid S. Miller <davem@davemloft.net>2024-06-21 12:27:46 +0200
commita95b031c6796bf9972da2d4b4b524a57734f3a0a (patch)
tree1238f98809ee5631d5f820f931ea166e9f23c0fb /.cocciconfig
parentnet: mvpp2: fill-in dev_port attribute (diff)
downloadlinux-a95b031c6796bf9972da2d4b4b524a57734f3a0a.tar.xz
linux-a95b031c6796bf9972da2d4b4b524a57734f3a0a.zip
bonding: fix incorrect software timestamping report
The __ethtool_get_ts_info function returns directly if the device has a get_ts_info() method. For bonding with an active slave, this works correctly as we simply return the real device's timestamping information. However, when there is no active slave, we only check the slave's TX software timestamp information. We still need to set the phc index and RX timestamp information manually. Otherwise, the result will be look like: Time stamping parameters for bond0: Capabilities: software-transmit PTP Hardware Clock: 0 Hardware Transmit Timestamp Modes: none Hardware Receive Filter Modes: none This issue does not affect VLAN or MACVLAN devices, as they only have one downlink and can directly use the downlink's timestamping information. Fixes: b8768dc40777 ("net: ethtool: Refactor identical get_ts_info implementations.") Reported-by: Liang Li <liali@redhat.com> Closes: https://issues.redhat.com/browse/RHEL-42409 Signed-off-by: Hangbin Liu <liuhangbin@gmail.com> Acked-by: Kory Maincent <kory.maincent@bootlin.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '.cocciconfig')
0 files changed, 0 insertions, 0 deletions