Skip to content

Commit

Permalink
sfc: Don't clear timestamps in efx_ptp_rx()
Browse files Browse the repository at this point in the history
A freshly allocated skb starts with timestamps clear.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
  • Loading branch information
Ben Hutchings committed Dec 12, 2013
1 parent 9aecda9 commit a45a3a5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/net/ethernet/sfc/ptp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit a45a3a5

Please sign in to comment.