Thread (10 messages) 10 messages, 5 authors, 2021-12-17

Re: [RFC PATCH v2 net-next] net: Preserve skb delivery time during forward

flat view

From: Julian Anastasov <ja@ssi.bg>
Date: 2021-12-15 22:07:52

	Hello,

On Wed, 15 Dec 2021, Martin KaFai Lau wrote:
quoted hunk ↗ jump to hunk
diff --git a/net/ipv4/ip_forward.c b/net/ipv4/ip_forward.c
index 00ec819f949b..f216fc97c6ce 100644
--- a/net/ipv4/ip_forward.c
+++ b/net/ipv4/ip_forward.c
@@ -79,7 +79,7 @@ static int ip_forward_finish(struct net *net, struct sock *sk, struct sk_buff *s
 	if (unlikely(opt->optlen))
 		ip_forward_options(skb);
 
-	skb->tstamp = 0;
+	skb_scrub_tstamp(skb);
	Just to let you know, you can consider all places in
net/netfilter/ipvs/ip_vs_xmit.c that reset tstamp as a forwarding path
like this one.
 	return dst_output(net, sk, skb);
 }
Regards

--
Julian Anastasov [off-list ref]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help