aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/skbuff.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/skbuff.c')
-rw-r--r--net/core/skbuff.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index 47c32413d5b9..cdb939b731aa 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -3689,9 +3689,13 @@ void __skb_tstamp_tx(struct sk_buff *orig_skb,
3689 struct sock *sk, int tstype) 3689 struct sock *sk, int tstype)
3690{ 3690{
3691 struct sk_buff *skb; 3691 struct sk_buff *skb;
3692 bool tsonly = sk->sk_tsflags & SOF_TIMESTAMPING_OPT_TSONLY; 3692 bool tsonly;
3693 3693
3694 if (!sk || !skb_may_tx_timestamp(sk, tsonly)) 3694 if (!sk)
3695 return;
3696
3697 tsonly = sk->sk_tsflags & SOF_TIMESTAMPING_OPT_TSONLY;
3698 if (!skb_may_tx_timestamp(sk, tsonly))
3695 return; 3699 return;
3696 3700
3697 if (tsonly) 3701 if (tsonly)
@@ -4129,7 +4133,7 @@ void skb_scrub_packet(struct sk_buff *skb, bool xnet)
4129 skb->ignore_df = 0; 4133 skb->ignore_df = 0;
4130 skb_dst_drop(skb); 4134 skb_dst_drop(skb);
4131 skb->mark = 0; 4135 skb->mark = 0;
4132 skb->sender_cpu = 0; 4136 skb_sender_cpu_clear(skb);
4133 skb_init_secmark(skb); 4137 skb_init_secmark(skb);
4134 secpath_reset(skb); 4138 secpath_reset(skb);
4135 nf_reset(skb); 4139 nf_reset(skb);