diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2013-11-28 18:58:11 +0000 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2013-12-12 22:07:17 +0000 |
commit | a45a3a5cdc8dca283e4373045aae8af485f07a07 (patch) | |
tree | f1f4bd401638f6423e4ff88889c2fcc160cb6272 /drivers/net/ethernet/sfc/ptp.c | |
parent | 9aecda95d0a2865ed7139d19fe4ae9d819e738be (diff) | |
download | linux-stable-a45a3a5cdc8dca283e4373045aae8af485f07a07.tar.gz linux-stable-a45a3a5cdc8dca283e4373045aae8af485f07a07.tar.bz2 linux-stable-a45a3a5cdc8dca283e4373045aae8af485f07a07.zip |
sfc: Don't clear timestamps in efx_ptp_rx()
A freshly allocated skb starts with timestamps clear.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc/ptp.c')
-rw-r--r-- | drivers/net/ethernet/sfc/ptp.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/ethernet/sfc/ptp.c b/drivers/net/ethernet/sfc/ptp.c index fe3c6d04fce8..06c6420f40d7 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 */ |