Commit f0efd790 authored by Alessandro Rubini's avatar Alessandro Rubini

SQUASH wr_nic: fix rx timestamps in nic-core.c

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 6f7d5d72
...@@ -447,7 +447,7 @@ static void __wrn_rx_descriptor(struct wrn_dev *wrn, int desc) ...@@ -447,7 +447,7 @@ static void __wrn_rx_descriptor(struct wrn_dev *wrn, int desc)
} }
/* If the timestamp was reported as incorrect, pass 0 instead */ /* If the timestamp was reported as incorrect, pass 0 instead */
if (! (r1 & NIC_RX1_D1_TS_INCORRECT)) { if (!(r1 & NIC_RX1_D1_TS_INCORRECT)) {
hwts = skb_hwtstamps(skb); hwts = skb_hwtstamps(skb);
hwts->hwtstamp = timespec_to_ktime(ts); hwts->hwtstamp = timespec_to_ktime(ts);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment