summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/freescale/dpaa/dpaa_eth.h
diff options
context:
space:
mode:
authorYangbo Lu <yangbo.lu@nxp.com>2018-06-25 20:37:15 +0800
committerDavid S. Miller <davem@davemloft.net>2018-06-26 22:15:14 +0900
commit4664856e9ca2e5061718d639bac2741464cf3d23 (patch)
tree77d0feaa33d4298da8b63c8850c1d659f55d80b6 /drivers/net/ethernet/freescale/dpaa/dpaa_eth.h
parentdcce36ab7130a6ed46e9a9cce8b7452bffd95966 (diff)
dpaa_eth: add support for hardware timestamping
This patch is to add hardware timestamping support for dpaa_eth. On Rx, timestamping is enabled for all frames. On Tx, we only instruct the hardware to timestamp the frames marked accordingly by the stack. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com> Acked-by: Richard Cochran <richardcochran@gmail.com> Acked-by: Madalin Bucur <madalin.bucur@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/dpaa/dpaa_eth.h')
-rw-r--r--drivers/net/ethernet/freescale/dpaa/dpaa_eth.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.h b/drivers/net/ethernet/freescale/dpaa/dpaa_eth.h
index bd9422082f83..af320f83c742 100644
--- a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.h
+++ b/drivers/net/ethernet/freescale/dpaa/dpaa_eth.h
@@ -182,6 +182,9 @@ struct dpaa_priv {
struct dpaa_buffer_layout buf_layout[2];
u16 rx_headroom;
+
+ bool tx_tstamp; /* Tx timestamping enabled */
+ bool rx_tstamp; /* Rx timestamping enabled */
};
/* from dpaa_ethtool.c */