Skip to content

Commit

Permalink
net: export the receive time stamping hook for non-NAPI drivers
Browse files Browse the repository at this point in the history
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 <richard.cochran@omicron.at>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Richard Cochran authored and David S. Miller committed Jun 20, 2011
1 parent 306ff6e commit 238442f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/core/timestamping.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 238442f

Please sign in to comment.