mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
packet: remove deprecated syststamp timestamp
No device driver will ever return an skb_shared_info structure with syststamp non-zero, so remove the branch that tests for this and optionally marks the packet timestamp as TP_STATUS_TS_SYS_HARDWARE. Do not remove the definition TP_STATUS_TS_SYS_HARDWARE, as processes may refer to it. Signed-off-by: Willem de Bruijn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
ce75058821
commit
68a360e82e
3 changed files with 11 additions and 21 deletions
|
|
@ -441,14 +441,10 @@ static __u32 tpacket_get_timestamp(struct sk_buff *skb, struct timespec *ts,
|
|||
{
|
||||
struct skb_shared_hwtstamps *shhwtstamps = skb_hwtstamps(skb);
|
||||
|
||||
if (shhwtstamps) {
|
||||
if ((flags & SOF_TIMESTAMPING_SYS_HARDWARE) &&
|
||||
ktime_to_timespec_cond(shhwtstamps->syststamp, ts))
|
||||
return TP_STATUS_TS_SYS_HARDWARE;
|
||||
if ((flags & SOF_TIMESTAMPING_RAW_HARDWARE) &&
|
||||
ktime_to_timespec_cond(shhwtstamps->hwtstamp, ts))
|
||||
return TP_STATUS_TS_RAW_HARDWARE;
|
||||
}
|
||||
if (shhwtstamps &&
|
||||
(flags & SOF_TIMESTAMPING_RAW_HARDWARE) &&
|
||||
ktime_to_timespec_cond(shhwtstamps->hwtstamp, ts))
|
||||
return TP_STATUS_TS_RAW_HARDWARE;
|
||||
|
||||
if (ktime_to_timespec_cond(skb->tstamp, ts))
|
||||
return TP_STATUS_TS_SOFTWARE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue