All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net] ipv4: Fix updating SOF_TIMESTAMPING_OPT_ID when SKBTX_HW_TSTAMP is enabled
@ 2019-04-28  5:45 Stephen Mallon
  2019-04-28 15:19 ` Richard Cochran
  0 siblings, 1 reply; 7+ messages in thread
From: Stephen Mallon @ 2019-04-28  5:45 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev, stephen.mallon

Ensure that the unique timestamp identifier is incremented for skb hardware
timestamps, not just software timestamps.

Signed-off-by: Stephen Mallon <stephen.mallon@sydney.edu.au>
---
 net/ipv4/ip_output.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c
index c80188875f39..96ef1d467ba7 100644
--- a/net/ipv4/ip_output.c
+++ b/net/ipv4/ip_output.c
@@ -891,7 +891,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 = sk->sk_tskey++;
 
-- 
2.18.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-04-30  2:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-28  5:45 [PATCH net] ipv4: Fix updating SOF_TIMESTAMPING_OPT_ID when SKBTX_HW_TSTAMP is enabled Stephen Mallon
2019-04-28 15:19 ` Richard Cochran
2019-04-29  2:57   ` Willem de Bruijn
2019-04-29 15:02     ` Richard Cochran
2019-04-29 15:32       ` Willem de Bruijn
2019-04-30  1:17         ` Stephen Mallon
2019-04-30  2:54           ` Richard Cochran

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.