net-timestamp: extend SOF_TIMESTAMPING_OPT_ID to HW timestamps
Subsystems (3)
PATCH 1/1 net-timestamp: extend SOF_TIMESTAMPING_OPT_ID to HW timestamps
When the feature was added it was enabled for SW timestamps only but with current hardware the same out-of-order timestamps can be seen. Let's expand the area for the feature to all types of timestamps.
--- net/ipv4/ip_output.c | 2 +- net/ipv6/ip6_output.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
net/ipv4/ip_output.c +1 -1
@@ -990,7 +990,7 @@ static int __ip_append_data(struct sock *sk, mtu = cork->gso_size ?IP_MAX_MTU : cork->fragsize; paged = !!cork->gso_size; -if (cork->tx_flags &SKBTX_ANY_SW_TSTAMP && +if (cork->tx_flags &SKBTX_ANY_TSTAMP && sk->sk_tsflags &SOF_TIMESTAMPING_OPT_ID ) tskey =atomic_inc_return (&sk->sk_tskey) -1 ;
net/ipv6/ip6_output.c +1 -1
@@ -1500,7 +1500,7 @@ static int __ip6_append_data(struct sock *sk, mtu = cork->gso_size ?IP6_MAX_MTU : cork->fragsize; orig_mtu = mtu; -if (cork->tx_flags &SKBTX_ANY_SW_TSTAMP && +if (cork->tx_flags &SKBTX_ANY_TSTAMP && sk->sk_tsflags &SOF_TIMESTAMPING_OPT_ID ) tskey =atomic_inc_return (&sk->sk_tskey) -1 ;
Signature · 1 line
2.30.2
Quoted 5 lines · Vadim Fedorenko
When the feature was added it was enabled for SW timestamps only but with current hardware the same out-of-order timestamps can be seen. Let's expand the area for the feature to all types of timestamps.
Signed-off-by Vadim Fedorenko <[email protected]>
This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:
Quoted 9 lines · On Mon, 6 Mar 2023 08:07:38 -0800 you wrote:
When the feature was added it was enabled for SW timestamps only but with current hardware the same out-of-order timestamps can be seen. Let's expand the area for the feature to all types of timestamps.
Signed-off-by Vadim Fedorenko <[email protected]>--- net/ipv4/ip_output.c | 2 +- net/ipv6/ip6_output.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Here is the summary with links:
- [net-next] net-timestamp: extend SOF_TIMESTAMPING_OPT_ID to HW timestamps
https://git.kernel.org/netdev/net-next/c/8ca5a5790b9a
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html