net-timestamp: Merge shared code between phy and regular timestamping
authorAlexander Duyck <alexander.h.duyck@intel.com>
Thu, 4 Sep 2014 17:31:10 +0000 (13:31 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 6 Sep 2014 00:43:45 +0000 (17:43 -0700)
commit37846ef0188335e49f2491a5bbf4e0dc7d407ea0
tree29679300ee05829ae912b9af2eb05a3f96094b26
parentd546c621542df9e45eedc91f35356e887ac63b7b
net-timestamp: Merge shared code between phy and regular timestamping

This change merges the shared bits that exist between skb_tx_tstamp and
skb_complete_tx_timestamp.  By doing this we can avoid the two diverging as
there were already changes pushed into skb_tx_tstamp that hadn't made it
into the other function.

In addition this resolves issues with the fact that
skb_complete_tx_timestamp was included in linux/skbuff.h even though it was
only compiled in if phy timestamping was enabled.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c
net/core/timestamping.c