summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/freescale/enetc/Kconfig
diff options
context:
space:
mode:
authorY.b. Lu <yangbo.lu@nxp.com>2019-05-23 02:33:29 +0000
committerDavid S. Miller <davem@davemloft.net>2019-05-24 13:16:32 -0700
commitd398231219116da5697bbe090e478dd68a2259ed (patch)
treeee9ed557c74d819836a8fe8827919fc0d11885fa /drivers/net/ethernet/freescale/enetc/Kconfig
parentdfb569f2b96e2075bdf80883677d40d86f6b19db (diff)
enetc: add hardware timestamping support
This patch is to add hardware timestamping support for ENETC. On Rx, timestamping is enabled for all frames. On Tx, we only instruct the hardware to timestamp the frames marked accordingly by the stack. Because the RX BD ring dynamic allocation has not been supported and it is too expensive to use extended RX BDs if timestamping is not used, a Kconfig option is used to enable extended RX BDs in order to support hardware timestamping. This option will be removed once RX BD ring dynamic allocation is implemented. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com> Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/enetc/Kconfig')
-rw-r--r--drivers/net/ethernet/freescale/enetc/Kconfig10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/enetc/Kconfig b/drivers/net/ethernet/freescale/enetc/Kconfig
index 8429f5c1d810..ed0d010c7cf2 100644
--- a/drivers/net/ethernet/freescale/enetc/Kconfig
+++ b/drivers/net/ethernet/freescale/enetc/Kconfig
@@ -29,3 +29,13 @@ config FSL_ENETC_PTP_CLOCK
packets using the SO_TIMESTAMPING API.
If compiled as module (M), the module name is fsl-enetc-ptp.
+
+config FSL_ENETC_HW_TIMESTAMPING
+ bool "ENETC hardware timestamping support"
+ depends on FSL_ENETC || FSL_ENETC_VF
+ help
+ Enable hardware timestamping support on the Ethernet packets
+ using the SO_TIMESTAMPING API. Because the RX BD ring dynamic
+ allocation has not been supported and it is too expensive to use
+ extended RX BDs if timestamping is not used, this option enables
+ extended RX BDs in order to support hardware timestamping.