Re: [PATCH net 2/2] tcp: mark skbs with SCM_TIMESTAMPING_OPT_STATS

2017-03-21 Thread David Miller
From: Soheil Hassas Yeganeh Date: Sat, 18 Mar 2017 17:03:00 -0400 > From: Soheil Hassas Yeganeh > > SOF_TIMESTAMPING_OPT_STATS can be enabled and disabled > while packets are collected on the error queue. > So, checking SOF_TIMESTAMPING_OPT_STATS in sk->sk_tsflags > is not enough to safely assu

[PATCH net 2/2] tcp: mark skbs with SCM_TIMESTAMPING_OPT_STATS

2017-03-18 Thread Soheil Hassas Yeganeh
From: Soheil Hassas Yeganeh SOF_TIMESTAMPING_OPT_STATS can be enabled and disabled while packets are collected on the error queue. So, checking SOF_TIMESTAMPING_OPT_STATS in sk->sk_tsflags is not enough to safely assume that the skb contains OPT_STATS data. Add a bit in sock_exterr_skb to indica