From: Ben Hutchings Date: Thu, 28 Nov 2013 18:58:11 +0000 (+0000) Subject: sfc: Don't clear timestamps in efx_ptp_rx() X-Git-Tag: upstream/snapshot3+hdmi~3572^2~473^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a45a3a5cdc8dca283e4373045aae8af485f07a07;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git sfc: Don't clear timestamps in efx_ptp_rx() A freshly allocated skb starts with timestamps clear. Signed-off-by: Ben Hutchings --- diff --git a/drivers/net/ethernet/sfc/ptp.c b/drivers/net/ethernet/sfc/ptp.c index fe3c6d0..06c6420 100644 --- a/drivers/net/ethernet/sfc/ptp.c +++ b/drivers/net/ethernet/sfc/ptp.c @@ -1323,14 +1323,8 @@ static bool efx_ptp_rx(struct efx_channel *channel, struct sk_buff *skb) /* Does this packet require timestamping? */ if (ntohs(*(__be16 *)&skb->data[PTP_DPORT_OFFSET]) == PTP_EVENT_PORT) { - struct skb_shared_hwtstamps *timestamps; - match->state = PTP_PACKET_STATE_UNMATCHED; - /* Clear all timestamps held: filled in later */ - timestamps = skb_hwtstamps(skb); - memset(timestamps, 0, sizeof(*timestamps)); - /* We expect the sequence number to be in the same position in * the packet for PTP V1 and V2 */