Message ID | 20220130095422.7432-1-gerhard@engleder-embedded.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 678dfd5280341d877ca646499bfdc82a3d8b4356 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net-next] selftests/net: timestamping: Fix bind_phc check | expand |
Hello: This patch was applied to netdev/net-next.git (master) by David S. Miller <davem@davemloft.net>: On Sun, 30 Jan 2022 10:54:22 +0100 you wrote: > From: Gerhard Engleder <gerhard@engleder-embedded.com> > > timestamping checks socket options during initialisation. For the field > bind_phc of the socket option SO_TIMESTAMPING it expects the value -1 if > PHC is not bound. Actually the value of bind_phc is 0 if PHC is not > bound. This results in the following output: > > [...] Here is the summary with links: - [net-next] selftests/net: timestamping: Fix bind_phc check https://git.kernel.org/netdev/net-next/c/678dfd528034 You are awesome, thank you!
diff --git a/tools/testing/selftests/net/timestamping.c b/tools/testing/selftests/net/timestamping.c index aee631c5284e..044bc0e9ed81 100644 --- a/tools/testing/selftests/net/timestamping.c +++ b/tools/testing/selftests/net/timestamping.c @@ -325,8 +325,8 @@ int main(int argc, char **argv) struct ifreq device; struct ifreq hwtstamp; struct hwtstamp_config hwconfig, hwconfig_requested; - struct so_timestamping so_timestamping_get = { 0, -1 }; - struct so_timestamping so_timestamping = { 0, -1 }; + struct so_timestamping so_timestamping_get = { 0, 0 }; + struct so_timestamping so_timestamping = { 0, 0 }; struct sockaddr_in addr; struct ip_mreq imr; struct in_addr iaddr;