From 1c17216ee5b1902d82b121da2388bd57f49c4b62 Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Sun, 12 Jun 2011 02:18:58 +0000 Subject: net: export time stamp utility function for Ethernet MAC drivers The network stack provides the function, skb_clone_tx_timestamp(). Ethernet MAC drivers can call this via the transmit time stamping hook, skb_tx_timestamp(). This commit exports the clone function so that drivers using it can be compiled as modules. Signed-off-by: Richard Cochran Signed-off-by: David S. Miller --- net/core/timestamping.c | 1 + 1 file changed, 1 insertion(+) (limited to 'net/core/timestamping.c') diff --git a/net/core/timestamping.c b/net/core/timestamping.c index 7e7ca375d43..3b00a6b0273 100644 --- a/net/core/timestamping.c +++ b/net/core/timestamping.c @@ -68,6 +68,7 @@ void skb_clone_tx_timestamp(struct sk_buff *skb) break; } } +EXPORT_SYMBOL_GPL(skb_clone_tx_timestamp); void skb_complete_tx_timestamp(struct sk_buff *skb, struct skb_shared_hwtstamps *hwtstamps) -- cgit v1.2.3-70-g09d2 From 238442f6bc10ba31577fc47e476c88689c80c7fa Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Sun, 19 Jun 2011 21:51:23 +0000 Subject: net: export the receive time stamping hook for non-NAPI drivers Ethernet MAC drivers based on phylib (but not using NAPI) can enable hardware time stamping in phy devices by calling netif_rx() conditionally based on a call to skb_defer_rx_timestamp(). This commit exports that function so that drivers calling it may be compiled as modules. Signed-off-by: Richard Cochran Signed-off-by: David S. Miller --- net/core/timestamping.c | 1 + 1 file changed, 1 insertion(+) (limited to 'net/core/timestamping.c') diff --git a/net/core/timestamping.c b/net/core/timestamping.c index 3b00a6b0273..98a52640e7c 100644 --- a/net/core/timestamping.c +++ b/net/core/timestamping.c @@ -122,6 +122,7 @@ bool skb_defer_rx_timestamp(struct sk_buff *skb) return false; } +EXPORT_SYMBOL_GPL(skb_defer_rx_timestamp); void __init skb_timestamping_init(void) { -- cgit v1.2.3-70-g09d2