aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/sja1105/sja1105_ptp.h
diff options
context:
space:
mode:
authorVladimir Oltean <olteanv@gmail.com>2019-12-27 15:02:29 +0200
committerDavid S. Miller <davem@davemloft.net>2019-12-30 20:31:40 -0800
commit1e762bd278d2a70bc74b9cbee7f1e93bd4704fe2 (patch)
tree7a2bdf256904c6451026dc8bc7c614c8a8831781 /drivers/net/dsa/sja1105/sja1105_ptp.h
parentptp: introduce ptp_cancel_worker_sync (diff)
downloadlinux-dev-1e762bd278d2a70bc74b9cbee7f1e93bd4704fe2.tar.xz
linux-dev-1e762bd278d2a70bc74b9cbee7f1e93bd4704fe2.zip
net: dsa: sja1105: Use PTP core's dedicated kernel thread for RX timestamping
And move the queue of skb's waiting for RX timestamps into the ptp_data structure, since it isn't needed if PTP is not compiled. Signed-off-by: Vladimir Oltean <olteanv@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/sja1105/sja1105_ptp.h')
-rw-r--r--drivers/net/dsa/sja1105/sja1105_ptp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/sja1105/sja1105_ptp.h b/drivers/net/dsa/sja1105/sja1105_ptp.h
index 470f44b76318..6f4a19eec709 100644
--- a/drivers/net/dsa/sja1105/sja1105_ptp.h
+++ b/drivers/net/dsa/sja1105/sja1105_ptp.h
@@ -30,6 +30,7 @@ struct sja1105_ptp_cmd {
};
struct sja1105_ptp_data {
+ struct sk_buff_head skb_rxtstamp_queue;
struct ptp_clock_info caps;
struct ptp_clock *clock;
struct sja1105_ptp_cmd cmd;