projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9aecda9
)
sfc: Don't clear timestamps in efx_ptp_rx()
author
Ben Hutchings
<
[email protected]
>
Thu, 28 Nov 2013 18:58:11 +0000
(18:58 +0000)
committer
Ben Hutchings
<
[email protected]
>
Thu, 12 Dec 2013 22:07:17 +0000
(22:07 +0000)
A freshly allocated skb starts with timestamps clear.
Signed-off-by: Ben Hutchings <
[email protected]
>
drivers/net/ethernet/sfc/ptp.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/sfc/ptp.c
b/drivers/net/ethernet/sfc/ptp.c
index fe3c6d04fce8b5506966cc96a2f4ad532a764086..06c6420f40d7b23e2a6b4d4e6fcb7eb1b364f33b 100644
(file)
--- 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
*/